We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8acdccd commit d608c7dCopy full SHA for d608c7d
data/part-13/5-multiple-views.md
@@ -346,14 +346,14 @@ public class ExampleApplication extends Application {
346
347
// 2.2. Add subviews to button. Pressing the buttons will change the view
348
first.setOnAction((event) -> layout.setCenter(firstLayout));
349
- second.setOnAction((event) -> asettelu.setCenter(secondLayout));
+ second.setOnAction((event) -> layout.setCenter(secondLayout));
350
351
// 2.3. Set initial view
352
layout.setCenter(firstLayout);
353
354
355
// 3. Create main scene with layout
356
- Scene scene = new Scene(asettelu);
+ Scene scene = new Scene(layout);
357
358
359
// 4. Show the main scene
0 commit comments