public class GUIUtils extends Object
| Constructor and Description |
|---|
GUIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JTextPane |
createSelectionDescription(String DescriptionString,
Color background,
Font font)
Create a JTextPane that is uneditable and uses background and font as desired.
|
static JPanel |
createSelectionPanel(String SelectionName,
JComboBox selector,
Color background)
Create a SelecionPanel, with a given String and a JCombobox as selector along with a given backrgound color.
|
static Dimension |
getPreferredSize(JTextComponent comp,
Dimension origDimension,
int minwidth)
Get the preferred size of a JTextComponent given a specific minimal width and its current dimension
|
public static JTextPane createSelectionDescription(String DescriptionString, Color background, Font font)
public static Dimension getPreferredSize(JTextComponent comp, Dimension origDimension, int minwidth)
comp - the component to get the preferred size.origDimension - The original Dimension of the component.minwidth - The minimal width to use.JTextComponent assuming the given minimum width and the actual width from the dimension.public static JPanel createSelectionPanel(String SelectionName, JComboBox selector, Color background)
SelectionName - - The Name for the panelselector - - the JComboBox that represents the selection options.background - The Color to use as background.Copyright © 2018. All rights reserved.