JavaSwingComponents: Internally created components


Internally created components

not in LAF classes

Class

Created component(s)

Replacement

DebugGraphics

JFrame

none (but not important)

JWindow, JDialog, JFrame, JApplet, JInternalFrame

JRootPane

override createRootPane

JColorChooser

JColorChooser

JPanel

JButton

JDialog (subclass)

don't use dialog methods

JComponent

JToolTip

override createToolTip

JFileChooser

JDialog

don't use dialog methods

JInternalFrame

JDesktopIcon

setDesktopIcon

JMenu

JPopupMenu

JMenuItem

JPopupMenu.Separator

popup menu: none

others: don't use convenience methods/override them

JOptionPane

JDialog

JInternalFrame

don't use dialog methods

JPopupMenu

JMenuItem

JPopupMenu.Separator

don't use convenience methods/override them

JRootPane

JLayeredPane

JPanel

override createLayeredPane, createGlassPane, createContentPane

(or set later)

JScrollPane

JViewport

JScrollBar (subclass)

override createViewport, createXXXScrollBar

JSpinner

JFormattedTextField

JPanel (subclass)

don't use default editors

JSlider

JLabel (subclass)

override createStandardLabels or use custom labels

JSplitPane

JButton

doesn't matter (only demo constructor)

JTable

JScrollPane

JTextField

JCheckBox

JTableHeader

JScrollPane: not used/needed

don't use default renderers

override createDefaultTableHeader

JToolBar

JToolBar.Separator

don't use convenience methods/override them

PopupFactory

JRootPane

JPanel

none

Popup

JWindow (subclass)

none

ProgressMonitor

JLabel

JOptionPane (subclass)

JProgressBar

JDialog

don't use (bad anyway)

colorchooser.*

JPanel (subclasses)

JPanel

JLabel

JTextField

JRadioButton

JSpinner

JSlider

JLabel (subclass)

don't use default panels

DefaultTreeCellEditor

JTextField (subclass)

Container (subclass)

don't use

Default(Table|List|Tree)CellRenderer

JLabel (subclass)

don't use

JTableHeader, TableColumn

JLabel (indirect subclass)

don't use

ComponentView

Container (subclass)

don't use

html/ObjectView

JLabel

override createComponent

html/IsindexView

JPanel

JLabel

JTextField

don't use

html/HiddenTagView

JTextField

JPanel

don't use

html/FrameView

JEditorPane

JScrollPane

don't use

html/FormView

JList

JScrollPane

JComboBox

JTextArea

JButton

JCheckBox

JRadioButton

JTextField

JPasswordField

JFileChooser

Box.createHorizontalBox

Box.createHorizontalStrut

override createComponent

html/CommentView

JTextArea

don't use

BasicArrowButton

JButton (subclass)

don't use


(C) 2001-2009 Christian Kaufhold (swing@chka.de)