Just starting to use Swing. Any and all suggestions on how to learn? Tutorials, books, online classes -- anything along these lines would be helpful.
In 2012 I suggest to forget Swing and learn JavaFX instead. Start here:
(1) Will JavaFX work with JDK 6?
(2) I just need do develop a front-end quickly that will eventually call a Perl script. Will JavaFX handle that?
(3)Can the Eclipse IDE be used with JavaFX or do I need (or do you recommend) another IDE?
Thanks so much for your time.
P.S. You mean now I have to get rid of all the Swing books I bought! :-)
NOTE: For (1) above, I see that JavaFX 2.2.4 does use SDK 6 which will be fine and probably the route I go.
Still would like any further suggestions on books, tutorials, etc. if anyone has any input.
And I assume (2) is not an issue but thought I'd mention it for clarity.
(3) above seems more than likely true but, having never used JavaFX, jsut wanted to verify.
1. 2.2.4 - yes, but moving forward the answer is no. FX 8 will only work with JDK 8. The 2.2.x releases will continue to work with JDK 7 update releases.
2. FX (as well as Swing) is simply a GUI framework. It doesn't really matter if it's an FX or Swing (or AWT, or SWT) button that triggers some action which does whatever you can code in Java. :)
3. If you prefer to write code manually, then you can use any IDE that you like because JavaFX is a regular Java API. If you want to create forms visually, then, AFAIK, only the SceneBuilder provides such functionality currently. Note that SB is only a tool, it's not an IDE. So whether you use Eclipse, or Netbeans, or JDeveloper, or whatever else, you can still use SB together with them.
You may find more information at the link that I provided above. There are tutorials and all the needed documentation for you to start developing FX GUI application.
Good points all....
Thanks Anthony for all your help. :-)
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.