Java GUI Framework awt, swing, javafx.
awt - is long dead.
swing - replaces awt but more or less dead since Javafx took over in 2008.
javafx - the current UI framework .
i would prefer learn java swing first, grasp the basic foundation of swing then go straight to javaFx.
in learning swing, pag aralan mo yung:
JFrame
JPanel
JLabel
JButton
and so on .
then Class Hierarchy and Inheritance (importante ito).
here's the basic example using java swing, displaying Hello World using JLabel .
import javax.swing.*;
public class HelloWorldSwing {
private static void createAndShowGUI() {
JFrame.setDefaultLookAndFeelDecorated(true); // works as of v1.4 you can remove this line
JFrame frame = new JFrame("HelloWorldSwing");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
Then in java IDE why not use Eclipse or Netbeans.