Lines Matching refs:DefaultLookup
35 * DefaultLookup provides a way to customize the lookup done by the
36 * UIManager. The default implementation of DefaultLookup forwards
46 public class DefaultLookup {
48 * Key used to store DefaultLookup for AppContext.
51 StringBuffer("DefaultLookup");
57 * DefaultLookup for last thread.
59 private static DefaultLookup currentDefaultLookup;
62 * If true, a custom DefaultLookup has been set.
68 * Sets the DefaultLookup instance to use for the current
72 public static void setDefaultLookup(DefaultLookup lookup) {
73 synchronized(DefaultLookup.class) {
83 lookup = new DefaultLookup();
94 synchronized(DefaultLookup.class) {
98 // No one has set a valid DefaultLookup, use UIManager.
102 DefaultLookup lookup;
103 synchronized(DefaultLookup.class) {
104 // See if we've already cached the DefaultLookup for this thread,
111 // Not cached, get the DefaultLookup to use from the AppContext
112 lookup = (DefaultLookup)AppContext.getAppContext().get(
115 // Fallback to DefaultLookup, which will redirect to the
117 lookup = new DefaultLookup();