public class Region extends Object
 Regions are typically used as a way to identify the Components
 and areas a particular style is to apply to. Synth's file format allows you
 to bind styles based on the name of a Region.
 The name is derived from the field name of the constant:
 
SPLIT_PANE
 Region you would use SplitPane.
 The following shows a custom SynthStyleFactory
 that returns a specific style for split panes:
 
    public SynthStyle getStyle(JComponent c, Region id) {
        if (id == Region.SPLIT_PANE) {
            return splitPaneStyle;
        }
        ...
    }
 
 The following xml
 accomplishes the same thing:
 <style id="splitPaneStyle"> ... </style> <bind style="splitPaneStyle" type="region" key="SplitPane"/>
| Modifier and Type | Field and Description | 
|---|---|
| static Region | ARROW_BUTTONArrowButton's are special types of buttons that also render a
 directional indicator, typically an arrow. | 
| static Region | BUTTONButton region. | 
| static Region | CHECK_BOXCheckBox region. | 
| static Region | CHECK_BOX_MENU_ITEMCheckBoxMenuItem region. | 
| static Region | COLOR_CHOOSERColorChooser region. | 
| static Region | COMBO_BOXComboBox region. | 
| static Region | DESKTOP_ICONDesktopIcon region. | 
| static Region | DESKTOP_PANEDesktopPane region. | 
| static Region | EDITOR_PANEEditorPane region. | 
| static Region | FILE_CHOOSERFileChooser region. | 
| static Region | FORMATTED_TEXT_FIELDFormattedTextField region. | 
| static Region | INTERNAL_FRAMEInternalFrame region. | 
| static Region | INTERNAL_FRAME_TITLE_PANETitlePane of an InternalFrame. | 
| static Region | LABELLabel region. | 
| static Region | LISTList region. | 
| static Region | MENUMenu region. | 
| static Region | MENU_BARMenuBar region. | 
| static Region | MENU_ITEMMenuItem region. | 
| static Region | MENU_ITEM_ACCELERATORAccelerator region of a MenuItem. | 
| static Region | OPTION_PANEOptionPane region. | 
| static Region | PANELPanel region. | 
| static Region | PASSWORD_FIELDPasswordField region. | 
| static Region | POPUP_MENUPopupMenu region. | 
| static Region | POPUP_MENU_SEPARATORPopupMenuSeparator region. | 
| static Region | PROGRESS_BARProgressBar region. | 
| static Region | RADIO_BUTTONRadioButton region. | 
| static Region | RADIO_BUTTON_MENU_ITEMRegionButtonMenuItem region. | 
| static Region | ROOT_PANERootPane region. | 
| static Region | SCROLL_BARScrollBar region. | 
| static Region | SCROLL_BAR_THUMBThumb of the ScrollBar. | 
| static Region | SCROLL_BAR_TRACKTrack of the ScrollBar. | 
| static Region | SCROLL_PANEScrollPane region. | 
| static Region | SEPARATORSeparator region. | 
| static Region | SLIDERSlider region. | 
| static Region | SLIDER_THUMBThumb of the Slider. | 
| static Region | SLIDER_TRACKTrack of the Slider. | 
| static Region | SPINNERSpinner region. | 
| static Region | SPLIT_PANESplitPane region. | 
| static Region | SPLIT_PANE_DIVIDERDivider of the SplitPane. | 
| static Region | TABBED_PANETabbedPane region. | 
| static Region | TABBED_PANE_CONTENTRegion of a TabbedPane containing the content. | 
| static Region | TABBED_PANE_TABRegion of a TabbedPane for one tab. | 
| static Region | TABBED_PANE_TAB_AREARegion of a TabbedPane containing the tabs. | 
| static Region | TABLETable region. | 
| static Region | TABLE_HEADERTableHeader region. | 
| static Region | TEXT_AREATextArea region. | 
| static Region | TEXT_FIELDTextField region. | 
| static Region | TEXT_PANETextPane region. | 
| static Region | TOGGLE_BUTTONToggleButton region. | 
| static Region | TOOL_BARToolBar region. | 
| static Region | TOOL_BAR_CONTENTRegion of the ToolBar containing the content. | 
| static Region | TOOL_BAR_DRAG_WINDOWRegion for the Window containing the ToolBar. | 
| static Region | TOOL_BAR_SEPARATORToolBar separator region. | 
| static Region | TOOL_TIPToolTip region. | 
| static Region | TREETree region. | 
| static Region | TREE_CELLRegion of the Tree for one cell. | 
| static Region | VIEWPORTViewport region. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | Region(String name,
      String ui,
      boolean subregion)Creates a Region with the specified name. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getName()Returns the name of the region. | 
| boolean | isSubregion()Returns true if the Region is a subregion of a Component, otherwise
 false. | 
