Changeset 23238

Show
Ignore:
Timestamp:
27.10.2010 16:01:40 (9 years ago)
Author:
ak19
Message:

In the New Collection and Open Collection dialogs, the OK buttons now come first/leftmost and are followed by the Change_Dir buttons. Kathy explained that the default button (OK) being leftmost is more sensible.

Location:
main/trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r22831 r23238  
    241241    button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 
    242242    button_pane.setLayout(new GridLayout(1,3)); 
     243    button_pane.add(create_button); 
    243244    button_pane.add(chdir_button); 
    244     button_pane.add(create_button); 
    245245    button_pane.add(cancel_button); 
    246246 
  • main/trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java

    r22831 r23238  
    145145 
    146146    button_pane.setLayout(new GridLayout(1,3)); 
    147         button_pane.add(chdir_button); 
    148147    button_pane.add(open_button); 
     148    button_pane.add(chdir_button); 
    149149    button_pane.add(cancel_button); 
    150150 
     
    153153    content_pane.add(center_pane, BorderLayout.CENTER); 
    154154    content_pane.add(button_pane, BorderLayout.SOUTH); 
    155  
     155    // Final dialog setup & positioning. 
     156    getRootPane().setDefaultButton(open_button); 
    156157    Dimension screen_size = Configuration.screen_size; 
    157158    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);