|
@ -16,6 +16,15 @@ import javax.swing.border.EmptyBorder; |
|
|
|
|
|
|
|
|
public class GamelauncherMain extends JFrame {//class |
|
|
public class GamelauncherMain extends JFrame {//class |
|
|
|
|
|
|
|
|
|
|
|
int yAbschnitt = 500; |
|
|
|
|
|
|
|
|
|
|
|
public int getyAbschnitt() { |
|
|
|
|
|
return yAbschnitt; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setyAbschnitt(int yAbschnitt) { |
|
|
|
|
|
this.yAbschnitt = yAbschnitt; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public int breite = 1270; |
|
|
public int breite = 1270; |
|
|
|
|
|
|
|
@ -84,10 +93,10 @@ public class GamelauncherMain extends JFrame {//class |
|
|
btnTikTakToe.setFont(new Font("Consolas", Font.PLAIN, 12)); |
|
|
btnTikTakToe.setFont(new Font("Consolas", Font.PLAIN, 12)); |
|
|
btnTextadventure.setFont(new Font("Consolas", Font.PLAIN, 12)); |
|
|
btnTextadventure.setFont(new Font("Consolas", Font.PLAIN, 12)); |
|
|
|
|
|
|
|
|
btnSnake.setBounds(10, 500, 300, 25); |
|
|
|
|
|
btnTikTakToe.setBounds(630, 500, 300, 25); |
|
|
|
|
|
btnMouse.setBounds(320, 500, 300, 25); |
|
|
|
|
|
btnTextadventure.setBounds(940, 500, 300, 25); |
|
|
|
|
|
|
|
|
btnSnake.setBounds(10, yAbschnitt, 300, 25); |
|
|
|
|
|
btnTikTakToe.setBounds(630, yAbschnitt, 300, 25); |
|
|
|
|
|
btnMouse.setBounds(320, yAbschnitt, 300, 25); |
|
|
|
|
|
btnTextadventure.setBounds(940, yAbschnitt, 300, 25); |
|
|
|
|
|
|
|
|
contentPane.add(btnSnake); |
|
|
contentPane.add(btnSnake); |
|
|
contentPane.add(btnMouse); |
|
|
contentPane.add(btnMouse); |
|
@ -122,8 +131,8 @@ public class GamelauncherMain extends JFrame {//class |
|
|
public void actionPerformed(ActionEvent e) { |
|
|
public void actionPerformed(ActionEvent e) { |
|
|
// TODO Auto-generated method stub |
|
|
// TODO Auto-generated method stub |
|
|
|
|
|
|
|
|
//TikTakToeGame frameTikTakToe = new TikTakToeGame(); |
|
|
|
|
|
//frameTikTakToe.setVisible(true); |
|
|
|
|
|
|
|
|
TikTakToeGame frameTikTakToe = new TikTakToeGame(); |
|
|
|
|
|
frameTikTakToe.setVisible(true); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -168,4 +177,40 @@ public class GamelauncherMain extends JFrame {//class |
|
|
contentPane.add(AdTextadventure); |
|
|
contentPane.add(AdTextadventure); |
|
|
}//end standardkonstruktor |
|
|
}//end standardkonstruktor |
|
|
|
|
|
|
|
|
|
|
|
public int getBreite() { |
|
|
|
|
|
return breite; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setBreite(int breite) { |
|
|
|
|
|
this.breite = breite; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getHoehe() { |
|
|
|
|
|
return hoehe; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setHoehe(int hoehe) { |
|
|
|
|
|
this.hoehe = hoehe; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getBreiteLabels() { |
|
|
|
|
|
return breiteLabels; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setBreiteLabels(int breiteLabels) { |
|
|
|
|
|
this.breiteLabels = breiteLabels; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getHoeheLabels() { |
|
|
|
|
|
return hoeheLabels; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setHoeheLabels(int hoeheLabels) { |
|
|
|
|
|
this.hoeheLabels = hoeheLabels; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JPanel getContentPane() { |
|
|
|
|
|
return contentPane; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}//end class |
|
|
}//end class |