import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class TestSelectIntervalDialog extends JFrame{
TestSelectIntervalDialog(){
super("再生速度選択ダイアログのテスト");
setBounds(50,50,300,200);
getContentPane().setLayout(null);
JButton button=new JButton("表示");
button.setBounds(100,50,100,30);
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
showProc();
}
});
getContentPane().add(button);
}
private void showProc(){
SelectIntervalDialog dialog=new SelectIntervalDialog(this,"再生速度",true);
dialog.setSize(50,200);
dialog.setLocation(100,50);
int response=dialog.showIntervalDialog();
System.out.println("response=" + response);
}
public static void main(String[] args){
TestSelectIntervalDialog frame=new TestSelectIntervalDialog();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}