コード例 #1
0
 /** Creates a new instance. */
 public LoadAction(Application app) {
   super(app);
   ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, "open");
 }
コード例 #2
0
ファイル: SaveAsAction.java プロジェクト: vyloy/lnvc
 /** Creates a new instance. */
 public SaveAsAction(Application app) {
   super(app, true);
   ResourceBundleUtil labels = ResourceBundleUtil.getLAFBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }
コード例 #3
0
 /** Creates a new instance. */
 public DuplicateAction() {
   ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }
コード例 #4
0
 /**
  * Creates a new instance which acts on the specified component.
  *
  * @param target The target of the action. Specify null for the currently focused component.
  */
 public ClearSelectionAction(@Nullable JComponent target) {
   super(target);
   ResourceBundleUtil labels = ResourceBundleUtil.getBundle("org.jhotdraw.app.Labels");
   labels.configureAction(this, ID);
 }