Is it possible to create a good GUI for Mac OS X applications written in Java?
-
When compared alongside Objective-C apps, Java GUIs seem to always have a 'foreign' feeling about them. Fishing for counterexamples.
-
Answer:
Using standard cross-platform Java GUI elements, probably not. The examples I've heard cited as good Java GUI apps are usually IDEs like Eclipse, which I still think are terrible looking on OS X. Using custom widgets designed for OS X it's certainly possible, but a lot of extra work.
Tom Robinson at Quora Visit the source
Other answers
You can create a Java-Cocoa application, and use Interface Builder to hook standard Cocoa interface elements to Java code. This unfortunately means that you'll have to have a separate build for OS X and other platforms, but if you keep your GUI code firmly separated from your application logic (and don't make frequent changes to the GUI), this can be an acceptable tradeoff. (This assumes that you don't want to use any Cocoa in your application logic, so no Core Data etc.) The reason that Java applications so frequently have ugly interfaces in OS X is that they're using the standard Java UI components which have been skinned to resemble Aqua components. They don't quite have the same default behavior as interfaces built with Interface Builder (for one thing, you use Java layout managers rather than the native approach) but it is possible to improve things, see [1]. "Bringing your Java application to Mac OS X.", http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac/
E.O. Stinson
OS X these days has support for Java 5, which means that you can use Java FX: http://javafx.com/ Alternatively, Java does integrate well with Adobe Flex. Both of the above make it much easier to create an attractive GUI. However, if your aim is to achieve a truly native look and feel, Java-Cocoa is possibly your best bet, although it does drag you away from the write-once-run-anywhere ideal.
Stephen Masters
A good GUI or a mac native feeling GUI? PHPStorm, Eclipse and many other Java programs have great GUIs built using Swing. But they won't have a mac specific look and feel. Thats kind of the point of cross platform GUIs.
Jeff Kesselman
take a look at the Quaqua look-and-feel for Swing : http://www.randelshofer.ch/quaqua/
Rich Freedman
Related Q & A:
- How can I auto run ccleaner on Mac OS X?Best solution by forum.piriform.com
- How can I mount a network drive in Mac OS X in Java?Best solution by Stack Overflow
- How to create a virtual file on mac OS X?Best solution by Super User
- What is the most functional Mac OS X all-in-one printer?Best solution by Yahoo! Answers
- Is it possible to get a good job while in college for computer science?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.