Changeset 18661


Ignore:
Timestamp:
03/11/09 13:30:05 (12 years ago)
Author:
ak19
Message:

Focus on Enter Library button so it responds to Enterpress instead of one having to use the mouse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/server/BaseServerControl.java

    r18623 r18661  
    8484    enter_button.addActionListener(new EnterButtonListener());
    8585        enter_button.setText(BaseServer.dictionary.get("ServerControl.EnterLibrary"));
    86     button_panel.add(enter_button);
     86    button_panel.add(enter_button);
    8787    button_panel.setBackground(bg_color);   
    8888    button_panel.setBorder(BorderFactory.createEmptyBorder(5,10,5,10));
     89    getRootPane().setDefaultButton(enter_button); // button gets the focus for enterpress
    8990
    9091    getContentPane().setLayout(new BorderLayout());
Note: See TracChangeset for help on using the changeset viewer.