Skip to content

Commit 0b14583

Browse files
committed
Changed UI to OS "Look and Feel"
1 parent 43eb7d6 commit 0b14583

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jar/javagame.jar

2.99 KB
Binary file not shown.

src/com/redomar/game/Game.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import javax.swing.JFrame;
1313
import javax.swing.JOptionPane;
14+
import javax.swing.UIManager;
1415

1516
import org.apache.commons.lang3.text.WordUtils;
1617

@@ -265,6 +266,7 @@ public static void main(String[] args) {
265266
Thread.sleep(250);
266267
splash.setProgress(92, "Aquring data: Multiplayer");
267268
Thread.sleep(125);
269+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
268270
Jdata_Host = JOptionPane.showConfirmDialog(getGame(), "Do you want to be the HOST?");
269271
if (Jdata_Host == 1){
270272
Jdata_IP = JOptionPane.showInputDialog(getGame(), "Enter the name \nleave blank for local");

0 commit comments

Comments
 (0)