Method Summary |
|
public static Point2D | add(Point2D a, Point2D b) |
public static void | addInternalFrameListener(JDesktopPane pane, InternalFrameListener listener) Listens to all internal frames (current and future) in a JDesktopPane. |
public static Color | alphaColor(Color color, int alpha) |
public static void | centre(Component componentToMove, Component componentToCentreOn) |
public static void | centreOnScreen(Component componentToMove) |
public static void | centreOnWindow(Component componentToMove) |
public static void | chooseGoodColumnWidths(JTable table) Sets the column widths based on the first row. |
public static Cursor | createCursor(Image image, Point hotSpot) |
public static Cursor | createCursorFromIcon(Image iconImage) |
public static FileFilter | createFileFilter(String description, String[] extensions) Parameters: extensions - e.g. |
public static JFileChooser | createJFileChooserWithExistenceChecking() |
public static JFileChooser | createJFileChooserWithOverwritePrompting() |
public static JFileChooser | createJFileChooserWithOverwritePrompting(String ext) |
public static Timer | createRestartableSingleEventTimer(int delay, ActionListener listener) Returns a Timer that fires once, after the delay. |
public static ValidatingTextField | createSyncdTextField(JSlider s) |
public static ValidatingTextField | createSyncdTextField(JSlider s, int columns) |
public static void | dispose(JInternalFrame internalFrame, JDesktopPane desktopPane) Ensures that the next frame is activated when #dispose is called
explicitly, in JDK 1.4. |
public static void | doNotRoundDoubles(JTable table) |
final public static String | escapeHTML(String value, boolean escapeSpaces, boolean escapeNewlines) Returns a string suitable for embedding as HTML. |
public static void | fixClicks(Component c) Fix for Sun Java Bug 4398733: if you click in an inactive JInternalFrame,
the mousePressed and mouseReleased events will be fired, but not the
mouseClicked event. |
public static void | fixEditableComboBox(JComboBox cb) Workaround for Java Bug 4648654 "REGRESSION: Editable JComboBox focus
misbehaves under Windows look and feel, proposed by Kleopatra
(fastegal@addcom.de). |
public static Transferable | getContents(Clipboard clipboard) The JVM's clipboard implementation is buggy (see bugs 4644554 and 4522198
in Sun's Java bug database). |
public static Component | getDescendantOfClass(Class c, Container container) |
public static String | getExtension(File f) |
public static void | handleThrowable(Throwable t, Component parent) |
public static void | highlightForDebugging(JComponent component, Color color) Highlights a given component with a given color. |
public static void | invokeOnEventThread(Runnable r) GUI operations should be performed only on the AWT event dispatching
thread. |
public static List | items(JComboBox comboBox) |
public static JTextArea | makeTabMoveFocus(JTextArea textArea) Based on Green, Roedy. |
public static Point2D | multiply(Point2D v, double x) |
public static String | nameWithoutExtension(File file) |
public static void | removeChoosableFileFilters(JFileChooser fc) |
public static ImageIcon | resize(ImageIcon icon, int extent) |
public static File[] | selectedFiles(JFileChooser chooser) |
public static void | setLocation(Component componentToMove, Location location, Component other) |
public static void | setSelectedWithClick(JCheckBox checkBox, boolean selected) Calls #doClick so that events are fired. |
public static void | shrinkFont(JComponent component) |
public static Point2D | subtract(Point2D a, Point2D b) |
public static int | swingThreadPriority() |
public static void | sync(JSlider s, ValidatingTextField t) |
public static void | sync(JSlider s1, JSlider s2) |
public static void | sync(JCheckBox c1, JCheckBox c2) |
public static void | syncEnabledStates(JComponent c1, JComponent c2) |
public static ImageIcon | toDisabledIcon(ImageIcon icon) |
public static DocumentListener | toDocumentListener(ActionListener listener) |
public static InternalFrameListener | toInternalFrameListener(ActionListener listener) |
public static ListDataListener | toListDataListener(ActionListener listener) |
public static Color | toSimulatedTransparency(Color color) |
public static ImageIcon | toSmallIcon(ImageIcon icon) Resizes icon to 16 x 16. |
public static Component | topCard(Container c) |
public static double | trueAscent(TextLayout layout) Returns the distance from the baseline to the top of the text's bounding
box. |
public static String | truncateString(String s, int maxLength) |