public class CommonUI
extends java.lang.Object
Constructor and Description |
---|
CommonUI() |
Modifier and Type | Method and Description |
---|---|
static void |
centerComponent(java.awt.Component source) |
static void |
centerComponent(java.awt.Component source,
java.awt.Component parent) |
static javax.swing.border.Border |
createBorder() |
static javax.swing.border.Border |
createBorder(java.lang.String text) |
static javax.swing.JButton |
createButton(javax.swing.Action action) |
static javax.swing.JButton |
createButton(java.lang.String text,
java.awt.event.ActionListener listener) |
static javax.swing.JButton |
createButton(java.lang.String text,
java.awt.event.ActionListener listener,
int mnemonic) |
static javax.swing.JCheckBox |
createCheckBox(java.lang.String text) |
static javax.swing.JCheckBox |
createCheckBox(java.lang.String text,
int mnemonic) |
static javax.swing.JCheckBox |
createCheckBox(java.lang.String text,
int mnemonic,
java.awt.event.ActionListener listener) |
static javax.swing.JCheckBox |
createCheckBox(java.lang.String text,
int mnemonic,
java.awt.event.ActionListener listener,
boolean selected) |
static javax.swing.JCheckBox |
createCheckBox(java.lang.String text,
int mnemonic,
boolean selected) |
static javax.swing.JComboBox |
createComboBox(java.lang.Object[] items,
java.awt.event.ActionListener listener,
boolean editable) |
static javax.swing.JComboBox |
createComboBox(java.lang.Object[] items,
boolean editable) |
static javax.swing.JComboBox |
createComboBox(java.util.Vector items,
java.awt.event.ActionListener listener,
boolean editable) |
static javax.swing.JComboBox |
createComboBox(java.util.Vector items,
boolean editable) |
static javax.swing.JLabel |
createLabel(java.lang.String text) |
static javax.swing.JLabel |
createLabel(java.lang.String text,
int mnemonic,
java.awt.Component comp) |
static javax.swing.JScrollPane |
createListPane(javax.swing.JList list,
java.lang.String text) |
static javax.swing.JRadioButton |
createRadioButton(java.lang.String text) |
static javax.swing.JRadioButton |
createRadioButton(java.lang.String text,
int mnemonic) |
static javax.swing.JRadioButton |
createRadioButton(java.lang.String text,
int mnemonic,
java.awt.event.ActionListener listener) |
static javax.swing.JRadioButton |
createRadioButton(java.lang.String text,
int mnemonic,
java.awt.event.ActionListener listener,
boolean selected) |
static javax.swing.JRadioButton |
createRadioButton(java.lang.String text,
int mnemonic,
boolean selected) |
static javax.swing.JButton |
createSmallButton(java.lang.String text,
java.awt.event.ActionListener listener) |
static javax.swing.JButton |
createSmallButton(java.lang.String text,
java.awt.event.ActionListener listener,
int mnemonic) |
static javax.swing.JTextField |
createTextField(java.lang.String text) |
static javax.swing.JTextField |
createTextField(java.lang.String text,
boolean numbers) |
static javax.swing.JTextField |
createTextField(java.lang.String text,
java.awt.event.KeyListener listener) |
static javax.swing.JTextField |
createTextField(java.lang.String text,
java.awt.event.KeyListener listener,
boolean numbers) |
static java.awt.Dimension |
getButtconPrefSize() |
static javax.swing.JFrame |
getParentFrame(java.awt.Component source) |
static java.lang.Integer |
msToSec(java.lang.Integer ms) |
static java.lang.Integer |
secToMs(java.lang.Integer sec) |
static void |
setDefaultCursor(java.awt.Component comp) |
static void |
setWaitCursor(java.awt.Component comp) |
static java.lang.String[] |
stringArrayFromString(java.lang.String string) |
static java.lang.String[] |
stringArrayFromString(java.lang.String string,
java.lang.String delim) |
static java.lang.String |
stringFromStringArray(java.lang.String[] strings) |
static java.lang.String |
stringFromStringArray(java.lang.String[] strings,
java.lang.String delim) |
public static javax.swing.JLabel createLabel(java.lang.String text, int mnemonic, java.awt.Component comp)
public static javax.swing.JLabel createLabel(java.lang.String text)
public static javax.swing.JTextField createTextField(java.lang.String text, java.awt.event.KeyListener listener, boolean numbers)
public static javax.swing.JTextField createTextField(java.lang.String text, boolean numbers)
public static javax.swing.JTextField createTextField(java.lang.String text, java.awt.event.KeyListener listener)
public static javax.swing.JTextField createTextField(java.lang.String text)
public static javax.swing.JRadioButton createRadioButton(java.lang.String text, int mnemonic, java.awt.event.ActionListener listener, boolean selected)
public static javax.swing.JRadioButton createRadioButton(java.lang.String text, int mnemonic, boolean selected)
public static javax.swing.JRadioButton createRadioButton(java.lang.String text, int mnemonic, java.awt.event.ActionListener listener)
public static javax.swing.JRadioButton createRadioButton(java.lang.String text, int mnemonic)
public static javax.swing.JRadioButton createRadioButton(java.lang.String text)
public static javax.swing.JCheckBox createCheckBox(java.lang.String text, int mnemonic, java.awt.event.ActionListener listener, boolean selected)
public static javax.swing.JCheckBox createCheckBox(java.lang.String text, int mnemonic, java.awt.event.ActionListener listener)
public static javax.swing.JCheckBox createCheckBox(java.lang.String text, int mnemonic, boolean selected)
public static javax.swing.JCheckBox createCheckBox(java.lang.String text, int mnemonic)
public static javax.swing.JCheckBox createCheckBox(java.lang.String text)
public static javax.swing.JComboBox createComboBox(java.lang.Object[] items, java.awt.event.ActionListener listener, boolean editable)
public static javax.swing.JComboBox createComboBox(java.lang.Object[] items, boolean editable)
public static javax.swing.JComboBox createComboBox(java.util.Vector items, java.awt.event.ActionListener listener, boolean editable)
public static javax.swing.JComboBox createComboBox(java.util.Vector items, boolean editable)
public static javax.swing.JButton createButton(javax.swing.Action action)
public static javax.swing.JButton createButton(java.lang.String text, java.awt.event.ActionListener listener, int mnemonic)
public static javax.swing.JButton createButton(java.lang.String text, java.awt.event.ActionListener listener)
public static javax.swing.JButton createSmallButton(java.lang.String text, java.awt.event.ActionListener listener, int mnemonic)
public static javax.swing.JButton createSmallButton(java.lang.String text, java.awt.event.ActionListener listener)
public static javax.swing.border.Border createBorder(java.lang.String text)
public static javax.swing.border.Border createBorder()
public static javax.swing.JScrollPane createListPane(javax.swing.JList list, java.lang.String text)
public static void centerComponent(java.awt.Component source, java.awt.Component parent)
public static void centerComponent(java.awt.Component source)
public static javax.swing.JFrame getParentFrame(java.awt.Component source)
public static java.lang.Integer msToSec(java.lang.Integer ms)
public static java.lang.Integer secToMs(java.lang.Integer sec)
public static java.lang.String stringFromStringArray(java.lang.String[] strings, java.lang.String delim)
public static java.lang.String stringFromStringArray(java.lang.String[] strings)
public static java.lang.String[] stringArrayFromString(java.lang.String string, java.lang.String delim)
public static java.lang.String[] stringArrayFromString(java.lang.String string)
public static void setWaitCursor(java.awt.Component comp)
public static void setDefaultCursor(java.awt.Component comp)
public static java.awt.Dimension getButtconPrefSize()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.