color chooser widget
[fanfix.git] / src / jexer / demos / DemoApplication.java
index f0bdacd3fab241f82b4922287ada4259048c5a5c..dd25f023f8bbbd7f6b778de5c68b6e986c5d96c1 100644 (file)
@@ -60,6 +60,7 @@ public class DemoApplication extends TApplication {
         item = demoMenu.addItem(2002, "&Normal");
         TSubMenu subMenu = demoMenu.addSubMenu("Sub-&Menu");
         item = demoMenu.addItem(2010, "N&ormal A&&D");
+        item = demoMenu.addItem(2050, "Co&lors...");
 
         item = subMenu.addItem(2000, "&Checkable (sub)");
         item.setCheckable(true);
@@ -105,6 +106,12 @@ public class DemoApplication extends TApplication {
      */
     @Override
     public boolean onMenu(final TMenuEvent menu) {
+
+        if (menu.getId() == 2050) {
+            new TEditColorThemeWindow(this);
+            return true;
+        }
+
         if (menu.getId() == TMenu.MID_OPEN_FILE) {
             try {
                 String filename = fileOpenBox(".");