Slashdot Mirror


New Desktop Features Of Next Java

bonch writes "Sun has posted the new desktop features of the next Java, codename Mustang. Improvements to Swing look and feel, OpenGL 2D renderer performance, AWT features such as the ability to add a tray/panel icon, and improved deployment capabilities."

19 of 283 comments (clear)

  1. Re:how about by comwiz56 · · Score: 2, Informative

    You don't have to use a layout manager. You can easily call setLayoutManager(null), and then use coords to place everything in the frame.

  2. Re:Java Desktop by REggert · · Score: 5, Informative

    I'm no Java fanboi, but these are some the classical advantages of Java over other languages:

    • The compiled code is completely (well, almost) platform-independent, eliminating the need to port or even recompile code when moving between platforms. This can be especially handy for GUI's, as it gets around the problem of different windowing systems having their own mutually exclusive API's. Write and compile your interface once, and it can be run on any machine that has a JVM installed, whether it be Windows, Mac, XFree86, or whatever.
    • It's ALMOST as fast (and in many cases just as fast) as C code. Additionally, it compiles much faster than C, though C binaries make up for it with substantially shorter load times (Java has been improving in this regard recently, however).
    • The language is designed to avoid some of the "problems" in C and C++.
    • Java provides free (in terms of effort) garbage collection, which (usually) prevents memory leaks.
    • Java applets can run in web browser. This allows websites to provide visitors to their sites with custom mini-applications to provide various functionality or visual effects. One of the major benefits to this (especially when combined with the use of application servers) is that a large organization can install all their software in a central place and allow its users to access it from any machine just by using their web browsers.

    There are others, but these are the ones that immediately come to mind for me.

    I'm a C++ coder myself, but I do appreciate Java's value for certain situations.

    --

    cp /dev/zero ~/signature.txt

  3. Re:Additional items by SnprBoB86 · · Score: 4, Informative

    You can allocate as much memory as you like using the right java command line flags:

    http://developer.apple.com/documentation/Java/Re fe rence/Java14VMOptions/VM_Options/chapter_1_section _4.html

    --
    http://brandonbloom.name
  4. Re:Sun actually listening to developers-java.net by AKAImBatman · · Score: 4, Informative

    java.com is the user's site that plays up stupid mobile games and the like.

    java.net is the "Network of developers" who are creating useful (and useless) software.

  5. Re:Additional items by nganju · · Score: 2, Informative


    Java already has support for 64-bit Athlon on Linux.

    They also have a release candidate for Windows 64 here:
    http://java.sun.com/j2se/1.5.0/download.jsp

    Both of these versions allow the allocation of much more memory to Java apps. The old roughly 2 gig limit was a limitation of 32-bit operating systems, not of the java vm. Give it a shot on the 64-bit VMs with
    java -Xmx3000m MyApplication
    it should run fine (assuming you have >=3 gig of memory).

    --
    There are 2 kinds of people in this world. Those that can keep their train of thought,
  6. 64-bit support is done! by Wesley+Felter · · Score: 4, Informative

    64-bit Java VMs have been available for SPARC64, PPC64, and AMD64 for ages.

  7. Re:64-bit pointers by AKAImBatman · · Score: 4, Informative

    Exactly. So why is Sun dragging its feet on porting its virtual machine for the Java language to the AMD64 platform?

    What are you talking about?!? Go to http://java.sun.com and click on "J2SE 5.0". Then click on "JDK 5.0 Update 2" and accept the license agreement. Right there are four packages for AMD64. (Two for Linux, two for Solaris.)

    Stop spreading FUD.

  8. Re:Whats the point now by nogginthenog · · Score: 2, Informative

    But I can count the number of .net desktop apps I know on 1 finger!

  9. Re:Additional items by CynicTheHedgehog · · Score: 2, Informative

    All three items are possible, but entirely dependent on the virtual machine implementation.

    1) In the current Sun JVM you can allocate more memory space with the -Xms and -Xmx switches (min and max heap size, respectively)

    2) I believe that the Solaris VM has 64-bit support. 64-bit support for AMD/G5 could be forthcoming, but they are still relatively new. Than, and you can't really expect Sun develop optimized JVMs for competitors.

    3) As for hardware specific calls and optimizations, I'm sure that if AMD, Apple, IBM, and/or Intel wanted to invest in developing their own custom JVMs with those optimizations they would be welcome. Again, it's not really in Sun's best interest to develop VMs optimized for their competitors' hardware. Apple has their on JVM, but I'm not sure what kind of effort they have put into hardware optimization.

    3) Java is not C or assembly language. If your performance requirements are critical to the point necessitating direct hardware calls then I can pretty much guarantee that Java is not the appropriate platform for you application.

    - Jesse

  10. Re:Java Desktop by Anonymous Coward · · Score: 1, Informative

    It's ALMOST as fast (and in many cases just as fast) as C code. Additionally, it compiles much faster than C, though C binaries make up for it with substantially shorter load times (Java has been improving in this regard recently, however).

    Incredible, does this crap ever end. No, its not even in the same universe as C when it comes to performance. I can't name ONE Java application that doesn't suck utter arse when it comes to responsiveness. The much touted server peformance is also awful but is easier to hide behind mammoth hardware specs. Embedded Java -- slooowww. Seriously, put any Java application next to a C application and see the truth.

  11. Re:Additional items by jkroll · · Score: 2, Informative

    Says the max memory allocatable is 2048M? 2 gigs is a lot of memory, but I'm not sure this is as much memory as I want though.

    This is a JVM issue, not a language issue. There is nothing in the language spec limiting memory support to 2GB anymore than Windows C language programs are limited to 2GB of memory.

    There is no real reason why Sun (or any other JVM provider) couldn't and doesn't provide a 64 bit JVM that can access more than 4GB of memory.

    Having said that, it would be nice if there was a command line option on startup that could set the JVM memory limit to some percentage of the physical RAM available on the system (i.e. something like java -Xmxp 50 -- would start the JVM up with a memory limit of 50% of the physical ram on the machine). Today you would need to write an OS specific script/wrapper program to determine the available memory and then launch the JVM.

  12. Re:Additional items by Decaff · · Score: 4, Informative

    I don't get it. If sun was responsible for 64-bit computers being commonplace, how come Java doesn't support 64 bits?

    Who says it doesn't?

    Go to javasoft.com, and check the downloads. You can get Java for 64-bit Linux on AMD and 64-bit Solaris on Sparc and AMD.

  13. Re:As someone who develops Java desktop apps... by RzUpAnmsCwrds · · Score: 1, Informative

    "Suse is the dominant desktop Linux distro and Suse is KDE-oriented."

    No, it's not. Have you heard of "Novell Linux Desktop", the product that is intended to replace SuSE on the desktop? It's GNOME based, which is understandable because Novell also purchased Ximian.

    RHEL and Fedora are also GNOME-focused, as is Ubuntu.

    "Qt apps look better and are more integrated with eachother."

    According to whom? I personally love the look and feel of GTK+, and I don't think that there's any problem with integration.

    "The second thing they need is a "SwingLite", or some easier way to do common things. For example, it is very common to need a text field that allows the user to enter a number, but not text. Should be easy, right? This is the code I have to use to do it:"

    Welcome to the world of Java. If you don't like the object-oriented Kool-Aid, you're probably using the wrong language. BS like that is why I use Python/PyGTK for programming on Linux.

  14. Re:Additional items by albrecht · · Score: 2, Informative

    bea now has a 64-bit windows itanium jrockit 1.5.0 now as well. HP has recently added 64-bit hpux pa-risc and itanium too.

    --
    Jonathan Albrecht
  15. Re:As someone who develops Java desktop apps... by aCapitalist · · Score: 4, Informative

    Despite the technical superiorty of Qt Sun will not use it to draw widgets because (A) Sun uses Gnome for its desktop and (B) the dual-licensing scheme of Qt.

    And I don't know where you get this information about KDE/Qt having more momentum. If anything, it's the other way around. Sun, RedHat, and Novell (the 3 biggest Linux shops) are all going with Gnome. Yeah, I know about Suse and KDE, but if you look at the resources being invested it's all Gnome/Mono.

    Until Trolltech gets bought out, the license issues surrounding Qt are unlikely to go away.

  16. Re:As someone who develops Java desktop apps... by Hulfs · · Score: 4, Informative
    What's wrong with doing:
    new JFormattedTextField(NumberFormat.getIntegerInstanc e());
    Seems to work fine for me. Uses the default locale's integer formatter. See Sun's Tutorial
  17. No plug-in on AMD64 by Anonymous Coward · · Score: 2, Informative

    The AMD64 editions still does not provide a browser plug-in. Luckily, there is Blackdown.

  18. Re:SWT by anti-trojan · · Score: 2, Informative

    The poster means that it is not using native OS widgets but depends on its own XUL controls.

  19. Re:Additional items by iksrazal_br · · Score: 2, Informative
    "You can allocate as much memory as you like using the right java command line flags"

    Try this on a 16 gigs of memory Solaris 10K:

    byte[] b = new byte[3000L * 1000L * 1000L];

    Seen this question today:

    http://groups.google.com.br/groups?hl=pt-BR&lr=&th readm=pan.2005.04.21.09.43.29.859952%40fffffffffff fff.com&rnum=11&prev=/groups%3Fq%3Dmemory%2B2005%2 6hl%3Dpt-BR%26lr%3D%26group%3Dcomp.lang.java.progr ammer%26start%3D10%26sa%3DN

    People doing biometrics apparently are trying to.

    iksrazal