01: import java.awt.BorderLayout;
02: import javax.swing.JButton;
03: import javax.swing.JFrame;
04: 
05: public class SelectionSortViewer
06: {
07:    public static void main(String[] args)
08:    {
09:       JFrame frame = new JFrame();
10: 
11:       final int FRAME_WIDTH = 300;
12:       final int FRAME_HEIGHT = 400;
13: 
14:       frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
15:       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
16: 
17:       final SelectionSortComponent component 
18:             = new SelectionSortComponent();
19:       frame.add(component, BorderLayout.CENTER);
20: 
21:       frame.setVisible(true);
22:       component.startAnimation();
23:    }
24: }