|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.obolibrary.gui.GuiTools
public class GuiTools
Tools for the layout and handling of the GUI components.
Nested Class Summary | |
---|---|
static class |
GuiTools.GBHelper
Simplify the GridBagConstrains handling. |
static class |
GuiTools.SizedJPanel
All tabbed panels should have the same preferred size. |
Constructor Summary | |
---|---|
GuiTools()
|
Method Summary | |
---|---|
static void |
addRowGap(JPanel panel,
GuiTools.GBHelper pos,
int size)
Add an additional row with a fixed size for layout purposes. |
static JTextField |
createTextField(String defaultValue)
Create a new JTextField and set text value to a give default. |
static List<String> |
getStrings(JTextArea jTextArea)
Retrieve the lines as a list of strings from a given JTextArea . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiTools()
Method Detail |
---|
public static JTextField createTextField(String defaultValue)
JTextField
and set text value to a give default.
defaultValue
-
public static void addRowGap(JPanel panel, GuiTools.GBHelper pos, int size)
GridBagLayout
and GuiTools.GBHelper
.
panel
- The panel to layoutpos
- Layout position informationsize
- height of the row in pixelpublic static List<String> getStrings(JTextArea jTextArea)
JTextArea
.
jTextArea
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |