| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.color | Provides classes for color spaces. | 
| java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical
User Interface systems that provides a mechanism to transfer
information between two entities logically associated with presentation
elements in the GUI. | 
| java.awt.event | Provides interfaces and classes for dealing with different
types of events fired by AWT components. | 
| java.awt.geom | Provides the Java 2D classes for defining and performing operations
on objects related to two-dimensional geometry. | 
| java.awt.image | Provides classes for creating and modifying images. | 
| java.awt.print | Provides classes and interfaces for a general printing API. | 
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| java.net | Provides the classes for implementing networking applications. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | SystemColor. ACTIVE_CAPTIONThe array index for the
  SystemColor.activeCaptionsystem color. | |
| static int | SystemColor. ACTIVE_CAPTION_BORDERThe array index for the
  SystemColor.activeCaptionBordersystem color. | |
| static int | SystemColor. ACTIVE_CAPTION_TEXTThe array index for the
  SystemColor.activeCaptionTextsystem color. | |
| static int | DisplayMode. BIT_DEPTH_MULTIValue of the bit depth if multiple bit depths are supported in this
 display mode. | |
| static int | Transparency. BITMASKRepresents image data that is guaranteed to be either completely
 opaque, with an alpha value of 1.0, or completely transparent,
 with an alpha value of 0.0. | |
| static int | BasicStroke. CAP_BUTTEnds unclosed subpaths and dash segments with no added
 decoration. | |
| static int | BasicStroke. CAP_ROUNDEnds unclosed subpaths and dash segments with a round
 decoration that has a radius equal to half of the width
 of the pen. | |
| static int | BasicStroke. CAP_SQUAREEnds unclosed subpaths and dash segments with a square
 projection that extends beyond the end of the segment
 to a distance equal to half of the line width. | |
| static int | AlphaComposite. CLEARBoth the color and the alpha of the destination are cleared
 (Porter-Duff Clear rule). | |
| static int | SystemColor. CONTROLThe array index for the
  SystemColor.controlsystem color. | |
| static int | SystemColor. CONTROL_DK_SHADOWThe array index for the
  SystemColor.controlDkShadowsystem color. | |
| static int | SystemColor. CONTROL_HIGHLIGHTThe array index for the
  SystemColor.controlHighlightsystem color. | |
| static int | SystemColor. CONTROL_LT_HIGHLIGHTThe array index for the
  SystemColor.controlLtHighlightsystem color. | |
| static int | SystemColor. CONTROL_SHADOWThe array index for the
  SystemColor.controlShadowsystem color. | |
| static int | SystemColor. CONTROL_TEXTThe array index for the
  SystemColor.controlTextsystem color. | |
| static int | SystemColor. DESKTOPThe array index for the
  SystemColor.desktopsystem color. | |
| static int | AlphaComposite. DSTThe destination is left untouched
 (Porter-Duff Destination rule). | |
| static int | AlphaComposite. DST_ATOPThe part of the destination lying inside of the source
 is composited over the source and replaces the destination
 (Porter-Duff Destination Atop Source rule). | |
| static int | AlphaComposite. DST_INThe part of the destination lying inside of the source
 replaces the destination
 (Porter-Duff Destination In Source rule). | |
| static int | AlphaComposite. DST_OUTThe part of the destination lying outside of the source
 replaces the destination
 (Porter-Duff Destination Held Out By Source rule). | |
| static int | AlphaComposite. DST_OVERThe destination is composited over the source and
 the result replaces the destination
 (Porter-Duff Destination Over Source rule). | |
| static int | Adjustable. HORIZONTALIndicates that the  Adjustablehas horizontal orientation. | |
| static int | SystemColor. INACTIVE_CAPTIONThe array index for the
  SystemColor.inactiveCaptionsystem color. | |
| static int | SystemColor. INACTIVE_CAPTION_BORDERThe array index for the
  SystemColor.inactiveCaptionBordersystem color. | |
| static int | SystemColor. INACTIVE_CAPTION_TEXTThe array index for the
  SystemColor.inactiveCaptionTextsystem color. | |
| static int | SystemColor. INFOThe array index for the
  SystemColor.infosystem color. | |
| static int | SystemColor. INFO_TEXTThe array index for the
  SystemColor.infoTextsystem color. | |
| static int | BasicStroke. JOIN_BEVELJoins path segments by connecting the outer corners of their
 wide outlines with a straight segment. | |
| static int | BasicStroke. JOIN_MITERJoins path segments by extending their outside edges until
 they meet. | |
| static int | BasicStroke. JOIN_ROUNDJoins path segments by rounding off the corner at a radius
 of half the line width. | |
| static int | SystemColor. MENUThe array index for the
  SystemColor.menusystem color. | |
| static int | SystemColor. MENU_TEXTThe array index for the
  SystemColor.menuTextsystem color. | |
| static int | Adjustable. NO_ORIENTATIONIndicates that the  Adjustablehas no orientation. | |
| static int | SystemColor. NUM_COLORSThe number of system colors in the array. | |
| static int | Transparency. OPAQUERepresents image data that is guaranteed to be completely opaque,
 meaning that all pixels have an alpha value of 1.0. | |
| static int | DisplayMode. REFRESH_RATE_UNKNOWNValue of the refresh rate if not known. | |
| static int | SystemColor. SCROLLBARThe array index for the
  SystemColor.scrollbarsystem color. | |
| static int | AlphaComposite. SRCThe source is copied to the destination
 (Porter-Duff Source rule). | |
| static int | AlphaComposite. SRC_ATOPThe part of the source lying inside of the destination
 is composited onto the destination
 (Porter-Duff Source Atop Destination rule). | |
| static int | AlphaComposite. SRC_INThe part of the source lying inside of the destination replaces
 the destination
 (Porter-Duff Source In Destination rule). | |
| static int | AlphaComposite. SRC_OUTThe part of the source lying outside of the destination
 replaces the destination
 (Porter-Duff Source Held Out By Destination rule). | |
| static int | AlphaComposite. SRC_OVERThe source is composited over the destination
 (Porter-Duff Source Over Destination rule). | |
| static int | SystemColor. TEXTThe array index for the
  SystemColor.textsystem color. | |
| static int | SystemColor. TEXT_HIGHLIGHTThe array index for the
  SystemColor.textHighlightsystem color. | |
| static int | SystemColor. TEXT_HIGHLIGHT_TEXTThe array index for the
  SystemColor.textHighlightTextsystem color. | |
| static int | SystemColor. TEXT_INACTIVE_TEXTThe array index for the
  SystemColor.textInactiveTextsystem color. | |
| static int | SystemColor. TEXT_TEXTThe array index for the
  SystemColor.textTextsystem color. | |
| static int | Transparency. TRANSLUCENTRepresents image data that contains or might contain arbitrary
 alpha values between and including 0.0 and 1.0. | |
| static int | Adjustable. VERTICALIndicates that the  Adjustablehas vertical orientation. | |
| static int | SystemColor. WINDOWThe array index for the
  SystemColor.windowsystem color. | |
| static int | SystemColor. WINDOW_BORDERThe array index for the
  SystemColor.windowBordersystem color. | |
| static int | SystemColor. WINDOW_TEXTThe array index for the
  SystemColor.windowTextsystem color. | |
| static int | AlphaComposite. XORThe part of the source that lies outside of the destination
 is combined with the part of the destination that lies outside
 of the source
 (Porter-Duff Source Xor Destination rule). | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | ColorSpace. CS_CIEXYZThe CIEXYZ conversion color space defined above. | |
| static int | ColorSpace. CS_GRAYThe built-in linear gray scale color space. | |
| static int | ColorSpace. CS_LINEAR_RGBA built-in linear RGB color space. | |
| static int | ColorSpace. CS_PYCCThe Photo YCC conversion color space. | |
| static int | ColorSpace. CS_sRGBThe sRGB color space defined at
 
 http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html
 . | |
| static int | ColorSpace. TYPE_2CLRGeneric 2 component color spaces. | |
| static int | ColorSpace. TYPE_3CLRGeneric 3 component color spaces. | |
| static int | ColorSpace. TYPE_4CLRGeneric 4 component color spaces. | |
| static int | ColorSpace. TYPE_5CLRGeneric 5 component color spaces. | |
| static int | ColorSpace. TYPE_6CLRGeneric 6 component color spaces. | |
| static int | ColorSpace. TYPE_7CLRGeneric 7 component color spaces. | |
| static int | ColorSpace. TYPE_8CLRGeneric 8 component color spaces. | |
| static int | ColorSpace. TYPE_9CLRGeneric 9 component color spaces. | |
| static int | ColorSpace. TYPE_ACLRGeneric 10 component color spaces. | |
| static int | ColorSpace. TYPE_BCLRGeneric 11 component color spaces. | |
| static int | ColorSpace. TYPE_CCLRGeneric 12 component color spaces. | |
| static int | ColorSpace. TYPE_CMYAny of the family of CMY color spaces. | |
| static int | ColorSpace. TYPE_CMYKAny of the family of CMYK color spaces. | |
| static int | ColorSpace. TYPE_DCLRGeneric 13 component color spaces. | |
| static int | ColorSpace. TYPE_ECLRGeneric 14 component color spaces. | |
| static int | ColorSpace. TYPE_FCLRGeneric 15 component color spaces. | |
| static int | ColorSpace. TYPE_GRAYAny of the family of GRAY color spaces. | |
| static int | ColorSpace. TYPE_HLSAny of the family of HLS color spaces. | |
| static int | ColorSpace. TYPE_HSVAny of the family of HSV color spaces. | |
| static int | ColorSpace. TYPE_LabAny of the family of Lab color spaces. | |
| static int | ColorSpace. TYPE_LuvAny of the family of Luv color spaces. | |
| static int | ColorSpace. TYPE_RGBAny of the family of RGB color spaces. | |
| static int | ColorSpace. TYPE_XYZAny of the family of XYZ color spaces. | |
| static int | ColorSpace. TYPE_YCbCrAny of the family of YCbCr color spaces. | |
| static int | ColorSpace. TYPE_YxyAny of the family of Yxy color spaces. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | DnDConstants. ACTION_COPYAn  intrepresenting a "copy" action. | |
| static int | DnDConstants. ACTION_COPY_OR_MOVEAn  intrepresenting a "copy" or
 "move" action. | |
| static int | DnDConstants. ACTION_LINKAn  intrepresenting a "link" action. | |
| static int | DnDConstants. ACTION_MOVEAn  intrepresenting a "move" action. | |
| static int | DnDConstants. ACTION_NONEAn  intrepresenting no action. | |
| static int | DnDConstants. ACTION_REFERENCEAn  intrepresenting a "reference"
 action (synonym for ACTION_LINK). | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | ActionEvent. ACTION_PERFORMEDThis event id indicates that a meaningful action occurred. | |
| static int | AdjustmentEvent. BLOCK_DECREMENTThe block decrement adjustment type. | |
| static int | AdjustmentEvent. BLOCK_INCREMENTThe block increment adjustment type. | |
| static int | InputMethodEvent. CARET_POSITION_CHANGEDThe event type indicating a changed insertion point in input method text. | |
| static int | ComponentEvent. COMPONENT_HIDDENThis event indicates that the component was rendered invisible. | |
| static int | ComponentEvent. COMPONENT_MOVEDThis event indicates that the component's position changed. | |
| static int | ComponentEvent. COMPONENT_RESIZEDThis event indicates that the component's size changed. | |
| static int | ComponentEvent. COMPONENT_SHOWNThis event indicates that the component was made visible. | |
| static int | InputMethodEvent. INPUT_METHOD_FIRSTMarks the first integer id for the range of input method event ids. | |
| static int | InputMethodEvent. INPUT_METHOD_LASTMarks the last integer id for the range of input method event ids. | |
| static int | InputMethodEvent. INPUT_METHOD_TEXT_CHANGEDThe event type indicating changed input method text. | |
| static int | AdjustmentEvent. TRACKThe absolute tracking adjustment type. | |
| static int | AdjustmentEvent. UNIT_DECREMENTThe unit decrement adjustment type. | |
| static int | AdjustmentEvent. UNIT_INCREMENTThe unit increment adjustment type. | |
| static int | MouseWheelEvent. WHEEL_BLOCK_SCROLLConstant representing scrolling by a "block" (like scrolling
 with page-up, page-down keys) | |
| static int | MouseWheelEvent. WHEEL_UNIT_SCROLLConstant representing scrolling by "units" (like scrolling with the
 arrow keys) | |
| static int | WindowEvent. WINDOW_ACTIVATEDThe window-activated event type. | |
| static int | WindowEvent. WINDOW_CLOSEDThe window closed event. | |
| static int | WindowEvent. WINDOW_CLOSINGThe "window is closing" event. | |
| static int | WindowEvent. WINDOW_DEACTIVATEDThe window-deactivated event type. | |
| static int | WindowEvent. WINDOW_DEICONIFIEDThe window deiconified event type. | |
| static int | WindowEvent. WINDOW_GAINED_FOCUSThe window-gained-focus event type. | |
| static int | WindowEvent. WINDOW_ICONIFIEDThe window iconified event. | |
| static int | WindowEvent. WINDOW_LOST_FOCUSThe window-lost-focus event type. | |
| static int | WindowEvent. WINDOW_OPENEDThe window opened event. | |
| static int | WindowEvent. WINDOW_STATE_CHANGEDThe window-state-changed event type. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | PathIterator. SEG_CLOSEThe segment type constant that specifies that
 the preceding subpath should be closed by appending a line segment
 back to the point corresponding to the most recent SEG_MOVETO. | |
| static int | PathIterator. SEG_CUBICTOThe segment type constant for the set of 3 points that specify
 a cubic parametric curve to be drawn from the most recently
 specified point. | |
| static int | PathIterator. SEG_LINETOThe segment type constant for a point that specifies the
 end point of a line to be drawn from the most recently
 specified point. | |
| static int | PathIterator. SEG_MOVETOThe segment type constant for a point that specifies the
 starting location for a new subpath. | |
| static int | PathIterator. SEG_QUADTOThe segment type constant for the pair of points that specify
 a quadratic parametric curve to be drawn from the most recently
 specified point. | |
| static int | PathIterator. WIND_EVEN_ODDThe winding rule constant for specifying an even-odd rule
 for determining the interior of a path. | |
| static int | PathIterator. WIND_NON_ZEROThe winding rule constant for specifying a non-zero rule
 for determining the interior of a path. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | ConvolveOp. EDGE_NO_OPPixels at the edge of the source image are copied to
 the corresponding pixels in the destination without modification. | |
| static int | ConvolveOp. EDGE_ZERO_FILLPixels at the edge of the destination image are set to zero. | |
| static int | AffineTransformOp. TYPE_BICUBICBicubic interpolation type. | |
| static int | AffineTransformOp. TYPE_BILINEARBilinear interpolation type. | |
| static int | DataBuffer. TYPE_BYTETag for unsigned byte data. | |
| static int | DataBuffer. TYPE_DOUBLETag for double data. | |
| static int | DataBuffer. TYPE_FLOATTag for float data. | |
| static int | DataBuffer. TYPE_INTTag for int data. | |
| static int | AffineTransformOp. TYPE_NEAREST_NEIGHBORNearest-neighbor interpolation type. | |
| static int | DataBuffer. TYPE_SHORTTag for signed short data. | |
| static int | DataBuffer. TYPE_UNDEFINEDTag for undefined data. | |
| static int | DataBuffer. TYPE_USHORTTag for unsigned short data. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | PageFormat. LANDSCAPEThe origin is at the bottom left of the paper with
  x running bottom to top and y running left to right. | |
| static int | PageFormat. PORTRAITThe origin is at the top left of the paper with
  x running to the right and y running down the
  paper. | |
| static int | PageFormat. REVERSE_LANDSCAPEThe origin is at the top right of the paper with x
  running top to bottom and y running right to left. | |
| static int | Pageable. UNKNOWN_NUMBER_OF_PAGESThis constant is returned from the
  getNumberOfPagesmethod if aPageableimplementation does not know
 the number of pages in its set. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static long | Long. MAX_VALUEA constant holding the maximum value a  longcan
 have, 263-1. | |
| static int | Integer. MAX_VALUEA constant holding the maximum value an  intcan
 have, 231-1. | |
| static long | Long. MIN_VALUEA constant holding the minimum value a  longcan
 have, -263. | |
| static int | Integer. MIN_VALUEA constant holding the minimum value an  intcan
 have, -231. | |
| static int | Long. SIZEThe number of bits used to represent a  longvalue in two's
 complement binary form. | |
| static int | Integer. SIZEThe number of bits used to represent an  intvalue in two's
 complement binary form. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static int | SocketOptions. IP_MULTICAST_IFSet which outgoing interface on which to send multicast packets. | |
| static int | SocketOptions. IP_MULTICAST_IF2Same as above. | |
| static int | SocketOptions. IP_MULTICAST_LOOPThis option enables or disables local loopback of multicast datagrams. | |
| static int | SocketOptions. IP_TOSThis option sets the type-of-service or traffic class field
 in the IP header for a TCP or UDP socket. | |
| static int | SocketOptions. SO_BINDADDRFetch the local address binding of a socket (this option cannot
 be "set" only "gotten", since sockets are bound at creation time,
 and so the locally bound address cannot be changed). | |
| static int | SocketOptions. SO_BROADCASTSets SO_BROADCAST for a socket. | |
| static int | SocketOptions. SO_KEEPALIVEWhen the keepalive option is set for a TCP socket and no data
 has been exchanged across the socket in either direction for
 2 hours (NOTE: the actual value is implementation dependent),
 TCP automatically sends a keepalive probe to the peer. | |
| static int | SocketOptions. SO_LINGERSpecify a linger-on-close timeout. | |
| static int | SocketOptions. SO_OOBINLINEWhen the OOBINLINE option is set, any TCP urgent data received on
 the socket will be received through the socket input stream. | |
| static int | SocketOptions. SO_RCVBUFSet a hint the size of the underlying buffers used by the
 platform for incoming network I/O. | |
| static int | SocketOptions. SO_REUSEADDRSets SO_REUSEADDR for a socket. | |
| static int | SocketOptions. SO_SNDBUFSet a hint the size of the underlying buffers used by the
 platform for outgoing network I/O. | |
| static int | SocketOptions. SO_TIMEOUTSet a timeout on blocking Socket operations: | |
| static int | SocketOptions. TCP_NODELAYDisable Nagle's algorithm for this connection. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.