-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (22 loc) · 747 Bytes
/
Main.java
File metadata and controls
25 lines (22 loc) · 747 Bytes
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
import javax.swing.JFrame;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
public class Main{
public static void main(String[] args){
try {
for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (Exception e) {}
MLFQFrame mlfqFrame = new MLFQFrame();
mlfqFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mlfqFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
mlfqFrame.setUndecorated(true);
mlfqFrame.setVisible(true);
mlfqFrame.setLocationRelativeTo(null);
}
}