blob: eba8c3e8405329445decce8a6f624fbab8b34530 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package mandelbrot;
import java.awt.Insets;
import javax.swing.JFrame;
/**
*
* @author Sjaak Smetsers
* @version 1.0, 14-03-2013
*/
/**
* creates a window to which a GridView panel is added
*
*/
public class MainWindow {
public MainWindow ( GridView grid ) {
JFrame mainFrame = new JFrame ("Mandelbrot");
mainFrame.setLocationRelativeTo(null);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mainFrame.setResizable(false);
mainFrame.setVisible(true);
mainFrame.add(grid);
mainFrame.pack();
}
}
|