| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.geom | Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry. | 
| java.beans | Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.border | Provides classes and interface for drawing
specialized borders around a Swing component. | 
| javax.swing.plaf | Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities. | 
| javax.swing.tree | Provides classes and interfaces for dealing with
 javax.swing.JTree. | 
| Constructor and Description | 
|---|
| BasicStroke(float width,
           int cap,
           int join,
           float miterlimit,
           float[] dash,
           float dash_phase)Constructs a new  BasicStrokewith the specified
 attributes. | 
| Color(int r,
     int g,
     int b,
     int a)Creates an sRGB color with the specified red, green, blue, and alpha
 values in the range (0 - 255). | 
| Cursor(int type)Creates a new cursor object with the specified type. | 
| GradientPaint(Point2D pt1,
             Color color1,
             Point2D pt2,
             Color color2,
             boolean cyclic)Constructs either a cyclic or acyclic  GradientPaintobject depending on thebooleanparameter. | 
| LinearGradientPaint(Point2D start,
                   Point2D end,
                   float[] fractions,
                   Color[] colors,
                   MultipleGradientPaint.CycleMethod cycleMethod,
                   MultipleGradientPaint.ColorSpaceType colorSpace,
                   AffineTransform gradientTransform)Constructs a  LinearGradientPaint. | 
| RadialGradientPaint(Point2D center,
                   float radius,
                   Point2D focus,
                   float[] fractions,
                   Color[] colors,
                   MultipleGradientPaint.CycleMethod cycleMethod,
                   MultipleGradientPaint.ColorSpaceType colorSpace,
                   AffineTransform gradientTransform)Constructs a  RadialGradientPaint. | 
| ScrollPane(int scrollbarDisplayPolicy)Create a new scrollpane container. | 
| Constructor and Description | 
|---|
| AffineTransform(float m00,
               float m10,
               float m01,
               float m11,
               float m02,
               float m12)Constructs a new  AffineTransformfrom 6 floating point
 values representing the 6 specifiable entries of the 3x3
 transformation matrix. | 
| Constructor and Description | 
|---|
| EventHandler(Object target,
            String action,
            String eventPropertyName,
            String listenerMethodName)Creates a new  EventHandlerobject;
 you generally use one of thecreatemethods
 instead of invoking this constructor directly. | 
| Expression(Object target,
          String methodName,
          Object[] arguments)Creates a new  Expressionobject
 for the specified target object to invoke the method
 specified by the name and by the array of arguments. | 
| Statement(Object target,
         String methodName,
         Object[] arguments)Creates a new  Statementobject
 for the specified target object to invoke the method
 specified by the name and by the array of arguments. | 
| Constructor and Description | 
|---|
| BoxLayout(Container target,
         int axis)Creates a layout manager that will lay out components along the
 given axis. | 
| DefaultCellEditor(JTextField textField)Constructs a  DefaultCellEditorthat uses a text field. | 
| Filler(Dimension min,
      Dimension pref,
      Dimension max)Constructor to create shape with the given size ranges. | 
| ImageIcon(String filename)Creates an ImageIcon from the specified file. | 
| JButton(String text)Creates a button with text. | 
| JSplitPane(int newOrientation)Creates a new  JSplitPaneconfigured with the
 specified orientation. | 
| JTree(TreeModel newModel)Returns an instance of  JTreewhich displays the root node
 -- the tree is created using the specified data model. | 
| OverlayLayout(Container target)Constructs a layout manager that performs overlay
 arrangement of the children. | 
| Constructor and Description | 
|---|
| BevelBorder(int bevelType,
           Color highlightOuterColor,
           Color highlightInnerColor,
           Color shadowOuterColor,
           Color shadowInnerColor)Creates a bevel border with the specified type, highlight and
 shadow colors. | 
| CompoundBorder(Border outsideBorder,
              Border insideBorder)Creates a compound border with the specified outside and
 inside borders. | 
| EmptyBorder(Insets borderInsets)Creates an empty border with the specified insets. | 
| EtchedBorder(int etchType,
            Color highlight,
            Color shadow)Creates an etched border with the specified etch-type,
 highlight and shadow colors. | 
| LineBorder(Color color,
          int thickness,
          boolean roundedCorners)Creates a line border with the specified color, thickness,
 and corner shape. | 
| SoftBevelBorder(int bevelType,
               Color highlightOuterColor,
               Color highlightInnerColor,
               Color shadowOuterColor,
               Color shadowInnerColor)Creates a bevel border with the specified type, highlight
 shadow colors. | 
| StrokeBorder(BasicStroke stroke,
            Paint paint)Creates a border of the specified  strokeandpaint. | 
| TitledBorder(Border border,
            String title,
            int titleJustification,
            int titlePosition,
            Font titleFont,
            Color titleColor)Creates a TitledBorder instance with the specified border,
 title, title-justification, title-position, title-font, and
 title-color. | 
| Constructor and Description | 
|---|
| BevelBorderUIResource(int bevelType,
                     Color highlightOuter,
                     Color highlightInner,
                     Color shadowOuter,
                     Color shadowInner) | 
| ColorUIResource(int r,
               int g,
               int b) | 
| CompoundBorderUIResource(Border outsideBorder,
                        Border insideBorder) | 
| EmptyBorderUIResource(Insets insets) | 
| EtchedBorderUIResource(int etchType,
                      Color highlight,
                      Color shadow) | 
| LineBorderUIResource(Color color,
                    int thickness) | 
| TitledBorderUIResource(Border border,
                      String title,
                      int titleJustification,
                      int titlePosition,
                      Font titleFont,
                      Color titleColor) | 
| Constructor and Description | 
|---|
| DefaultTreeModel(TreeNode root)Creates a tree in which any node can have children. | 
| TreePath(Object[] path)Creates a  TreePathfrom an array. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.