-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWordle.java
More file actions
30 lines (23 loc) · 782 Bytes
/
Wordle.java
File metadata and controls
30 lines (23 loc) · 782 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
26
27
28
29
30
package edu.wm.cs.cs301.wordle;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import edu.wm.cs.cs301.wordle.model.WordleModel;
import edu.wm.cs.cs301.wordle.view.WordleFrame;
public class Wordle implements Runnable {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Wordle());
//Can't use the Cross-Platform Look and Feel on Windows - Needs investigation
if (!System.getProperty("os.name").contains("Windows")) {
//Must use cross-platform look and feel so button backgrounds work on Mac
try {
UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName() );
} catch (Exception e) {
e.printStackTrace();
}
}
}
@Override
public void run() {
new WordleFrame(new WordleModel());
}
}