• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Swing alternative

 
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaFX
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you both,

I'll check JavaFX
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course there is -- it's been around for years and years.
 
reply
    Bookmark Topic Watch Topic
  • New Topic