-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathBlackjack.java
More file actions
34 lines (29 loc) · 1.07 KB
/
Blackjack.java
File metadata and controls
34 lines (29 loc) · 1.07 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
// jar -cfvm Blackjack.jar Blackjack.mf *
// jar -cfvm Blackjack.jar Blackjack.mf *.class card_images Cards/*.class Players/*.class
import javax.swing.UIManager;
public class Blackjack
{
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e)
{
System.out.println(e);
}
/**
* I think that an application should adopt the same look and feel as
* the system it's running on. This is what a user expects from
* an application. It's great that Java is cross platform and all,
* but the end-user doesn't care if a program is written in Java
* or not.
* So, I force the application to use the system look and feel. If
* the look and feel can't be found, it'll use metal anyway as a last
* resort.
*/
System.setProperty("apple.laf.useScreenMenuBar", "true");
AppWindow window = new AppWindow();
}
}