Package javax.swing

Examples of javax.swing.JSlider$AccessibleJSlider


  JPanel panelUserSetting = new JPanel();
  panelUserSetting.setBorder(BorderFactory
    .createTitledBorder("User Temperature Setting"));
  panelUserSetting.setLayout(new BoxLayout(panelUserSetting,
    BoxLayout.Y_AXIS));
  userSetting = new JSlider(10, 40, 21);
  userSetting.addChangeListener(this);
  labelSetting.setEnabled(false);
  labelSetting.setText("21°C");
  labelSetting.setHorizontalAlignment(JTextField.CENTER);
  panelUserSetting.add(labelSetting);
View Full Code Here


   
   
    JPanel panelUserSetting = new JPanel();
    panelUserSetting.setBorder(BorderFactory.createTitledBorder("User Temperature Setting"));
    panelUserSetting.setLayout(new BoxLayout(panelUserSetting, BoxLayout.Y_AXIS));
    userSetting = new JSlider(10,40,21);
    userSetting.addChangeListener(this);
    labelSetting.setEnabled(false);
    labelSetting.setText("21°C");
    labelSetting.setHorizontalAlignment(JTextField.CENTER);
    panelUserSetting.add(labelSetting);
View Full Code Here

                    .addComponent(totalPositionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jSlider1tempoSliderChanged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jSlider1tempoSliderChanged
        JSlider s = (JSlider) evt.getSource();
        seq.setTempo(s.getValue());
        bpmLabel.setText(s.getValue() + " bpm");
    }//GEN-LAST:event_jSlider1tempoSliderChanged
View Full Code Here

   *
   * @return javax.swing.JSlider
   */
  JSlider getScriptFrameSlider() {
    if (scriptFrameSlider == null) {
      scriptFrameSlider = new JSlider();
      scriptFrameSlider
          .addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent e) {
              mainController.scriptFrameChanged(
                  scriptFrameSlider.getValue(), null,
View Full Code Here

    currentTime.setForeground(Color.GRAY);
    maximumTime = new JLabel(maximum);
    maximumTime.setForeground(Color.GRAY);
    maximumTime.setFont(new Font("Calibri", Font.PLAIN, 13));

    seek = new JSlider() {
      private static final long serialVersionUID = -4931644654633925931L;

      {
        final MouseListener[] listeners = getMouseListeners();
        for (final MouseListener l : listeners) {
View Full Code Here

          rollover = false;
        }
      }
    });

    volume = new JSlider() {
      private static final long serialVersionUID = -4931644654633925931L;

      {
        final MouseListener[] listeners = getMouseListeners();
        for (final MouseListener l : listeners) {
View Full Code Here

    setDragEnabled(true);

     pCompression = new JPanel();
     pCompression.setLayout(new BoxLayout(pCompression, BoxLayout.X_AXIS));
     pCompression.add(new JLabel(LangTool.INSTANCE.getStringDialogFrame("ExportDialog.0"))); //$NON-NLS-1$
     compressionSlide = new JSlider(SwingConstants.VERTICAL, 0, 100, 20);
     compressionSlide.setMajorTickSpacing(10);
     compressionSlide.setPaintTicks(true);
     compressionSlide.setPaintLabels(true);

     pCompression.add(compressionSlide);
View Full Code Here

        currentRam = new JLabel();
        currentRam.setBounds(427, 95, 85, 25);
        long ram = OSUtils.getOSTotalMemory();
        long freeram = OSUtils.getOSFreeMemory();

        ramMaximum = new JSlider();
        ramMaximum.setBounds(190, 95, 222, 25);
        ramMaximum.setSnapToTicks(true);
        ramMaximum.setMajorTickSpacing(256);
        ramMaximum.setMinorTickSpacing(256);
        ramMaximum.setMinimum(256);
View Full Code Here

    .contains("enabled=true").contains("visible=true").contains("showing=false");
  }

  @Test
  public void should_format_JSlider() {
    JSlider slider = slider().withMaximum(8).withMinimum(2).withValue(6).withName("slider").createNew();
    assertThat(formatted(slider)).contains("javax.swing.JSlider").contains("name='slider'").contains("value=6")
    .contains("minimum=2").contains("maximum=8").contains("enabled=true").contains("visible=true")
    .contains("showing=false");
  }
View Full Code Here

    @RunsInEDT
    public JSlider createNew() {
      return execute(new GuiQuery<JSlider>() {
        @Override
        protected JSlider executeInEDT() {
          JSlider slider = new JSlider();
          slider.setMaximum(maximum);
          slider.setMinimum(minimum);
          slider.setName(name);
          slider.setValue(value);
          return slider;
        }
      });
    }
View Full Code Here

TOP

Related Classes of javax.swing.JSlider$AccessibleJSlider

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.