mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 11:29:46 +02:00
StatusPanelAdder this. entfernt
This commit is contained in:
@@ -33,8 +33,8 @@ public class StatusPanelAdder{
|
|||||||
return timer.getTime();
|
return timer.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setPanel(JPanel panel){
|
public static void setPanel(JPanel newPanel){
|
||||||
this.panel=panel;
|
panel=newPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void createPanel(){
|
public static void createPanel(){
|
||||||
@@ -74,83 +74,12 @@ public class StatusPanelAdder{
|
|||||||
|
|
||||||
//Insets(int top, int left, int bottom, int right);
|
//Insets(int top, int left, int bottom, int right);
|
||||||
|
|
||||||
|
panel.add(timeLabel, );
|
||||||
panel.add(labelTime, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
1, 1, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.NORTH, // Ausrichtung
|
|
||||||
GridBagConstraints.BOTH,
|
|
||||||
new Insets(0,20,30,20), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
|
|
||||||
panel.add(timeLabel, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
2, 1, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.SOUTH, // Ausrichtung
|
|
||||||
GridBagConstraints.BOTH,
|
|
||||||
new Insets(38,20,0,20), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
panel.add(labelTemp, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
3, 1, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.NORTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets(0,20,30,20), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
|
|
||||||
panel.add(tempBar, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
3, 2, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.SOUTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets(38,20,0,20), // Abstand zu den anderen Objekten
|
|
||||||
100,20));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
panel.add(labelScore, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
1, 2, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.NORTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets (0,0,0,0), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
panel.add(scoreLabel, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
2, 2, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.SOUTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets (0,0,0,0), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
|
|
||||||
|
|
||||||
panel.add(labelPowerUp, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
4, 1, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.NORTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets (0,0,0,0), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
|
|
||||||
|
|
||||||
panel.add(powerUpLabel, new GridBagConstraints( // formPanel ist das Panel, indas eingefügt wird
|
|
||||||
4, 2, // Spaltennr., Zeilennr.
|
|
||||||
4, 2, // Spaltenbreite (gridwidth), Zeilenbreite (gridheigth)
|
|
||||||
0.0, 0.0,
|
|
||||||
GridBagConstraints.SOUTH, // Ausrichtung
|
|
||||||
GridBagConstraints.NONE,
|
|
||||||
new Insets (0,0,0,0), // Abstand zu den anderen Objekten
|
|
||||||
0,0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user