Just a quick question. Is there any way I could do to make the following
code defining various actions somewhat cleaner and more compact?

   Action.getNamedActions().put("something", new Action() {
         public void perform(Component source) {
System.out.println("Default");
                 //more stuff
}
});
       //defined many more actions in similar format for options in the menu

Reply via email to