This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing alternative  RSS feed

 
Jaime Caetano
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey Colleague

I'm learning Java Swing at school, but i've been told that no uses it anymore in the real world

well I've been in touch with visual basic in the past, and I know you can drag components into a window...


is that the reason why Swing is out of use?

what is the good alternative for graphics in Java these days...?


thank you Jaime
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to build a desktop application in Java, then using Swing is fine. As Bear mentioned, JavaFX would the API of choice if you're just starting out, and have no prior investment in Swing (although it is possible to mix the two).

visual basic ... I know you can drag components into a window

If by that you mean that there are GUI builders for .Net, then note that the Java IDEs have those as well.
 
Jaime Caetano
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you both,

I'll check JavaFX
 
Brett Spell
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaime Caetano wrote:I'm learning Java Swing at school, but i've been told that no uses it anymore in the real world


You were told wrong. Web development is much more common these days and Swing is completely neglected by Oracle, but it's certainly not "dead" in any meaningful sense of the word as some claim.

Bear Bibeault wrote:JavaFX


Talk about leading someone into the weeds (or "reeds" if you have a tendency towards malapropisms). JavaFX has been promoted by Oracle but almost nobody seems to care. As evidence, look at the activity (or rather, lack of it) on this web site's JavaFX forum. Better yet, Google "javafx acceptance" and follow some of the links. You'll find a lot of speculative / hopeful "will people finally start using JavaFX this year?" stuff and one of the top links is a fairly recent java.net poll indicating that 85% of the developers that responded have never even tried using JavaFX. If you want expertise in "real world" technology then learn how to write web applications, but if you're specifically interested in desktop development then you're much better off sticking with Swing.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The OP asked for alternatives to Swing; JavaFX is currently that alternative. Opinions on the viability of JavaFX were not expressed. (But, to offer one now, I personally think JavaFX is DOA.)
 
Brett Spell
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question was based on the claim that Swing isn't used in the "real world", strongly implying that he wanted something that IS used. Based on that criteria JavaFX is not a direction that the OP should go. There's far more "real world" usage of Swing than there is JavaFX.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course there is -- it's been around for years and years.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!