Swing框架的继承关系

Class JComponent

  • java.lang.Object
    • java.awt.Component
      • java.awt.Container
        • javax.swing.JComponent
  • All Implemented Interfaces:
    ImageObserver,  MenuContainer,  Serializable
    Direct Known Subclasses:

    AbstractButton, BasicInternalFrameTitlePane, Box, Box.Filler, JColorChooser, JComboBox, JFileChooser, JInternalFrame,JInternalFrame.JDesktopIcon, JLabel, JLayer, JLayeredPane, JList, JMenuBar, JOptionPane, JPanel, JPopupMenu, JProgressBar, JRootPane,JScrollBar, JScrollPane, JSeparator, JSlider, JSpinner, JSplitPane, JTabbedPane, JTable, JTableHeader, JTextComponent, JToolBar, JToolTip,JTree, JViewport

    除了窗体,所有的控件都继承于JComponent(swing中控件的顶级类)

    Class JFrame

    • java.lang.Object
      • java.awt.Component
        • java.awt.Container
          • java.awt.Window
            • java.awt.Frame
              • javax.swing.JFrame

    • swing中的顶级类: JFrame, Jdialog,Jwindow

你可能感兴趣的:(Swing框架的继承关系)