public AboutDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
+
+ //デフォルトボタン
+ this.getRootPane().setDefaultButton(jButton1);
}
/** This method is called from within the constructor to
</Component>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
- <Property name="text" type="java.lang.String" value="ログイン"/>
+ <Property name="mnemonic" type="int" value="76"/>
+ <Property name="text" type="java.lang.String" value="ログイン(L)"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
initComponents();
this.mainAction = mainAction;
this.tweetManager = tweetManager;
+
+ //デフォルトボタン
+ this.getRootPane().setDefaultButton(jButton1);
}
private TweetMainAction mainAction = null;
jLabel4.setText("パスワード");
- jButton1.setText("ログイン");
+ jButton1.setMnemonic('L');
+ jButton1.setText("ログイン(L)");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);