Package javax.swing.event

Examples of javax.swing.event.ChangeListener


      stopButton.setEnabled(false);
      t.add(stopButton)
     
      jSpin = new JSpinner(new SpinnerNumberModel(40, 10, 100, 5));
      jSpin.setBounds(140, 80, 50, 24);
      jSpin.addChangeListener( new ChangeListener(){
        public void stateChanged(ChangeEvent arg0) {
          // TODO Auto-generated method stub
          setNewStepperValues();
       
      });
View Full Code Here


   
    StartScreen.instance.jVScreenXSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerX, 0, VirtualScreenBean.screenWidthMax, 1)
        );
    StartScreen.instance.jVScreenXSpin.setBounds(400, 170, 60, 24);
    StartScreen.instance.jVScreenXSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueXSpin();
     
    })
    StartScreen.instance.t.add(StartScreen.instance.jVScreenXSpin);
   
    //Spinner Y
    VirtualScreenBean.vScreenSpinnerY = 0;
    StartScreen.instance.vscreenYLabel = new JLabel();
    StartScreen.instance.vscreenYLabel.setText("SharingScreen Y:");
    StartScreen.instance.vscreenYLabel.setBounds(250, 200, 150, 24);
    StartScreen.instance.t.add(StartScreen.instance.vscreenYLabel);
   
    StartScreen.instance.jVScreenYSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerY, 0, VirtualScreenBean.screenHeightMax, 1)
        );
    StartScreen.instance.jVScreenYSpin.setBounds(400, 200, 60, 24);
    StartScreen.instance.jVScreenYSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueYSpin();
     
    })
    StartScreen.instance.t.add(StartScreen.instance.jVScreenYSpin);
   
    //Spinner Width
    VirtualScreenBean.vScreenSpinnerWidth = VirtualScreenBean.screenWidthMax;
    StartScreen.instance.vscreenWidthLabel = new JLabel();
    StartScreen.instance.vscreenWidthLabel.setText("SharingScreen Width:");
    StartScreen.instance.vscreenWidthLabel.setBounds(250, 240, 150, 24);
    StartScreen.instance.t.add(StartScreen.instance.vscreenWidthLabel);
   
    StartScreen.instance.jVScreenWidthSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerWidth, 0, VirtualScreenBean.screenWidthMax, 1)
        );
    StartScreen.instance.jVScreenWidthSpin.setBounds(400, 240, 60, 24);
    StartScreen.instance.jVScreenWidthSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueWidthSpin();
     
    })
    StartScreen.instance.t.add(StartScreen.instance.jVScreenWidthSpin);   
   
    //Spinner Height
    VirtualScreenBean.vScreenSpinnerHeight = VirtualScreenBean.screenHeightMax;
    StartScreen.instance.vscreenHeightLabel = new JLabel();
    StartScreen.instance.vscreenHeightLabel.setText("SharingScreen Height:");
    StartScreen.instance.vscreenHeightLabel.setBounds(250, 270, 150, 24);
    StartScreen.instance.t.add(StartScreen.instance.vscreenHeightLabel);
   
    StartScreen.instance.jVScreenHeightSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerHeight, 0, VirtualScreenBean.screenHeightMax, 1)
        );
    StartScreen.instance.jVScreenHeightSpin.setBounds(400, 270, 60, 24);
    StartScreen.instance.jVScreenHeightSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueHeightSpin();
     
    })
