This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Better looking GUI in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Better looking GUI in Java" Watch "Better looking GUI in Java" New topic
Author

Better looking GUI in Java

Suparn Gupta
Greenhorn

Joined: Feb 26, 2012
Posts: 16
Hi all!

Lately I was helping my cousin in her college project. It was some kind of automated testing engine with a GUI in Swing. A question crossed my mind:

Java is so powerful, for desktop apps too. But why arent the GUIs that good looking?

I mean looknfeel concept is nice but still it doesnt produce those cool looking GUIs. Is Java weak in this sense? Or are there other GUI languages etc that can be merged with java code in background!!
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

I guess you would be using Swing. Did you check out JavaFX 2? Or other possible GUI frameworks?


Mohamed Sanaulla | My Blog
Suparn Gupta
Greenhorn

Joined: Feb 26, 2012
Posts: 16
Yeah! You got me right. It was Swings. I ll check JavaFX2. But like we have photoshop and other such softwares that can create wonders. Does Java has external application support of such extent that we can incorporate GUI designs (not just images but frames etc too) built using these softwares and run Java in background?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Suparn Gupta wrote:Yeah! You got me right. It was Swings. I ll check JavaFX2. But like we have photoshop and other such softwares that can create wonders. Does Java has external application support of such extent that we can incorporate GUI designs (not just images but frames etc too) built using these softwares and run Java in background?

The fact that the Java GUI is used by the developers, I think it wouldn't be much use for them to provide such a support as it would mostly be used by the designers. I remember pre JavaFX 2 providing such a support, but I dont know the extent it was successful and mostly its been scraped in the new JavaFX release.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

Suparn Gupta wrote:Yeah! You got me right. It was Swings.

Swing is a Proper Noun


luck, db
There are no new questions, but there may be new answers.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

Mohamed Sanaulla wrote:I remember pre JavaFX 2 providing such a support, but I dont know the extent it was successful and mostly its been scraped in the new JavaFX release.

FX 2 still has CSS styling, including background images.

I don't think support for any styling was dropped, but I could be wrong.
http://docs.oracle.com/javafx/2.0/css_tutorial/jfxpub-css_tutorial.htm
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10270
    
    8

Suparn Gupta wrote:
Java is so powerful, for desktop apps too. But why arent the GUIs that good looking?
I mean looknfeel concept is nice but still it doesnt produce those cool looking GUIs. Is Java weak in this sense?


Certainly not.
The "coolness" of the applications are dependent on the design/developers and not restricted by the framework.
The default look and feel sucks. Agree. But I rarely use it in my apps. The correct way in my opinion is to go for the OS look and feel on which the application is running.

PS. Did you know Netbeans is Swing? Is it cool? Does it suck?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Manuel Petermann
Ranch Hand

Joined: Jul 19, 2011
Posts: 175

Maneesh Godbole wrote:
The default look and feel sucks. Agree. But I rarely use it in my apps. The correct way in my opinion is to go for the OS look and feel on which the application is running.

PS. Did you know Netbeans is Swing? Is it cool? Does it suck?


That's not a good idea on Linux imo. I would use the gtk wrapper there.


Please correct my English.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Darryl Burke wrote:
Mohamed Sanaulla wrote:I remember pre JavaFX 2 providing such a support, but I dont know the extent it was successful and mostly its been scraped in the new JavaFX release.

FX 2 still has CSS styling, including background images.

I don't think support for any styling was dropped, but I could be wrong.
http://docs.oracle.com/javafx/2.0/css_tutorial/jfxpub-css_tutorial.htm

CSS yes, but I remember pre JavaFX 2 had an option to create a layout in photoshop and import it via some javafx tool (photoshop plugin) into a javafx application. And I was referring to that feature. But CSS styling and other things are still supported.
Suparn Gupta
Greenhorn

Joined: Feb 26, 2012
Posts: 16
Hi,

I am sorry for not replying for so long. I was sick(Jaundice). Meanwhile, I started trying JavaFX2. The CSS option is so great. It feels like Iam designing a webpage...!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

Suparn Gupta wrote:Hi,

I am sorry for not replying for so long. I was sick(Jaundice). Meanwhile, I started trying JavaFX2. The CSS option is so great. It feels like Iam designing a webpage...!


Hope you're well on the way to recovery. Have fun with FX! and if you have any questions, remember there's a separate forum here for Java FX. But don't run down Swing, it's far more flexible than FX when you really need to customize stuff.

OT: I had jaundice twice in my younger days, so I know how it feels.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Suparn Gupta wrote:Hi all!

Lately I was helping my cousin in her college project. It was some kind of automated testing engine with a GUI in Swing. A question crossed my mind:

Java is so powerful, for desktop apps too. But why arent the GUIs that good looking?

I mean looknfeel concept is nice but still it doesnt produce those cool looking GUIs. Is Java weak in this sense? Or are there other GUI languages etc that can be merged with java code in background!!


Why don't you try Look and Feel packages provided by free vendors? At least it can change something, with really no effort at all.


Are you better than me? Then please show me my mistakes..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Better looking GUI in Java