1 7 package org.ejtools.adwt.action.window; 8 9 import java.util.ResourceBundle ; 10 11 import javax.swing.JMenuItem ; 12 import javax.swing.JRadioButtonMenuItem ; 13 14 import org.ejtools.adwt.action.Command; 15 import org.ejtools.adwt.action.CommandAction; 16 17 24 public class InternalFrameAction extends CommandAction 25 { 26 27 private static ResourceBundle resources = ResourceBundle.getBundle("org.ejtools.adwt.action.Resources"); 28 29 30 36 public InternalFrameAction(Command command) 37 { 38 super(command, resources, "action.window.frame"); 39 this.setMenu("action.window"); 40 } 41 42 43 48 public JMenuItem getMenuItem() 49 { 50 JMenuItem menuitem = (JMenuItem ) this.getValue(MENU_ITEM); 51 52 if (menuitem == null) 53 { 54 menuitem = new JRadioButtonMenuItem (this); 55 this.putValue(MENU_ITEM, menuitem); 56 } 57 return menuitem; 58 } 59 } 60 61 | Popular Tags |