When do you use Frame or JFrame in Java?

Possible duplicate:
What is the difference between swing and awt?

I often see that JFrame is used a lot. But sometimes I also see that the programmer uses Frame in his example. So could you tell me the advantages / disadvantages of them?

+5
source share
2 answers

Ok, let me deal with you .............. Before I go to Frame Vs JFrame, let me explain you about AWT and Swing.

AWT:

- It has a platform dependent Look and Feel .

- . It uses the components of the Native GUI .

-. AWT , .

Swing:

- Look and Feel.

- , Java.

- Swing java, .

, AWT , Swing, , - .. ... .

GUI:

        Object
           |
        Component
           |
        Container
  ---------|---------

  |                 |
JComponent        Window
  |                 |
JPanel            Frame
                    |
                  JFrame

- AWT component, JFrame - Swing component.

, JFrame Frame.

JFrame Frame, , Swing .

+15

AWT (, Java), OS.

JFrame - Swing, , java GUI Swing , . , Swing LookAndFeel, , .

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/

+3

All Articles