Skip to content

Commit

Permalink
disable action on return button in text field
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 18, 2014
1 parent d86d022 commit 467fb05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/de/mpg/molgen/buczek/portifix/Gui.form
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
<Component class="javax.swing.JButton" name="button_ok">
<Properties>
<Property name="text" type="java.lang.String" value="OK"/>
<Property name="actionCommand" type="java.lang.String" value="OK"/>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
</Component>
Expand Down
9 changes: 0 additions & 9 deletions src/de/mpg/molgen/buczek/portifix/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,6 @@ a toString() which produces a format we like (eg "20.02.1962").
*/
jTable1.setDefaultRenderer(java.util.Date.class, new DefaultTableCellRenderer());

textField_datum.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
saveThis();
stopEdit();
}
});

textField_datum.addFocusListener(new FocusListener() {
@Override
Expand Down Expand Up @@ -307,8 +300,6 @@ public void actionPerformed(ActionEvent e) {
}
});

getRootPane().setDefaultButton(button_ok);

// Action copy=jTable1.getActionMap().get("copy");
popupMenu.add(new AbstractAction("copy") {

Expand Down

0 comments on commit 467fb05

Please sign in to comment.