Skip to main content

Just starint with Swing -- best way to learn

5 replies [Last post]
tale103108
Offline
Joined: 2012-06-27
Points: 0

Hello,
Just starting to use Swing. Any and all suggestions on how to learn? Tutorials, books, online classes -- anything along these lines would be helpful.
Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24
Points: 0

In 2012 I suggest to forget Swing and learn JavaFX instead. Start here:
http://docs.oracle.com/javafx/

tale103108
Offline
Joined: 2012-06-27
Points: 0

Interesting...
(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.

tale103108
Offline
Joined: 2012-06-27
Points: 0

Interesting...
(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.

anthony_p
Offline
Joined: 2006-07-24
Points: 0

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.

tale103108
Offline
Joined: 2012-06-27
Points: 0

Good points all....
Thanks Anthony for all your help. :-)