login hintergrund
parent
963c537de6
commit
75f9b0cab3
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
|
@ -1,3 +1,4 @@
|
|||
/MapMenu$1.class
|
||||
/MapMenu.class
|
||||
/Portal.class
|
||||
/Hintergrund.class
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
// Diese Klasse stellt die einzelnen Bicks (Wände) auf der Map dar.
|
||||
|
||||
public class Hintergrund extends Picture {
|
||||
|
||||
|
||||
|
||||
private static final long serialVersionUID = -8813034369041822237L;
|
||||
public int xPos;
|
||||
public int yPos;
|
||||
|
||||
public Hintergrund() {
|
||||
|
||||
super("hintergrund");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
import java.io.File;
|
||||
import java.sql.SQLException;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JFrame;
|
||||
|
@ -12,15 +12,12 @@ import javax.swing.JTextField;
|
|||
|
||||
public class MapMenu extends JFrame {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2863784680171430142L;
|
||||
|
||||
public boolean rdy;
|
||||
|
||||
JButton button;
|
||||
|
||||
Hintergrund hintergrund;
|
||||
JPanel panel;
|
||||
|
||||
JComboBox<?> bob;
|
||||
|
@ -35,8 +32,6 @@ public class MapMenu extends JFrame {
|
|||
|
||||
public MapMenu() {
|
||||
|
||||
|
||||
|
||||
super("Map Menu");
|
||||
|
||||
System.setProperty("sun.java2d.opengl", "true");
|
||||
|
@ -59,8 +54,13 @@ public class MapMenu extends JFrame {
|
|||
this.setContentPane(panel);
|
||||
this.getContentPane().setLayout(null);
|
||||
|
||||
hintergrund = new Hintergrund();
|
||||
panel.add(hintergrund);
|
||||
hintergrund.setBounds(0, 0, 300, 200);
|
||||
|
||||
button = new JButton("Launch");
|
||||
panel.add(button);
|
||||
|
||||
button.setBounds(70, 50, 120, 30);
|
||||
button.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt) {
|
||||
|
@ -84,7 +84,7 @@ public class MapMenu extends JFrame {
|
|||
}
|
||||
|
||||
// Was passieren soll, wenn der Button gedrückt wird
|
||||
public void button_ActionPerformed(ActionEvent evt) throws SQLException {
|
||||
public void button_ActionPerformed(ActionEvent evt) {
|
||||
selectedMap = String.valueOf(bob.getSelectedItem());
|
||||
|
||||
rdy = true;
|
||||
|
|
Loading…
Reference in New Issue