Package javax.swing

Examples of javax.swing.JSpinner$ModelChangeListener


    ScreenShare.instance.vscreenXLabel = new JLabel();
    ScreenShare.instance.vscreenXLabel.setText("SharingScreen X:");
    ScreenShare.instance.vscreenXLabel.setBounds(250, 170, 150, 24);
    ScreenShare.instance.t.add(ScreenShare.instance.vscreenXLabel);

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

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

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

    //Spinner Width
    VirtualScreenBean.vScreenSpinnerWidth = VirtualScreenBean.screenWidthMax;
    ScreenShare.instance.vscreenWidthLabel = new JLabel();
    ScreenShare.instance.vscreenWidthLabel.setText("SharingScreen Width:");
    ScreenShare.instance.vscreenWidthLabel.setBounds(250, 240, 150, 24);
    ScreenShare.instance.t.add(ScreenShare.instance.vscreenWidthLabel);

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

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

    ScreenShare.instance.jVScreenHeightSpin = new JSpinner(
          new SpinnerNumberModel(VirtualScreenBean.vScreenSpinnerHeight, 0, VirtualScreenBean.screenHeightMax, 1)
        );
    ScreenShare.instance.jVScreenHeightSpin.setBounds(400, 270, 60, 24);
    ScreenShare.instance.jVScreenHeightSpin.addChangeListener( new ChangeListener(){
      public void stateChanged(ChangeEvent arg0) {
View Full Code Here


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

    StartScreen.instance.vscreenXLabel = new JLabel();
    StartScreen.instance.vscreenXLabel.setText("SharingScreen X:");
    StartScreen.instance.vscreenXLabel.setBounds(250, 170, 150, 24);
    StartScreen.instance.t.add(StartScreen.instance.vscreenXLabel);
   
    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) {
View Full Code Here

    ScreenShareRTMPT.instance.vscreenXLabel = new JLabel();
    ScreenShareRTMPT.instance.vscreenXLabel.setText("SharingScreen X:");
    ScreenShareRTMPT.instance.vscreenXLabel.setBounds(250, 170, 150, 24);
    ScreenShareRTMPT.instance.t.add(ScreenShareRTMPT.instance.vscreenXLabel);

    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) {
View Full Code Here

   */
  private JPopupMenu createPopup() {
    JPopupMenu menu = new JPopupMenu();
   
    SpinnerModel model = new SpinnerNumberModel(1, 0, item.getQuantity(), 1);
    spinner = new JSpinner(model);
    /*
     * Setup a key listener for the editor field so that the drop is
     * performed when the user presses enter.
     */
    getTextField().addKeyListener(new KeyAdapter() {
View Full Code Here

        add(spinnerField, BorderLayout.CENTER);
        spinnerModel = new SpinnerNumberModel(new Double(0), null, null, new Double(valueStep));
        spinnerField.setModel(spinnerModel);
      */
    spinnerModel = new SpinnerNumberModel(new Double(0), null, null, new Double(valueStep));
    spinnerField = new JSpinner(spinnerModel) {
      @Override
      protected JComponent createEditor(SpinnerModel model) {
        return new NumberEditor(this, "0.#######");
      }
    };
View Full Code Here

    private JPopupMenu popup;
    private Action okAction;

    public TimeOffsetPanel(JPopupMenu popup) {
        this.popup = popup;
        timeSpinner = new JSpinner(new SpinnerDateModel());
        timeSpinner.setEditor(new JSpinner.DateEditor(timeSpinner, getPattern()));
        //.setLayout(new GridLayout(1, 2, 10, 10));
        setOffsetCheckBox = new JCheckBox(LocalisationHelper.getString("timeoffset_prompt"), true);
        setOffsetCheckBox.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
View Full Code Here

  }


  @Override
  public boolean isConditionRespected() {
    final JSpinner spinner = getInteraction().getSpinner();
    return instrument.hand.isActivated() && (spinner==instrument.gradAngleField || spinner==instrument.gradMidPtField ||
        spinner==instrument.hatchAngleField || spinner==instrument.hatchSepField || spinner==instrument.hatchWidthField);
  }
View Full Code Here

    Spinner2SelectionFilling.setValue(interaction.getSpinner(), instrument, action);
  }

  @Override
  public boolean isConditionRespected() {
    final JSpinner spinner = interaction.getSpinner();
    return instrument.pencil.isActivated() && (spinner==instrument.gradAngleField || spinner==instrument.gradMidPtField || spinner==instrument.hatchAngleField ||
        spinner==instrument.hatchSepField || spinner==instrument.hatchWidthField);
  }
View Full Code Here

        action.setTy(value-tl.getY());
    }

    @Override
    public boolean isConditionRespected() {
      final JSpinner obj = interaction.getSpinner();
      return obj==instrument.tlxS || obj==instrument.tlyS;
    }
View Full Code Here

TOP

Related Classes of javax.swing.JSpinner$ModelChangeListener

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.