/** * Create a new SwingDialogFrame. * * @param dialog The IDialog to which this frame belongs. * @param titleKey The dialog title specified as a resource key. */ public SwingDialogFrame(IDialog dialog, String titleKey) { super( ((SwingDesktopManager) Client.instance().getClientGUI().getDesktopManager()).getJFrame(), Engine.instance().getResourceService().getStringWithoutException(titleKey), false); init(dialog); }
/** * Create a new SwingDialogFrame. * * @param dialog The IDialog to which this frame belongs. * @param titleKey The dialog title specified as a resource key. */ public SwingDialogFrame(IDialog dialog, String titleKey, IDialogFrame owner) { super( (JDialog) owner, Engine.instance().getResourceService().getStringWithoutException(titleKey), true); init(dialog); }
/** Execute the command. */ public void perform() { ThreadService threadService = Engine.instance().getThreadService(); // for (Iterator i = threadService.getThreadController ().threadSlotIterator (); i.hasNext // ();) // { // ThreadSlot slot = (ThreadSlot) i.next (); // System.out.println (slot.getName ()); // } }
/** Reload the labels of all menu items in this menu bar. */ public void reloadText() { super.setText(Engine.instance().getResourceService().getStringWithoutException(textKey)); }
/** * Set the menu item text. * * @param textKey The text specified by a resource key. */ @Override public void setText(String textKey) { this.textKey = textKey; super.setText(Engine.instance().getResourceService().getStringWithoutException(textKey)); }