|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmarkov.gui.GuiUtils
public class GuiUtils
GUI utilities for actions
Constructor Summary | |
---|---|
GuiUtils()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiUtils()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |