public final class GuiUtils extends Object
| Constructor and Description |
|---|
GuiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JComponent |
createLabelCombo(String label,
JComboBox comboBox)
Create a GUI component JLabel + JComboBox with a left and right margin (5px)
|
static void |
fixSize(TableColumn column,
JTable table)
Fix the size of a column according to the header text.
|
static String |
getPastedText()
Get pasted text from clipboard
|
static void |
makeScrollableMenu(JMenu menu)
Make menu scrollable
|
static JScrollPane |
makeScrollPane(Component comp)
Create a scroll panel that sets its preferred size to its minimum size.
|
static void |
stopTableEditing(JTable table)
Stop any editing that is currently being done on the table.
|
public static JScrollPane makeScrollPane(Component comp)
comp - the component which should be placed inside the scroll panepublic static void fixSize(TableColumn column, JTable table)
column - to be resizedtable - containing the columnpublic static JComponent createLabelCombo(String label, JComboBox comboBox)
label - comboBox - public static void stopTableEditing(JTable table)
public static String getPastedText() throws UnsupportedFlavorException, IOException
UnsupportedFlavorExceptionIOExceptionCopyright © 1998-2015 Apache Software Foundation. All Rights Reserved.