类分层结构
- java.lang.Object
- java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
- java.awt.Container
- javax.swing.JComponent (implements java.io.Serializable)
- javax.swing.JTree (implements javax.accessibility.Accessible, javax.swing.Scrollable)
- javax.swing.tree.DefaultMutableTreeNode (implements java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable)
枚举分层结构
- java.lang.Object
- java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)