Ignore:
Timestamp:
2009-10-30T17:00:52+13:00 (14 years ago)
Author:
ak19
Message:

Opening and then closing the GSI's Settings dialog in GS3, kept resizing the Main GSI dialog. Also, the Settings dialog was too big.

File:
1 edited

Legend:

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

    r20604 r20866  
    2626    protected Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    2727
    28     static final private Dimension SIZE = new Dimension(300, 450);
    2928    static final Color bg_color = Color.white;
    3029
     
    6766    }
    6867
    69     setSize(SIZE);
    7068    setTitle(server.dictionary.get("ServerSettings.Title"));
    71 
    72     setLocation((screen.width - SIZE.width) / 2,
    73             (screen.height - SIZE.height) / 2);
    7469    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    7570
     
    175170    getContentPane().add(down_panel, BorderLayout.SOUTH);
    176171    getContentPane().setBackground(bg_color);
     172
     173    pack();
     174    setLocation((screen.width - getWidth()) / 2,
     175            (screen.height - getHeight()) / 2);
    177176    setVisible(true);
    178177    }
Note: See TracChangeset for help on using the changeset viewer.