private DemoMainWindow(final TApplication parent, final int flags) {
// Construct a demo window. X and Y don't matter because it will be
// centered on screen.
private DemoMainWindow(final TApplication parent, final int flags) {
// Construct a demo window. X and Y don't matter because it will be
// centered on screen.
- super(parent, "Demo Window", 0, 0, 60, 23, flags);
+ super(parent, "Demo Window", 0, 0, 60, 24, flags);
addPasswordField(35, row++, 15, false);
addLabel("Fixed-width password:", 1, row);
addPasswordField(35, row++, 15, true, "hunter2");
addPasswordField(35, row++, 15, false);
addLabel("Fixed-width password:", 1, row);
addPasswordField(35, row++, 15, true, "hunter2");
+ if (!isModal()) {
+ addLabel("Color editor", 1, row);
+ addButton("Co&lors", 35, row,
+ new TAction() {
+ public void DO() {
+ new TEditColorThemeWindow(getApplication());
+ }
+ }
+ );
+ }
+ row += 2;
+
progressBar = addProgressBar(1, row, 22, 0);
row++;
timerLabel = addLabel("Timer", 1, row);
progressBar = addProgressBar(1, row, 22, 0);
row++;
timerLabel = addLabel("Timer", 1, row);