public void removeNotify() { toolkit.lockAWT(); try { } finally { toolkit.unlockAWT(); } }
public void setFont(Font font) { toolkit.lockAWT(); try { this.font = font; } finally { toolkit.unlockAWT(); } }
protected void processEvent(AWTEvent event) { toolkit.lockAWT(); try { // do nothing } finally { toolkit.unlockAWT(); } }
public void setName(String name) { toolkit.lockAWT(); try { this.name = name; } finally { toolkit.unlockAWT(); } }
protected String paramString() { toolkit.lockAWT(); try { return getName(); } finally { toolkit.unlockAWT(); } }
public MenuContainer getParent() { toolkit.lockAWT(); try { return parent; } finally { toolkit.unlockAWT(); } }
public String getName() { toolkit.lockAWT(); try { return name; } finally { toolkit.unlockAWT(); } }
@Override public String toString() { toolkit.lockAWT(); try { return getClass().getName() + "[" + paramString() + "]"; // $NON-NLS-1$ //$NON-NLS-2$ } finally { toolkit.unlockAWT(); } }
public Component getInitialComponent(Window window) { toolkit.lockAWT(); try { Component defaultComp = getDefaultComponent(window); return defaultComp; } finally { toolkit.unlockAWT(); } }
public MenuComponent() throws HeadlessException { toolkit.lockAWT(); try { Toolkit.checkHeadless(); name = autoName(); selectedItemIndex = -1; } finally { toolkit.unlockAWT(); } }
public AccessibleContext getAccessibleContext() { toolkit.lockAWT(); try { if (accessibleContext == null) { accessibleContext = createAccessibleContext(); } return accessibleContext; } finally { toolkit.unlockAWT(); } }
public final void dispatchEvent(AWTEvent event) { toolkit.lockAWT(); try { processEvent(event); if (deprecatedEventHandler) { postDeprecatedEvent(event); } } finally { toolkit.unlockAWT(); } }
@Deprecated public boolean postEvent(Event e) { toolkit.lockAWT(); try { if (parent != null) { return parent.postEvent(e); } return false; } finally { toolkit.unlockAWT(); } }
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(); } }