A.7. The javax.swing Package

The Swing library consists of classes for writing GUI applications in Java. Table A.10 lists the classes and their equivalents.

Table A.10. The javax.swing Package Classes and Their .NET Counterparts
Java.NET
AbstractButtonSystem.Windows.Forms.ButtonBase
AbstractListModelSystem.Windows.Forms.ListControl
AbstractSpinnerModelSystem.Windows.Forms.UpDownBase
ImageIconSystem.Windows.Forms.Image
JButtonSystem.Windows.Forms.Button
JCheckBoxSystem.Windows.Forms.CheckBox
JColorChooserSystem.Windows.Forms.ColorDialog
JComboBoxSystem.Windows.Forms.ComboBox
JComponentSystem.Windows.Forms.UserControl
JDialogSystem.Windows.Forms.CommonDialog
JEditorPaneSystem.Windows.Forms.TextBoxBase
JFileChooserSystem.Windows.Forms.OpenFileDialog
JFormattedTextFieldSystem.Windows.Forms.RichTextBox
JFrameSystem.Windows.Forms.Form
JLabelSystem.Windows.Forms.Label
JListSystem.Windows.Forms.ListBox
JMenuBarSystem.Windows.Forms.MainMenu
JMenuItemSystem.Windows.Forms.MenuItem
JPanelSystem.Windows.Forms.Panel
JPasswordFieldSystem.Windows.Forms.TextBox
JPopupMenuSystem.Windows.Forms.ContextMenu
JProgressBarSystem.Windows.Forms.StatusBar
JRadioButtonSystem.Windows.Forms.RadioButton
JScrollBar
System.Windows.Forms.HScrollBar
System.Windows.Forms.VScrollBar

JScrollPaneSystem.Windows.Forms.Panel
JSliderSystem.Windows.Forms.TrackBar
JSpinnerSystem.Windows.Forms.DomainUpDown
JSplitPaneSystem.Windows.Forms.Splitter
JTabbedPaneSystem.Windows.Forms.TabControl
JTableSystem.Windows.Forms.ListView
JTextAreaSystem.Windows.Forms.TextBox
JTextFieldSystem.Windows.Forms.TextBox
JTextPaneSystem.Windows.Forms.RichTextBox
JToggleButtonSystem.Windows.Forms.ButtonBase
JToolBarSystem.Windows.Forms.ToolBar
JToolTipSystem.Windows.Forms.ToolTip
JTreeSystem.Windows.Forms.ListView
PopupSystem.Windows.Forms.ContextMenu
TimerSystem.Windows.Forms.Timer

Table A.11 shows the comparison between javax.swing.event package classes and their .NET equivalents.

The .NET Framework does not provide directly equivalent classes for the following packages: javax.swing.plaf, javax.swing.border, javax.swing.table, javax.swing.text (although you can use System.Windows .Form.RichTextBox), and javax.swing.filechooser (although you can use System.Windows.Forms.OpenFileDialog and System.Windows.Forms.SaveFileDialog).

Table A.11. The javax.swing.event Package Classes and Their .NET Counterparts
Java.NET
CaretEventSystem.EventArgs
ListDataEventSystem.EventArgs
ListSelectionEventSystem.EventArgs
MenuEventSystem.EventArgs
PopupMenuEventSystem.EventArgs

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.94.171