Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Better looking GUI in Java

 
Suparn Gupta
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you would be using Swing. Did you check out JavaFX 2? Or other possible GUI frameworks?
 
Suparn Gupta
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suparn Gupta wrote:Yeah! You got me right. It was Swings.

Swing is a Proper Noun
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohamed Sanaulla
Saloon Keeper
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 507
Java Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic