Child pages
  • Your First Project - Hello World

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the project, open the Sources folder, open the your.app.components package and open Main.java. Main.java is the Java part of a Project Wonder component. If you check the content of the Related tab, you will see that Main.java is related to other files like Main.wo and Main.api, it's a good way to find out if a Java class is part of a component.

In the Main.java editor tab, you will need to put one variable + one setter + one getter. Complete code:

...

So now we have a variable to display the content of a string. The next step is to open the HTML part of the component to actually display the string. In the Related view, double-click on the Main.wo file. This action will open the component in the Component Editor.

Remove the Hello World text from the HTML and replace it with:

...