public final class SwingUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static ImageIcon |
MADKIT_LOGO
The MaDKit's logo
|
static ImageIcon |
MADKIT_LOGO_SMALL
The MaDKit's logo with a size of 14x14 pixels
|
public static final ImageIcon MADKIT_LOGO
public static final ImageIcon MADKIT_LOGO_SMALL
public static JPanel createSliderPanel(JSlider slider, String label)
slider - label - public static JPanel createSliderPanel(JSlider slider, String label, int width)
slider - label - public static JPanel createSliderPanel(BoundedRangeModel model, String label)
DefaultBoundedRangeModelmodel - label - public static JSlider createJSlider(BoundedRangeModel model)
DefaultBoundedRangeModel and containing a MouseWheelListener and some
usual default settingsmodel - JSliderpublic static void addMaDKitActionsTo(Container menuOrToolBar, AbstractAgent agent)
KernelAction.EXIT
KernelAction.COPY
KernelAction.RESTART
KernelAction.LAUNCH_NETWORK
KernelAction.STOP_NETWORK
GUIManagerAction.CONNECT_TO_IP
GlobalAction.JCONSOLE
KernelAction.CONSOLE
GlobalAction.DEBUG
GlobalAction.LOAD_LOCAL_DEMOS
GlobalAction.LOAD_JAR_FILE
GUIManagerAction.ICONIFY_ALL
GUIManagerAction.DEICONIFY_ALL
GUIManagerAction.KILL_AGENTS
agent - the agent for which this menu will be built.public static AbstractButton addBooleanActionTo(Container menuOrToolBar, BooleanAction action)
JCheckBoxMenuItem for a menu or JToggleButton for a tool barmenuOrToolBar - action - JToggleButton or a JCheckBoxMenuItemNoSuchMethodExceptionIllegalAccessExceptionInvocationTargetExceptionpublic static void scaleAllAbstractButtonIconsOf(Container container, int size)
container - a container containing abstract buttonssize - the size which should be used for the icons
Fabien Michel, Olivier Gutknecht, Jacques Ferber - February 17 2020