Example #1
0
 @Deprecated
 public boolean postEvent(Event e) {
   toolkit.lockAWT();
   try {
     if (parent != null) {
       return parent.postEvent(e);
     }
     return false;
   } finally {
     toolkit.unlockAWT();
   }
 }
Example #2
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();
   }
 }