timeSlider.setValue(10); timeSlider.setPreferredSize(new java.awt.Dimension(100, 16));
timeSlider.setValue(100); timeSlider.setPreferredSize(new java.awt.Dimension(150, 16)); timeSlider.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { timeSliderKeyPressed(evt); } });
    private void initComponents() {        timeFactorLabel = new javax.swing.JLabel();        timeSlider = new javax.swing.JSlider();        sep1 = new javax.swing.JSeparator();        lemTimeLabel = new javax.swing.JLabel();        timer = new javax.swing.JTextField();        timeFactorLabel.setText("Factor :      ");        add(timeFactorLabel);        timeSlider.setMinimum(1);        timeSlider.setValue(10);        timeSlider.setPreferredSize(new java.awt.Dimension(100, 16));        timeSlider.addMouseListener(new java.awt.event.MouseAdapter() {            public void mouseClicked(java.awt.event.MouseEvent evt) {                timeSliderMouseClicked(evt);            }        });        add(timeSlider);        sep1.setForeground(new java.awt.Color(51, 51, 51));        sep1.setPreferredSize(new java.awt.Dimension(10, 0));        add(sep1);        lemTimeLabel.setText("lem time:");        add(lemTimeLabel);        timer.setEditable(false);        timer.setForeground(new java.awt.Color(0, 0, 0));        timer.setDisabledTextColor(new java.awt.Color(0, 0, 0));        timer.setPreferredSize(new java.awt.Dimension(80, 19));        timer.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                timerActionPerformed(evt);            }        });        add(timer);    }