delay=s3.getValue();
int delay=s3.getValue(); appConfig.setDelay(delay);
  public NoteChooserDialog(JFrame Parent) {        super(Parent,"Note Chooser",false);        JPanel container= new JPanel();        container.setLayout (new BorderLayout());        JPanel p4 = new JPanel();        p4.setLayout (new ColumnLayout());	JPanel p1 = new JPanel();	JLabel l1 = new JLabel("Midi Note : ");        JPanel p2 = new JPanel();	JLabel l2 = new JLabel("Velocity  :  ");        JPanel p3 = new JPanel();	JLabel l3 = new JLabel("Duration  :");	JLabel l4= new JLabel("msec");	p1.add(l1); p2.add(l2);p3.add(l3);	JPanel buttonPanel = new JPanel();	JButton ok = new JButton("Close");        ok.addActionListener(new ActionListener() {	                       public void actionPerformed(ActionEvent e) {                                   OKPressed();			       }});        buttonPanel.add( ok );	getRootPane().setDefaultButton(ok);        p4.add(p1);	p4.add(p2);	p4.add(p3);             s1.addChangeListener(new ChangeListener() {	                     public void stateChanged(ChangeEvent e) {         	               note=s1.getValue();   		               t1.setText(noteName[note%12]+note/12);                               }});        s2.addChangeListener(new ChangeListener() {	                     public void stateChanged(ChangeEvent e) {         	               velocity=s2.getValue();			       t2.setText(new Integer(velocity).toString()); 	                     }});        s3.addChangeListener(new ChangeListener() {	                     public void stateChanged(ChangeEvent e) {         	               delay=s3.getValue();			       t3.setText(new Integer(delay).toString()); 	                     }});            s1.setMajorTickSpacing(120); s1.setPaintLabels(true);        s2.setMajorTickSpacing(25); s2.setPaintLabels(true);	s3.setMajorTickSpacing(500);s3.setPaintLabels(true);	   t1.setEditable(false);t2.setEditable(false);t3.setEditable(false);	p1.add(s1); p2.add(s2); p3.add(s3);	p1.add(t1); p2.add(t2); p3.add(t3); p3.add(l4);	container.add(p4,BorderLayout.CENTER);	container.add(buttonPanel,BorderLayout.SOUTH);	getContentPane().add(container);       // setSize(400,300);        pack();	centerDialog();  }