| String | toString()Returns the name of the Region. | 
public static final Region ARROW_BUTTON
Region use the name
 ArrowButton.public static final Region BUTTON
Region use the name
 Button.public static final Region CHECK_BOX
Region use the name
 CheckBox.public static final Region CHECK_BOX_MENU_ITEM
Region use
 the name CheckBoxMenuItem.public static final Region COLOR_CHOOSER
Region use
 the name ColorChooser.public static final Region COMBO_BOX
Region use
 the name ComboBox.public static final Region DESKTOP_PANE
Region use
 the name DesktopPane.public static final Region DESKTOP_ICON
Region use
 the name DesktopIcon.public static final Region EDITOR_PANE
Region use
 the name EditorPane.public static final Region FILE_CHOOSER
Region use
 the name FileChooser.public static final Region FORMATTED_TEXT_FIELD
Region use
 the name FormattedTextField.public static final Region INTERNAL_FRAME
Region use
 the name InternalFrame.public static final Region INTERNAL_FRAME_TITLE_PANE
Region use the name
 InternalFrameTitlePane.public static final Region LABEL
Region use the name
 Label.public static final Region LIST
Region use the name
 List.public static final Region MENU
Region use the name
 Menu.public static final Region MENU_BAR
Region use the name
 MenuBar.public static final Region MENU_ITEM
Region use the name
 MenuItem.public static final Region MENU_ITEM_ACCELERATOR
Region use the name MenuItemAccelerator.public static final Region OPTION_PANE
Region use
 the name OptionPane.public static final Region PANEL
Region use the name
 Panel.public static final Region PASSWORD_FIELD
Region use
 the name PasswordField.public static final Region POPUP_MENU
Region use
 the name PopupMenu.public static final Region POPUP_MENU_SEPARATOR
Region
 use the name PopupMenuSeparator.public static final Region PROGRESS_BAR
Region
 use the name ProgressBar.public static final Region RADIO_BUTTON
Region
 use the name RadioButton.public static final Region RADIO_BUTTON_MENU_ITEM
Region
 use the name RadioButtonMenuItem.public static final Region ROOT_PANE
Region use
 the name RootPane.public static final Region SCROLL_BAR
Region use
 the name ScrollBar.public static final Region SCROLL_BAR_TRACK
Region use
 the name ScrollBarTrack.public static final Region SCROLL_BAR_THUMB
Region use
 the name ScrollBarThumb.public static final Region SCROLL_PANE
Region use
 the name ScrollPane.public static final Region SEPARATOR
Region use
 the name Separator.public static final Region SLIDER
Region use
 the name Slider.public static final Region SLIDER_TRACK
Region use
 the name SliderTrack.public static final Region SLIDER_THUMB
Region use the name
 SliderThumb.public static final Region SPINNER
Region use the name
 Spinner.public static final Region SPLIT_PANE
Region use the name
 SplitPane.public static final Region SPLIT_PANE_DIVIDER
Region
 use the name SplitPaneDivider.public static final Region TABBED_PANE
Region use
 the name TabbedPane.public static final Region TABBED_PANE_TAB
Region use the name TabbedPaneTab.public static final Region TABBED_PANE_TAB_AREA
Region use the name TabbedPaneTabArea.public static final Region TABBED_PANE_CONTENT
Region use the name TabbedPaneContent.public static final Region TABLE
Region use
 the name Table.public static final Region TABLE_HEADER
Region use
 the name TableHeader.public static final Region TEXT_AREA
Region use
 the name TextArea.public static final Region TEXT_FIELD
Region use
 the name TextField.public static final Region TEXT_PANE
Region use
 the name TextPane.public static final Region TOGGLE_BUTTON
Region use
 the name ToggleButton.public static final Region TOOL_BAR
Region use
 the name ToolBar.public static final Region TOOL_BAR_CONTENT
Region use the name ToolBarContent.public static final Region TOOL_BAR_DRAG_WINDOW
Region use the name ToolBarDragWindow.public static final Region TOOL_TIP
Region use
 the name ToolTip.public static final Region TOOL_BAR_SEPARATOR
Region use
 the name ToolBarSeparator.public static final Region TREE
Region use the name
 Tree.public static final Region TREE_CELL
Region use the name TreeCell.public static final Region VIEWPORT
Region use
 the name Viewport.protected Region(String name, String ui, boolean subregion)
JComponent subclass
 with a custom ComponentUI class.name - Name of the regionui - String that will be returned from
           component.getUIClassID. This will be null
           if this is a subregion.subregion - Whether or not this is a subregion.public boolean isSubregion()
Region.BUTTON corresponds do a
 Component so that Region.BUTTON.isSubregion()
 returns false.public String getName()
 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.