public class WidgetFactory extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected static java.awt.Component |
getDefaultSpacer()
create a non-opaque JLabel containing the given displayText, with the
minimumSize and preferredSize set to the PrefMinDims Dimension
|
protected static javax.swing.JLabel |
makeJLabel(java.lang.String displayText,
java.awt.Dimension PrefMinDims)
create a non-opaque JLabel containing the given displayText, with the
minimumSize and preferredSize set to the PrefMinDims Dimension
|
protected static javax.swing.JTextArea |
makeJTextArea(java.lang.String initialValue)
create a non-opaque JTextField containing the given initialValue, with
the minimumSize and preferredSize set to the PrefMinDims Dimension
|
protected static javax.swing.JTextField |
makeJTextField(java.lang.String initialValue,
java.awt.Dimension PrefMinDims)
create a JTextField containing the given initialValue, with the
minimumSize and preferredSize set to the PrefMinDims Dimension
|
protected static void |
setPrefMinMaxSizes(javax.swing.JComponent component,
java.awt.Dimension dims)
sets the minimum, maximum and preferred sizes to the passed Dimension
|
protected static void |
setPrefMinSizes(javax.swing.JComponent component,
java.awt.Dimension dims)
sets the minimum and preferred sizes to the passed Dimension
|
protected static javax.swing.JLabel makeJLabel(java.lang.String displayText, java.awt.Dimension PrefMinDims)
displayText
- StringPrefMinDims
- Dimensionprotected static javax.swing.JTextField makeJTextField(java.lang.String initialValue, java.awt.Dimension PrefMinDims)
initialValue
- StringPrefMinDims
- Dimensionprotected static javax.swing.JTextArea makeJTextArea(java.lang.String initialValue)
initialValue
- StringPrefMinDims
- Dimensionprotected static java.awt.Component getDefaultSpacer()
displayText
- StringPrefMinDims
- Dimensionprotected static void setPrefMinSizes(javax.swing.JComponent component, java.awt.Dimension dims)
component
- JComponentdims
- Dimensionprotected static void setPrefMinMaxSizes(javax.swing.JComponent component, java.awt.Dimension dims)
component
- JComponentdims
- Dimension