public class SwingHelper extends Object
| Constructor and Description |
|---|
SwingHelper() |
| Modifier and Type | Method and Description |
|---|---|
static AbstractButton |
getSelectedButton(ButtonGroup group) |
static String |
getTimeString(long value,
TimeUnit unit) |
static void |
position(Component c,
Component parent)
Position the given component at the center of the given parent component or physical screen.
|
static void |
print(Component c,
String format,
File output) |
static void |
setLookAndFeel(int fontSize) |
static String |
toString(TimeUnit unit) |
public static void position(Component c, Component parent)
c - the component to be positionedparent - the component whose center will match the center of the given component.
If null, the given component will match the screen center.public static AbstractButton getSelectedButton(ButtonGroup group)
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.