Java Utililty Methods JComponent Properties

List of utility methods to do JComponent Properties

Description

The list of methods to do JComponent Properties are organized into topic(s).

Method

voidsetLightweightDispatcher(JComponent component)
set Lightweight Dispatcher
if (dispatcherField == null) {
    initReflection();
try {
    Object dispatcher = newLightweightDispatcher.newInstance(component);
    enableEvents.invoke(dispatcher, MOUSE_MASK | AWTEvent.KEY_EVENT_MASK);
    dispatcherField.set(component, dispatcher);
    component.addKeyListener(new KeyAdapter() {
...
voidshowAsOnlyVisibleChild(JComponent container, Component childToBeMadeVisible)
show As Only Visible Child
for (Component child : container.getComponents()) {
    boolean visible = child.equals(childToBeMadeVisible);
    child.setVisible(visible);
    if (visible) {
        container.getLayout().addLayoutComponent(BorderLayout.CENTER, child);
    } else {
        container.getLayout().removeLayoutComponent(child);
    child.repaint();
container.revalidate();
container.repaint();
voidshowSplash(JComponent content, int milliseconds)
DOCUMENT ME!
showSplash(content, milliseconds, true);
voidshowSplash(JComponent content, int milliseconds, boolean start_timer)
show Splash
hideSplash();
if (splashWindow == null) {
    splashWindow = new JWindow();
splashContent = content;
splashWindow.getContentPane().add(splashContent);
splashWindow.pack();
centerWindowLocation(splashWindow);
...