public class GuiTools extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GuiTools.GBHelper
Simplify the GridBagConstrains handling.
|
static class |
GuiTools.SizedJPanel
All tabbed panels should have the same preferred size.
|
Constructor and Description |
---|
GuiTools() |
Modifier and Type | Method and Description |
---|---|
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 . |
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 pixelCopyright © 2010-2014. All Rights Reserved.