Skip to content

Commit 0e65655

Browse files
Variable type Stage should be named window not windows as it is referenced as window
1 parent dd2fe34 commit 0e65655

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

data/part-13/5-multiple-views.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import javafx.stage.Stage;
4040
public class BackAndForthApplication extends Application {
4141

4242
@Override
43-
public void start(Stage windows) {
43+
public void start(Stage window) {
4444

4545
Button back = new Button("Back ..");
4646
Button forth = new Button(".. forth.");
@@ -340,7 +340,7 @@ public class ExampleApplication extends Application {
340340

341341

342342
// 2. Add subviews and add them to the menu buttons
343-
// 2.1. Create subview layout
343+
// 2.1. Create subview layout
344344
StackPane firstLayout = createView("First view");
345345
StackPane secondLayout = createView("Second view");
346346

@@ -352,7 +352,7 @@ public class ExampleApplication extends Application {
352352
layout.setCenter(firstLayout);
353353

354354

355-
// 3. Create main scene with layout
355+
// 3. Create main scene with layout
356356
Scene scene = new Scene(asettelu);
357357

358358

0 commit comments

Comments
 (0)