Package java.awt.event

Examples of java.awt.event.ComponentAdapter


      this.add(addButton); // add add-button to row panel
//      if (!this.prefix.hasElements()){
      this.createPrefixRow("", "");
//      }
     
      this.addComponentListener(new ComponentAdapter() {
       
        public void componentResized(ComponentEvent e) {
         
          updateSize();
        }
View Full Code Here


      }
    };

    this.setFocusListener(FL);

    this.addComponentListener(new ComponentAdapter() {
      @Override
      public void componentResized(final ComponentEvent e) {
        ListOperatorPanel.this.updateSize();
      }
    });
View Full Code Here

    TitledBorder titled;
    final Font font = new Font(Font.SANS_SERIF, Font.ROMAN_BASELINE, 11);
    titled = BorderFactory.createTitledBorder(raisedbevel," Variable ", 0, 0, font, Color.BLACK);
    this.setBorder(titled);

    this.addComponentListener(new ComponentAdapter() {
      @Override
      public void componentResized(final ComponentEvent e) {
        VariablePanel.this.updateSize();
      }
    });
View Full Code Here

      this.initRulePanel();
      this.ruleOperator.setInitRulePanel(true);
    }

    if (!this.ruleOperator.isInitRule()) {
      this.addComponentListener(new ComponentAdapter() {
        @Override
        public void componentResized(final ComponentEvent e) {
          RuleOperatorPanel.this.updateSize();
        }
View Full Code Here

  private void initRulePanel() {

  this.getVisualRifEditor().getRuleContainer().getRulePanelList().add(new RuleIdentifier(this.ruleOperator.getRulePanel().getRuleName(),this.ruleOperator.getRulePanel(),  this, this.ruleOperator.getRulePanel().getRulePath(),this.ruleOperator.getDocumentName()));

  this.addComponentListener(new ComponentAdapter() {
    @Override
    public void componentResized(final ComponentEvent e) {
      RuleOperatorPanel.this.updateSize();
    }
  });
View Full Code Here

      worldPanel.setLayout(null);
      add(worldPanel);

      // add component listener to handle frame resize

      addComponentListener(new ComponentAdapter()
        {
            // timing thread that waits until
            // the user has stopped dragging to resize
            // the window
View Full Code Here

                    setVisible(false);
                    dispose();
                }
            };
            closeButton.addActionListener(closeAction);
            addComponentListener(new ComponentAdapter() {
                @Override
                public void componentHidden(ComponentEvent e) {
                    //remove the action listener
                    closeButton.removeActionListener(closeAction);
                    exitIfFatal();
View Full Code Here

        panel.setPreferredSize(new Dimension(200, 220));
        add(panel);
        setTitle("Multiphase Metronome");
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        this.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                panel.scale();
                pack();
            }
        });
View Full Code Here

        new FloatingToolTransparencyListener(this, descriptor, window);
        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window);
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(window);

        window.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                valueAdjusting = true;
                try {
                    ((FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING)).setSize(
                            window.getWidth(),
View Full Code Here

                    layeredPane = descriptor.getManager().getLayeredPane();
                }
            }
        });

        sheet.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                valueAdjusting = true;
                try {
                    ((FloatingLiveTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE)).setSize(
                            sheet.getWidth(),
View Full Code Here

TOP

Related Classes of java.awt.event.ComponentAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.