Ejemplo n.º 1
0
 public void removeNotify() {
   toolkit.lockAWT();
   try {
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 2
0
 public void setFont(Font font) {
   toolkit.lockAWT();
   try {
     this.font = font;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 3
0
 protected void processEvent(AWTEvent event) {
   toolkit.lockAWT();
   try {
     // do nothing
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 4
0
 public void setName(String name) {
   toolkit.lockAWT();
   try {
     this.name = name;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 5
0
 protected String paramString() {
   toolkit.lockAWT();
   try {
     return getName();
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 6
0
 public MenuContainer getParent() {
   toolkit.lockAWT();
   try {
     return parent;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 7
0
 public String getName() {
   toolkit.lockAWT();
   try {
     return name;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 8
0
 @Override
 public String toString() {
   toolkit.lockAWT();
   try {
     return getClass().getName() + "[" + paramString() + "]"; // $NON-NLS-1$ //$NON-NLS-2$
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 9
0
 public Component getInitialComponent(Window window) {
   toolkit.lockAWT();
   try {
     Component defaultComp = getDefaultComponent(window);
     return defaultComp;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 10
0
 public MenuComponent() throws HeadlessException {
   toolkit.lockAWT();
   try {
     Toolkit.checkHeadless();
     name = autoName();
     selectedItemIndex = -1;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 11
0
 public AccessibleContext getAccessibleContext() {
   toolkit.lockAWT();
   try {
     if (accessibleContext == null) {
       accessibleContext = createAccessibleContext();
     }
     return accessibleContext;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 12
0
 public final void dispatchEvent(AWTEvent event) {
   toolkit.lockAWT();
   try {
     processEvent(event);
     if (deprecatedEventHandler) {
       postDeprecatedEvent(event);
     }
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 13
0
 @Deprecated
 public boolean postEvent(Event e) {
   toolkit.lockAWT();
   try {
     if (parent != null) {
       return parent.postEvent(e);
     }
     return false;
   } finally {
     toolkit.unlockAWT();
   }
 }
Ejemplo n.º 14
0
 public Font getFont() {
   toolkit.lockAWT();
   try {
     if (font == null && hasDefaultFont()) {
       return toolkit.getDefaultFont();
     }
     if (font == null && parent != null) {
       return parent.getFont();
     }
     return font;
   } finally {
     toolkit.unlockAWT();
   }
 }