Skip to content

Commit d608c7d

Browse files
authored
Fix code example. asettelu not translated
1 parent 8acdccd commit d608c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,14 @@ public class ExampleApplication extends Application {
346346

347347
// 2.2. Add subviews to button. Pressing the buttons will change the view
348348
first.setOnAction((event) -> layout.setCenter(firstLayout));
349-
second.setOnAction((event) -> asettelu.setCenter(secondLayout));
349+
second.setOnAction((event) -> layout.setCenter(secondLayout));
350350

351351
// 2.3. Set initial view
352352
layout.setCenter(firstLayout);
353353

354354

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

358358

359359
// 4. Show the main scene

0 commit comments

Comments
 (0)