This JFrame is a class which is located at the java package javax.swing
JFrame helps to form applet , this class is one type of Container where different Components can be
added by getContentPane() and add() method of this class.
The JFrame is one of the static or predefined Frame where there is limitation of extending the Frame feature
All the classes of
1 |
javax.swing.*; |
package are predefined applet components. It’s design is also static on all
operating system. There is platform independent design of JButton,JLabel,JTextField bar and all things. Here we use JFrame for the
independent of the application.
Where as in the context of
1 |
java.awt.*; |
The components like Button,Label all are platform indendent as well.