Example #1
0
 /**
  * Processes events on this check box. If the event is an instance of <code>ItemEvent</code>, this
  * method invokes the <code>processItemEvent</code> method. Otherwise, it calls its superclass's
  * <code>processEvent</code> method.
  *
  * <p>Note that if the event parameter is <code>null</code> the behavior is unspecified and may
  * result in an exception.
  *
  * @param e the event
  * @see j86.java.awt.event.ItemEvent
  * @see #processItemEvent
  * @since JDK1.1
  */
 protected void processEvent(AWTEvent e) {
   if (e instanceof ItemEvent) {
     processItemEvent((ItemEvent) e);
     return;
   }
   super.processEvent(e);
 }
Example #2
0
 /**
  * Creates the peer of the Checkbox. The peer allows you to change the look of the Checkbox
  * without changing its functionality.
  *
  * @see j86.java.awt.Toolkit#createCheckbox(java.awt.Checkbox)
  * @see j86.java.awt.Component#getToolkit()
  */
 public void addNotify() {
   synchronized (getTreeLock()) {
     if (peer == null) peer = getToolkit().createCheckbox(this);
     super.addNotify();
   }
 }