public class GuiUtils
extends java.lang.Object
Constructor and Description |
---|
GuiUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
changeLook(java.lang.String lnfName,
java.awt.Window win)
Changes the current look and feel for the given Window.
|
static void |
createActionTable(javax.swing.text.JTextComponent textComponent)
The following two methods allow us to find an action provided by the
editor kit by its name.
|
static javax.swing.JLabel |
fancyLabel(java.lang.String title,
java.lang.String text)
Creates a fancy Label with border ans title around.
|
static javax.swing.Action |
getActionByName(java.lang.String name)
Returns the Action object with this name
|
static javax.swing.JButton |
getButton(javax.swing.Action a)
Aux method: deletes text from a button if icon is available
|
static void |
setTabEnabled(javax.swing.JComponent comp,
boolean enabl)
Utility Function to enable/disable the tab associated with this component
|
public static void changeLook(java.lang.String lnfName, java.awt.Window win)
lnfName
- Look/And/Feel namewin
- Windowpublic static void setTabEnabled(javax.swing.JComponent comp, boolean enabl)
comp
- The componentenabl
- True or false.public static void createActionTable(javax.swing.text.JTextComponent textComponent)
textComponent
- public static javax.swing.JLabel fancyLabel(java.lang.String title, java.lang.String text)
title
- text
- public static javax.swing.Action getActionByName(java.lang.String name)
name
- public static javax.swing.JButton getButton(javax.swing.Action a)
a
- Action