public class GUIUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static javax.swing.JLabel |
credits
The credit labels
|
Constructor and Description |
---|
GUIUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JPanel |
prepareBorderedTitle(java.lang.String s)
This method creates a new JLabel correctly formatted in order to be a
frame title.
|
static javax.swing.JTextField |
prepareIntegerField(int initialContent)
This method creates a new text field for receiving integer (up to 5
digits) as input
|
static javax.swing.JLabel |
prepareLabel(int i)
This method creates a new JLabel correctly formatted
|
static javax.swing.JLabel |
prepareLabel(int i,
int alignment)
This method creates a new JLabel correctly formatted
|
static javax.swing.JLabel |
prepareLabel(java.lang.String s)
This method creates a new JLabel correctly formatted
|
static javax.swing.JLabel |
prepareLabel(java.lang.String s,
int alignment)
This method creates a new JLabel correctly formatted
|
static javax.swing.JTextField |
prepareTextField(java.lang.String initialContent)
This method creates a new text field for receiving text as input
|
static javax.swing.JLabel |
prepareTitle(java.lang.String s)
This method creates a new JLabel correctly formatted in order to be a
frame title
|
public static javax.swing.JLabel prepareLabel(java.lang.String s)
s
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareLabel(java.lang.String s, int alignment)
s
- the string to be inserted into the labelalignment
- the alignmentpublic static javax.swing.JLabel prepareLabel(int i)
i
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareLabel(int i, int alignment)
i
- the string to be inserted into the labelalignment
- the alignmentpublic static javax.swing.JPanel prepareBorderedTitle(java.lang.String s)
s
- the string to be inserted into the labelpublic static javax.swing.JLabel prepareTitle(java.lang.String s)
s
- the string to be inserted into the labelpublic static javax.swing.JTextField prepareTextField(java.lang.String initialContent)
initialContent
- the initial content of the text fieldpublic static javax.swing.JTextField prepareIntegerField(int initialContent)
initialContent
- the initial content of the text field