<pre id="zbv59"></pre>
  1. <pre id="zbv59"></pre>

    <acronym id="zbv59"></acronym><pre id="zbv59"></pre>

      Swing GUI Toolkit Group

      The Swing group is comprised of developers involved in the design, implementation, and maintanence of Swing GUI Toolkit.


      Swing is a Graphical User Interface (GUI) API, offering a set of components that can be used to build rich desktop interfaces. This includes basic elements such as windows, buttons, scrollbars, etc., as well as more complex compound objects such as file choosers, color choosers and combo boxes.


      Swing components are Java Beans, and are built around the Model-View-Controller (MVC) programming paradigm. This paradigm separates an application's business logic from its user interface so that they can be evolved independently.

      JComponent is the core Controller class which coordinates Models and Views to display a final user component. All Swing components are inherited from JComponent. Note that components can have different views represented by different UIs.

      The javax.swing.plaf package contains ComponentUI, which is the core class for the View and is a template for other components that inherit from it. ComponentUI is responsible for the ultimate painting of pixels on the screen.

      A Model controls the data in components, from simple things such as the state of a check box, to the more complex rows and columns data structures used for a table. ComboBoxModel and TableModel are example model classes.

      Source Structure

      Most of the Swing source code resides under the src/share/classes directory of the workspace. Under this directory, source files are organized by their package hierarchy; for example, the source for javax.swing.JButton can be found in src/share/classes/javax/swing/JButton.java.

      The javax.swing package contains several subpackages:

      For historical reasons, some (traditionally) non-public implementation classes are in a package starting with "sun". The source for these classes can be found in src/share/classes/sun/swing.

      Platform specific Look and Feels can be found in the src/share/classes/com/sun/java/swing/plaf directory. These are non-public implementation classes.

      The GKT Look and Feel contains native code implementing gtk rendering with the gtk+-2.0 system library:

      and also partly in:

      The solaris directory includes the source for Linux because of their similarity to Solaris OS code. In fact Swing sources that lie under solaris directory are the same for Linux and Solaris.

      Building The Source

      Swing's make files can be found in the following directories:

      You can find information on how to build Swing using NetBeans here:

      Current Projects