|
|
|
@ -6,16 +6,12 @@ import com.fr.design.widget.ui.designer.NewFormPane;
|
|
|
|
|
|
|
|
|
|
import javax.swing.KeyStroke; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
|
|
|
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
|
|
|
|
|
|
public class NewFormAction extends UpdateAction { |
|
|
|
|
|
|
|
|
|
public NewFormAction() { |
|
|
|
|
this.setMenuKeySet(NEW_FORM); |
|
|
|
|
this.setName(getMenuKeySet().getMenuKeySetName()); |
|
|
|
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
|
|
|
this.setName(getMenuKeySet().getMenuName()); |
|
|
|
|
this.setSmallIcon("/com/fr/design/images/buttonicon/new_form3"); |
|
|
|
|
this.setAccelerator(getMenuKeySet().getKeyStroke()); |
|
|
|
|
} |
|
|
|
@ -33,7 +29,7 @@ public class NewFormAction extends UpdateAction {
|
|
|
|
|
public static final MenuKeySet NEW_FORM = new MenuKeySet() { |
|
|
|
|
@Override |
|
|
|
|
public char getMnemonic() { |
|
|
|
|
return 'F'; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|