Zeilenlänge anpassen nach Coding-Guidelines
This commit is contained in:
parent
8f5a4e6a74
commit
f2f88c404d
@ -59,7 +59,8 @@ public class HappyBirdMain extends Application {
|
|||||||
private final Label checkAcronymLabel = new Label("");
|
private final Label checkAcronymLabel = new Label("");
|
||||||
|
|
||||||
/*Labels in Arrays speichern*/
|
/*Labels in Arrays speichern*/
|
||||||
private final Label[] labels = {nameLabel, acronymLabel, soundLabel, currentScoreLabel, highscoreLabel, highscoreMenuLabel, checkAcronymLabel, checkNameLabel};
|
private final Label[] labels = {nameLabel, acronymLabel, soundLabel, currentScoreLabel,
|
||||||
|
highscoreLabel, highscoreMenuLabel, checkAcronymLabel, checkNameLabel};
|
||||||
private final Label[] headlineLabels = {headline};
|
private final Label[] headlineLabels = {headline};
|
||||||
|
|
||||||
/*Buttons erstellen und zuweisen*/
|
/*Buttons erstellen und zuweisen*/
|
||||||
@ -81,10 +82,13 @@ public class HappyBirdMain extends Application {
|
|||||||
private final Button backEndscreenButton = new Button("ZURÜCK");
|
private final Button backEndscreenButton = new Button("ZURÜCK");
|
||||||
|
|
||||||
/*Buttons in Arrays speichern*/
|
/*Buttons in Arrays speichern*/
|
||||||
private final Button[] buttons = {startButton, highscoresButton, settingsButton, startGameButton, menuButton, pauseButton, continueButton, settingsButtonPause, menuButtonPause, backButtonPause, backMenuButton, restartGameButton, personalHighscoresButton, backEndscreenButton};
|
private final Button[] buttons = {startButton, highscoresButton, settingsButton, startGameButton,
|
||||||
|
menuButton, pauseButton, continueButton, settingsButtonPause, menuButtonPause,
|
||||||
|
backButtonPause, backMenuButton, restartGameButton, personalHighscoresButton, backEndscreenButton};
|
||||||
private final Button[] pauseButtons = {continueButton, settingsButtonPause, menuButtonPause, backButtonPause};
|
private final Button[] pauseButtons = {continueButton, settingsButtonPause, menuButtonPause, backButtonPause};
|
||||||
private final Button[] backgroundButtons = {background1, background2};
|
private final Button[] backgroundButtons = {background1, background2};
|
||||||
private final Button[] endscreenButtons = {backMenuButton, restartGameButton, personalHighscoresButton, backEndscreenButton};
|
private final Button[] endscreenButtons = {backMenuButton, restartGameButton,
|
||||||
|
personalHighscoresButton, backEndscreenButton};
|
||||||
|
|
||||||
/*Textfelder erstellen und zuweisen*/
|
/*Textfelder erstellen und zuweisen*/
|
||||||
private final TextField name = new TextField();
|
private final TextField name = new TextField();
|
||||||
@ -98,7 +102,8 @@ public class HappyBirdMain extends Application {
|
|||||||
private final Slider soundSliderPause = new Slider();
|
private final Slider soundSliderPause = new Slider();
|
||||||
|
|
||||||
/*Bilder*/
|
/*Bilder*/
|
||||||
private final Image bird = new Image("file:src/main/resources/com/example/happy_bird/pics/bird.png", 45, 30, false, false);
|
private final Image bird = new Image("file:src/main/resources/com/example/happy_bird/pics/bird.png",
|
||||||
|
45, 30, false, false);
|
||||||
|
|
||||||
private final Image pipeTop = new Image("file:src/main/resources/com/example/happy_bird/pics/PipeTop.png");
|
private final Image pipeTop = new Image("file:src/main/resources/com/example/happy_bird/pics/PipeTop.png");
|
||||||
private final Image pipeBottom = new Image("file:src/main/resources/com/example/happy_bird/pics/PipeBottom.png");
|
private final Image pipeBottom = new Image("file:src/main/resources/com/example/happy_bird/pics/PipeBottom.png");
|
||||||
@ -879,7 +884,8 @@ public class HappyBirdMain extends Application {
|
|||||||
try (ResultSet rs = datenbank.st.executeQuery(dataquery)) {
|
try (ResultSet rs = datenbank.st.executeQuery(dataquery)) {
|
||||||
while (rs.next())
|
while (rs.next())
|
||||||
{
|
{
|
||||||
System.out.println(rs.getString(1) + " " + rs.getString(2) + " " + rs.getString(3) + " " + rs.getString(4));
|
System.out.println(rs.getString(1) + " " + rs.getString(2)
|
||||||
|
+ " " + rs.getString(3) + " " + rs.getString(4));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
Reference in New Issue
Block a user