MY mENU


Tuesday 14 August 2012

Swing Packages


The Swing API is powerful, flexible — and immense. The Swing API has 18 public packages:
javax.accessibilityjavax.swing.plafjavax.swing.text
javax.swingjavax.swing.plaf.basicjavax.swing.text.html
javax.swing.borderjavax.swing.plaf.metaljavax.swing.text.html.parser
javax.swing.colorchooserjavax.swing.plaf.multijavax.swing.text.rtf
javax.swing.eventjavax.swing.plaf.synthjavax.swing.tree
javax.swing.filechooserjavax.swing.tablejavax.swing.undo
Fortunately, most programs use only a small subset of the API. This trail sorts out the API for you, giving you examples of common code and pointing you to methods and classes you're likely to need. Most of the code in this trail uses only one or two Swing packages:
  • javax.swing
  • javax.swing.event (not always required)