Search in sources :

Example 36 with AppContext

use of sun.awt.AppContext in project jdk8u_jdk by JetBrains.

the class MotifLabelUI method createUI.

public static ComponentUI createUI(JComponent c) {
    AppContext appContext = AppContext.getAppContext();
    MotifLabelUI motifLabelUI = (MotifLabelUI) appContext.get(MOTIF_LABEL_UI_KEY);
    if (motifLabelUI == null) {
        motifLabelUI = new MotifLabelUI();
        appContext.put(MOTIF_LABEL_UI_KEY, motifLabelUI);
    }
    return motifLabelUI;
}
Also used : AppContext(sun.awt.AppContext)

Example 37 with AppContext

use of sun.awt.AppContext in project jdk8u_jdk by JetBrains.

the class MotifToggleButtonUI method createUI.

// ********************************
//         Create PLAF
// ********************************
public static ComponentUI createUI(JComponent b) {
    AppContext appContext = AppContext.getAppContext();
    MotifToggleButtonUI motifToggleButtonUI = (MotifToggleButtonUI) appContext.get(MOTIF_TOGGLE_BUTTON_UI_KEY);
    if (motifToggleButtonUI == null) {
        motifToggleButtonUI = new MotifToggleButtonUI();
        appContext.put(MOTIF_TOGGLE_BUTTON_UI_KEY, motifToggleButtonUI);
    }
    return motifToggleButtonUI;
}
Also used : AppContext(sun.awt.AppContext)

Example 38 with AppContext

use of sun.awt.AppContext in project jdk8u_jdk by JetBrains.

the class AnimationController method getAnimationController.

private static synchronized AnimationController getAnimationController() {
    AppContext appContext = AppContext.getAppContext();
    Object obj = appContext.get(ANIMATION_CONTROLLER_KEY);
    if (obj == null) {
        obj = new AnimationController();
        appContext.put(ANIMATION_CONTROLLER_KEY, obj);
    }
    return (AnimationController) obj;
}
Also used : AppContext(sun.awt.AppContext)

Example 39 with AppContext

use of sun.awt.AppContext in project jdk8u_jdk by JetBrains.

the class MotifRadioButtonUI method createUI.

// ********************************
//         Create PLAF
// ********************************
public static ComponentUI createUI(JComponent c) {
    AppContext appContext = AppContext.getAppContext();
    MotifRadioButtonUI motifRadioButtonUI = (MotifRadioButtonUI) appContext.get(MOTIF_RADIO_BUTTON_UI_KEY);
    if (motifRadioButtonUI == null) {
        motifRadioButtonUI = new MotifRadioButtonUI();
        appContext.put(MOTIF_RADIO_BUTTON_UI_KEY, motifRadioButtonUI);
    }
    return motifRadioButtonUI;
}
Also used : AppContext(sun.awt.AppContext)

Example 40 with AppContext

use of sun.awt.AppContext in project jdk8u_jdk by JetBrains.

the class WindowsCheckBoxUI method createUI.

// ********************************
//          Create PLAF
// ********************************
public static ComponentUI createUI(JComponent c) {
    AppContext appContext = AppContext.getAppContext();
    WindowsCheckBoxUI windowsCheckBoxUI = (WindowsCheckBoxUI) appContext.get(WINDOWS_CHECK_BOX_UI_KEY);
    if (windowsCheckBoxUI == null) {
        windowsCheckBoxUI = new WindowsCheckBoxUI();
        appContext.put(WINDOWS_CHECK_BOX_UI_KEY, windowsCheckBoxUI);
    }
    return windowsCheckBoxUI;
}
Also used : AppContext(sun.awt.AppContext)

Aggregations

AppContext (sun.awt.AppContext)74 HashMap (java.util.HashMap)3 Hashtable (java.util.Hashtable)3 Locale (java.util.Locale)3 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)3 EventListenerAggregate (sun.awt.EventListenerAggregate)3 FlavorListener (java.awt.datatransfer.FlavorListener)2 WeakReference (java.lang.ref.WeakReference)2 Map (java.util.Map)2 DefaultComboBoxModel (javax.swing.DefaultComboBoxModel)2 LookAndFeel (javax.swing.LookAndFeel)2 MetalLookAndFeel (javax.swing.plaf.metal.MetalLookAndFeel)2 MetalTheme (javax.swing.plaf.metal.MetalTheme)2 ValueNamePair (org.compiere.util.ValueNamePair)2 PeerEvent (sun.awt.PeerEvent)2 AccumulativeRunnable (sun.swing.AccumulativeRunnable)2 Container (java.awt.Container)1 EventQueue (java.awt.EventQueue)1 Font (java.awt.Font)1 Rectangle (java.awt.Rectangle)1