View Full Code Here

    ScreenShareRTMPT.instance.jVScreenXSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerX, 0, VirtualScreenBean.screenWidthMax, 1)
        );
    ScreenShareRTMPT.instance.jVScreenXSpin.setBounds(400, 170, 60, 24);
    ScreenShareRTMPT.instance.jVScreenXSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueXSpin();
      }
    });
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenXSpin);

    //Spinner Y
    VirtualScreenBean.vScreenSpinnerY = 0;
    ScreenShareRTMPT.instance.vscreenYLabel = new JLabel();
    ScreenShareRTMPT.instance.vscreenYLabel.setText("SharingScreen Y:");
    ScreenShareRTMPT.instance.vscreenYLabel.setBounds(250, 200, 150, 24);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenYLabel);

    ScreenShareRTMPT.instance.jVScreenYSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerY, 0, VirtualScreenBean.screenHeightMax, 1)
        );
    ScreenShareRTMPT.instance.jVScreenYSpin.setBounds(400, 200, 60, 24);
    ScreenShareRTMPT.instance.jVScreenYSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueYSpin();
      }
    });
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenYSpin);

    //Spinner Width
    VirtualScreenBean.vScreenSpinnerWidth = VirtualScreenBean.screenWidthMax;
    logger.debug("Modify 111 "+VirtualScreenBean.vScreenSpinnerWidth);
    ScreenShareRTMPT.instance.vscreenWidthLabel = new JLabel();
    ScreenShareRTMPT.instance.vscreenWidthLabel.setText("SharingScreen Width:");
    ScreenShareRTMPT.instance.vscreenWidthLabel.setBounds(250, 240, 150, 24);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenWidthLabel);

    ScreenShareRTMPT.instance.jVScreenWidthSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerWidth, 0, VirtualScreenBean.screenWidthMax, 1)
        );
    ScreenShareRTMPT.instance.jVScreenWidthSpin.setBounds(400, 240, 60, 24);
    ScreenShareRTMPT.instance.jVScreenWidthSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueWidthSpin();
      }
    });
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.jVScreenWidthSpin);

    //Spinner Height
    VirtualScreenBean.vScreenSpinnerHeight = VirtualScreenBean.screenHeightMax;
    ScreenShareRTMPT.instance.vscreenHeightLabel = new JLabel();
    ScreenShareRTMPT.instance.vscreenHeightLabel.setText("SharingScreen Height:");
    ScreenShareRTMPT.instance.vscreenHeightLabel.setBounds(250, 270, 150, 24);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenHeightLabel);

    ScreenShareRTMPT.instance.jVScreenHeightSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerHeight, 0, VirtualScreenBean.screenHeightMax, 1)
        );
    ScreenShareRTMPT.instance.jVScreenHeightSpin.setBounds(400, 270, 60, 24);
    ScreenShareRTMPT.instance.jVScreenHeightSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
        // TODO Auto-generated method stub
        calcNewValueHeightSpin();
      }
    });
View Full Code Here

    jsliderDirection = new JSlider();
    jsliderDirection.setMaximum(3);
    jsliderDirection.setSnapToTicks(true);
    jsliderDirection.setValue(2);
    jsliderDirection.setInverted(true);
    jsliderDirection.addChangeListener(new ChangeListener() {

      public void stateChanged(final ChangeEvent evt) {
        jsliderDirectionStateChanged(evt);
      }
    });
View Full Code Here

                    //refreshModel();
                }
            }
        });
        model.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                refreshModel();
            }
        });
View Full Code Here

    /** Creates new form MouseSelectionPopupPanel */
    public MouseSelectionPopupPanel() {
        initComponents();

        diameterSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                JSlider source = (JSlider) e.getSource();
                if (!source.getValueIsAdjusting()) {
                    fireChangeEvent(source);
View Full Code Here

            });
            toolbar.add(btn);
        }

        //SelectionManager events
        VizController.getInstance().getSelectionManager().addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                SelectionManager selectionManager = VizController.getInstance().getSelectionManager();

                if (selectionManager.isRectangleSelection() && currentTool != null) {
View Full Code Here

        // forces the controller instanciation
        PreviewUIController.findInstance();

        //Ratio
        ratioSlider.addChangeListener(new ChangeListener() {

            NumberFormat formatter = NumberFormat.getPercentInstance();

            public void stateChanged(ChangeEvent e) {
                float val = ratioSlider.getValue() / 100f;
View Full Code Here

    private boolean mouseSelection;

    /** Creates new form SelectionBar */
    public SelectionBar() {
        initComponents();
        VizController.getInstance().getSelectionManager().addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                refresh();
            }
        });
View Full Code Here

        SelectionManager manager = VizController.getInstance().getSelectionManager();
        final MouseSelectionPopupPanel popupPanel = new MouseSelectionPopupPanel();
        popupPanel.setDiameter(manager.getMouseSelectionDiameter());
        popupPanel.setProportionnalToZoom(manager.isMouseSelectionZoomProportionnal());
        popupPanel.setChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                SelectionManager manager = VizController.getInstance().getSelectionManager();
                manager.setMouseSelectionDiameter(popupPanel.getDiameter());
                manager.setMouseSelectionZoomProportionnal(popupPanel.isProportionnalToZoom());
View Full Code Here

TOP

Related Classes of javax.swing.event.ChangeListener

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.