public class SwingLookAndFeelService extends AbstractService implements SciJavaService
| Constructor and Description |
|---|
SwingLookAndFeelService() |
| Modifier and Type | Method and Description |
|---|---|
UIManager.LookAndFeelInfo |
getLookAndFeel(String name)
Gets the system-wide look and feel with the given name.
|
UIManager.LookAndFeelInfo[] |
getLookAndFeels()
Gets the available look and feels.
|
void |
initLookAndFeel()
Initializes the system-wide Swing look and feel.
|
void |
setLookAndFeel(String lookAndFeel)
Sets the system-wide look and feel to the given one.
|
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic void initLookAndFeel()
UserInterface implementation to call this before creating
any Swing-based UI components.public void setLookAndFeel(String lookAndFeel)
lookAndFeel - the look and feel to set, by either name (e.g. "Metal")
or class name (e.g. "javax.swing.plaf.metal.MetalLookAndFeel").IllegalArgumentException - If the given look and feel is unknown.public UIManager.LookAndFeelInfo getLookAndFeel(String name)
name - Name of the desired look and feel.UIManager.LookAndFeelInfo object with the given name.public UIManager.LookAndFeelInfo[] getLookAndFeels()
UIManager.LookAndFeelInfo objects.Copyright © 2010–2024 SciJava. All rights reserved.