| 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. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | RectangleA  Rectanglespecifies an area in a coordinate space that is
 enclosed by theRectangleobject's upper-left point(x,y)in the coordinate space, its width, and its height. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | Arc2DArc2Dis the abstract superclass for all objects that
 store a 2D arc defined by a framing rectangle,
 start angle, angular extent (length of the arc), and a closure type
 (OPEN,CHORD, orPIE). | 
| static class  | Arc2D.DoubleThis class defines an arc specified in  doubleprecision. | 
| static class  | Arc2D.FloatThis class defines an arc specified in  floatprecision. | 
| class  | Ellipse2DThe  Ellipse2Dclass describes an ellipse that is defined
 by a framing rectangle. | 
| static class  | Ellipse2D.DoubleThe  Doubleclass defines an ellipse specified
 indoubleprecision. | 
| static class  | Ellipse2D.FloatThe  Floatclass defines an ellipse specified
 infloatprecision. | 
| class  | Rectangle2DThe  Rectangle2Dclass describes a rectangle
 defined by a location(x,y)and dimension(w x h). | 
| static class  | Rectangle2D.DoubleThe  Doubleclass defines a rectangle specified in
 double coordinates. | 
| static class  | Rectangle2D.FloatThe  Floatclass defines a rectangle specified in float
 coordinates. | 
| class  | RoundRectangle2DThe  RoundRectangle2Dclass defines a rectangle with
 rounded corners defined by a location(x,y), a
 dimension(w x h), and the width and height of an arc
 with which to round the corners. | 
| static class  | RoundRectangle2D.DoubleThe  Doubleclass defines a rectangle with rounded
 corners all specified indoublecoordinates. | 
| static class  | RoundRectangle2D.FloatThe  Floatclass defines a rectangle with rounded
 corners all specified infloatcoordinates. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BasicTextUI.BasicCaret | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultCaretA default implementation of Caret. | 
 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.