public class UIs extends Object
Modifier and Type | Method and Description |
---|---|
static Border |
createDefaultDialogBorder(Container parent,
JComponent content)
Create a border used to separate the dialog content from the frame.
|
static Component |
createRelatedHorizontalGap(Container parent,
JComponent left,
JComponent right)
Create a horizontal strut used to separate two related components.
|
static Component |
createRelatedVerticalGap(Container parent,
JComponent top,
JComponent bottom)
Create a vertical strut used to separate two related components.
|
static Component |
createUnrelatedHorizontalGap(Container parent,
JComponent left,
JComponent right)
Create a horizontal strut used to separate two unrelated components.
|
static Component |
createUnrelatedVerticalGap(Container parent,
JComponent top,
JComponent bottom)
Create a vertical strut used to separate two unrelated components.
|
static Insets |
getDialogInsets()
Return the default insets for dialogs.
|
static ComponentUI |
getUI(JComponent component,
String uiClassID)
Create the UI for the given component.
|
static void |
loadDefaultsIntoUIManager(Object[] keysAndValues)
Adds the given defaults in the UIManager.
|
static void |
unloadDefaultsFromUIManager(Object[] keysAndValues)
Removes the given defaults from the UIManager.
|
@CallOnEDT public static Insets getDialogInsets()
IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static Component createRelatedHorizontalGap(Container parent, JComponent left, JComponent right)
parent
- the parent containerIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static Component createRelatedVerticalGap(Container parent, JComponent top, JComponent bottom)
parent
- the parent containerIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static Component createUnrelatedVerticalGap(Container parent, JComponent top, JComponent bottom)
parent
- the parent containerIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static Component createUnrelatedHorizontalGap(Container parent, JComponent left, JComponent right)
parent
- the parent containerIllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static Border createDefaultDialogBorder(Container parent, JComponent content)
IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static ComponentUI getUI(JComponent component, String uiClassID)
uiClassID
is expected to
resolve to a UI class name.IllegalStateException
- if the calling thread is not the Event Dispatch
Thread
@CallOnEDT public static void loadDefaultsIntoUIManager(Object[] keysAndValues)
keysAndValues
- the defaults to be added@CallOnEDT public static void unloadDefaultsFromUIManager(Object[] keysAndValues)
keysAndValues
- the defaults to be removedCopyright © 2024 levigo holding gmbh. All rights reserved.