Adds both a fixed-width, and variable-width, text field.
@@ -92,14 +92,21 @@ public class SampleComponents {
.setText("Checkbox B")
.build();
- // Text Field
+ // Fixed Width Text Field
new TextFieldBuilder().setColumnAndRowIndices(1, 14)
.setPanel(panel)
.setWidth(20)
.build();
+ // Variable Width Text Field
+ new TextFieldBuilder().setColumnAndRowIndices(1, 16)
+ .setPanel(panel)
+ .setWidth(20)
+ .setMaxCharacters(40)
+ .build();
+
// Loading Bar
- final LoadingBar loadingBar = new LoadingBarBuilder().setColumnAndRowIndices(1, 16)
+ final LoadingBar loadingBar = new LoadingBarBuilder().setColumnAndRowIndices(1, 19)
.setPanel(panel)
.setWidth(20)
.build();
