X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoCheckboxWindow.java;h=2e45117ebbe544f4e191dc3c9afc5544c4fc7678;hb=43ad7b6c509c45c8f261e77ea059c10fed8c9f1c;hp=9ef561c3b1f64f108c4fa28e24d23dc10e37ef89;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/demos/DemoCheckboxWindow.java b/src/jexer/demos/DemoCheckboxWindow.java index 9ef561c..2e45117 100644 --- a/src/jexer/demos/DemoCheckboxWindow.java +++ b/src/jexer/demos/DemoCheckboxWindow.java @@ -3,7 +3,7 @@ * * 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"), @@ -29,6 +29,8 @@ package jexer.demos; import jexer.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TRadioGroup, TRadioButton, and TCheckbox @@ -36,6 +38,10 @@ import jexer.*; */ public class DemoCheckboxWindow extends TWindow { + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Constructor. * @@ -78,6 +84,12 @@ public class DemoCheckboxWindow extends TWindow { } } ); + + statusBar = newStatusBar("Radiobuttons and checkboxes"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } }