*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
package jexer.demos;
import jexer.*;
+import static jexer.TCommand.*;
+import static jexer.TKeypress.*;
/**
* This window demonstates the TMessageBox and TInputBox widgets.
DemoMsgBoxWindow(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, "Message Boxes", 0, 0, 60, 15, flags);
+ super(parent, "Message Boxes", 0, 0, 60, 16, flags);
int row = 1;
}
}
);
+
+ statusBar = newStatusBar("Message boxes");
+ statusBar.addShortcutKeypress(kbF1, cmHelp, "Help");
+ statusBar.addShortcutKeypress(kbF2, cmShell, "Shell");
+ statusBar.addShortcutKeypress(kbF3, cmOpen, "Open");
+ statusBar.addShortcutKeypress(kbF10, cmExit, "Exit");
}
}
-