|
|
@ -0,0 +1,53 @@ |
|
|
|
package de.hs_fulda.gruppenprojekt.JavaGamelauncher; |
|
|
|
|
|
|
|
import java.awt.AWTException; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.CardLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.EventQueue; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
import java.awt.Image; |
|
|
|
import java.awt.Taskbar; |
|
|
|
import java.awt.Toolkit; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.FileNotFoundException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.lang.System.Logger.Level; |
|
|
|
import java.net.MalformedURLException; |
|
|
|
import java.net.URL; |
|
|
|
import java.util.logging.Logger; |
|
|
|
import javax.imageio.ImageIO; |
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
import javax.swing.GroupLayout.Alignment; |
|
|
|
import javax.swing.GroupLayout; |
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import javax.swing.JButton; |
|
|
|
import javax.swing.JFrame; |
|
|
|
import javax.swing.JLabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.LayoutStyle.ComponentPlacement; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
|
|
|
public class SnakeGame { |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
|
public void run() { |
|
|
|
try { |
|
|
|
GamelauncherMain frame = new GamelauncherMain(); |
|
|
|
frame.setVisible(true); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|