The mapping between the Java javax.swing package and the corresponding .NET types is provided in Table F-14. The .NET Windows Forms system provides a smaller class set than Swing for constructing client applications. See Chapter 18 for more information about the Windows Forms system.
Table F-14. The Java to .NET Mapping for the javax.swing Package
Java | .NET |
---|---|
AbstractAction | N/A |
AbstractButton | System.Windows.Forms.ButtonBase |
System.Windows.Forms.Button | |
AbstractCellEditor | N/A |
AbstractListModel | System.Windows.Forms.ListControl |
AbstractSpinnerModel | System.Windows.Forms.UpDownBase |
ActionMap | N/A |
BorderFactory | N/A |
Box | N/A |
BoxLayout | N/A |
ButtonGroup | N/A |
CellRendererPane | N/A |
ComponentInputMap | N/A |
DebugGraphics | N/A |
DefaultBoundedRangeModel | N/A |
DefaultButtonModel | N/A |
DefaultCellEditor | N/A |
DefaultComboBoxModel | N/A |
DefaultDesktopManager | N/A |
DefaultFocusManager | N/A |
DefaultListCellRenderer | N/A |
DefaultListModel | N/A |
DefaultListSelectionModel | N/A |
DefaultSingleSelectionModel | N/A |
FocusManager | N/A |
GrayFilter | N/A |
ImageIcon | System.Drawing.Image |
InputMap | N/A |
InputVerifier | N/A |
JApplet | N/A |
JButton | System.Windows.Forms.Button |
JCheckBox | System.Windows.Forms.CheckBox |
JCheckBoxMenuItem | N/A |
JColorChooser | System.Windows.Forms.ColorDialog |
JComboBox | System.Windows.Forms.ComboBox |
JComponent | System.Windows.Forms.UserControl |
System.Windows.Forms.Control | |
JDesktopPane | N/A |
JDialog | System.Windows.Forms.CommonDialog |
JEditorPane | System.Windows.Forms.TextBoxBase |
JFileChooser | System.Windows.Forms.OpenFileDialog |
System.Windows.Forms.SaveFileDialog | |
JFormattedTextField | System.Windows.Forms.RichTextBox |
JFrame | System.Windows.Forms.Form |
JInternalFrame | N/A |
JLabel | System.Windows.Forms.Label System.Windows.Forms.LinkLabel |
JLayeredPane | N/A |
JList | System.Windows.Forms.ListBox |
JMenu | N/A |
JMenuBar | System.Windows.Forms.MainMenu |
JMenuItem | System.Windows.Forms.MenuItem |
JOptionPane | N/A |
JPanel | System.Windows.Forms.Panel |
JPasswordField | System.Windows.Forms.TextBox |
JPopupMenu | System.Windows.Forms.ContextMenu |
JPopupMenu.Separator | N/A |
JProgressBar | System.Windows.Forms.StatusBar |
JRadioButton | System.Windows.Forms.RadioButton |
JRadioButtonMenuItem | N/A |
JRootPane | N/A |
JScrollBar | System.Windows.Forms.HScrollBar |
System.Windows.Forms.VScrollBar | |
JScrollPane | System.Windows.Forms.Panel |
JSeparator | N/A |
JSlider | System.Windows.Forms.Trackbar |
JSpinner | System.Windows.Forms.DomainUpDown |
System.Windows.Forms.NumericUpDown | |
JSplitPane | System.Windows.Forms.Splitter |
JTabbedPane | System.Windows.Forms.TabControl |
JTable | System.Windows.Forms.ListView |
JTextArea | System.Windows.Forms.TextBox |
JTextField | System.Windows.Forms.TextBox |
JTextPane | System.Windows.Forms.RichTextBox |
JToggleButton | System.Windows.Forms.ButtonBase |
JToolBar | System.Windows.Forms.ToolBar |
JToolTip | System.Windows.Forms.ToolTip |
JTree | System.Windows.Forms.ListView |
JViewport | N/A |
JWindow | N/A |
KeyStroke | N/A |
LayoutFocusTraversalPolicy | N/A |
LookAndFeel | N/A |
MenuSelectionManager | N/A |
OverlayLayout | N/A |
Popup | System.Windows.Forms.ContextMenu |
PopupFactory | N/A |
ProgressMonitor | N/A |
ProgressMonitorInputStream | N/A |
RepaintManager | N/A |
ScrollPaneLayout | N/A |
SizeRequirements | N/A |
SizeSequence | N/A |
SortingFocusTraversalPolicy | N/A |
SpinnerDateModel | N/A |
SpinnerListModel | N/A |
SpinnerNumberModel | N/A |
Spring | N/A |
SpringLayout | N/A |
SwingUtilities | N/A |
Timer | System.Windows.Forms.Timer |
ToolTipManager | N/A |
TransferHandler | N/A |
UIDefaults | N/A |
N/A | |
ViewportLayout | N/A |