Example #1
0
 public void addNotify() {
   super.addNotify();
   Art.init(getGraphicsConfiguration());
   levelRenderer =
       new LevelRenderer(level, getGraphicsConfiguration(), level.length * 16, level.height * 16);
   levelRenderer.renderBehaviors = true;
 }
Example #2
0
 public void addNotify() {
   super.addNotify();
   scene.addSceneListener(this);
   JComponent viewComponent = scene.getView();
   if (viewComponent == null) {
     viewComponent = scene.createView();
   }
   viewComponent.addComponentListener(this);
   repaint();
 }
  public void addNotify() {
    super.addNotify();

    uninstallListeners();

    myWindow = SwingUtilities.getWindowAncestor(this);
    if (myWindow != null) {
      if (myWindow instanceof Frame) {
        setState(((Frame) myWindow).getExtendedState());
      } else {
        setState(0);
      }
      setActive(myWindow.isActive());
      installListeners();
      updateSystemIcon();
    }
  }
Example #4
0
 public void addNotify() {
   super.addNotify();
   thread.start();
 }
Example #5
0
 /** {@inheritDoc} */
 public void addNotify() {
   super.addNotify();
   enableEvents(AWTEvent.KEY_EVENT_MASK);
 }