-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomListGenerator.java
More file actions
45 lines (39 loc) · 1.2 KB
/
RandomListGenerator.java
File metadata and controls
45 lines (39 loc) · 1.2 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
/** RandomCircularListGenerator
* @author Chase Carnaroli
*
* This is the main, which sets up the whole program.
*/
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class RandomListGenerator
{
// Instance Variables
private static Window ui;
private static Controller controller;
// Constructor
public static void main(String[] args)
{
// Set Look and Feel of Program
try {
// Set cross-platform Java L&F (also called "Metal")
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
}
catch (UnsupportedLookAndFeelException e) {
// handle exception
}
catch (ClassNotFoundException e) {
// handle exception
}
catch (InstantiationException e) {
// handle exception
}
catch (IllegalAccessException e) {
// handle exception
}
// Start the program up
ui = new Window(); // Create Window
controller = new Controller(ui); // Create controller
ui.setController(controller); // Set window's controller
}
}