Changeset 18661

Show
Ignore:
Timestamp:
11.03.2009 13:30:05 (10 years ago)
Author:
ak19
Message:

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

Files:
1 modified

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());