FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java-blackjack/src/Blackjack.java at master · davidwinter/java-blackjack · GitHub
davidwinter
/
java-blackjack
Public
Notifications
You must be signed in to change notification settings
Fork
48
Star
30
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java-blackjack
/
src
/
Blackjack.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (29 loc) · 1.07 KB
Breadcrumbs
java-blackjack
/
src
/
Blackjack.java
Copy path
File metadata and controls
34 lines (29 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
();
}
}
Back
|
FazBrowse Home
|
New Git URL