-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp1.java
More file actions
40 lines (33 loc) · 1.51 KB
/
Copy pathapp1.java
File metadata and controls
40 lines (33 loc) · 1.51 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
package app1;
/** @author skulimovskiya
* Draw a Path project, the multipurpose robot
* Done on the 17th of April for Tom Green
*/
public class APP1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
/* Set the Nimbus look and feel
change the code here if you want to change the look and feel of the GUI
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
NewJFrame frame = new NewJFrame();
frame.setVisible(true);
}
}