\r
Button naturalButton = new Button("Natural");\r
naturalButton\r
- .setDescription("This button does not have an explicit size - instead, it's size depends on it's content - a.k.a <i>natural size.</i>");\r
+ .setDescription("This button does not have an explicit size - instead, its size depends on it's content - a.k.a <i>natural size.</i>");\r
layout.addComponent(naturalButton);\r
\r
Button expandedButton = new Button("Expanded");\r
expandedButton.setWidth("100%");\r
expandedButton\r
- .setDescription("This button is set to 100% and expanded, and will thus occupy the space left over by the other components.");\r
+ .setDescription("The width of this button is set to 100% and expanded, and will thus occupy the space left over by the other components.");\r
layout.addComponent(expandedButton);\r
layout.setExpandRatio(expandedButton, 1.0f);\r
\r
\r
Button naturalButton = new Button("Natural");\r
naturalButton\r
- .setDescription("This button does not have an explicit size - instead, it's size depends on it's content - a.k.a <i>natural size.</i>");\r
+ .setDescription("This button does not have an explicit size - instead, its size depends on it's content - a.k.a <i>natural size.</i>");\r
layout.addComponent(naturalButton);\r
\r
Button expandedButton1 = new Button("Ratio 1.0");\r
expandedButton1.setWidth("100%");\r
expandedButton1\r
- .setDescription("This button is set to 100% and expanded with a ratio of 1.0, and will in this example occupy 1:2 of the leftover space.");\r
+ .setDescription("The width of this button is set to 100% and expanded with a ratio of 1.0, and will in this example occupy 1:3 of the leftover space.");\r
layout.addComponent(expandedButton1);\r
layout.setExpandRatio(expandedButton1, 1.0f);\r
\r
Button expandedButton2 = new Button("Ratio 2.0");\r
expandedButton2.setWidth("100%");\r
expandedButton2\r
- .setDescription("This button is set to 100% and expanded with a ratio of 2.0, and will in this example occupy 2:1 of the leftover space.");\r
+ .setDescription("The width of this button is set to 100% and expanded with a ratio of 2.0, and will in this example occupy 2:3 of the leftover space.");\r
layout.addComponent(expandedButton2);\r
layout.setExpandRatio(expandedButton2, 2.0f);\r
}\r