Changeset 15483


Ignore:
Timestamp:
2008-05-15T13:29:43+12:00 (16 years ago)
Author:
ak19
Message:

Dimensions of demo-client window are smaller than full-screen size on Windows, to ensure that the window is not hidden under the Windows Start toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3client/GS3JavaClient.java

    r15440 r15483  
    10601060        GS3JavaClient client = new GS3JavaClient();
    10611061        client.pack();
    1062         // make the main window fullscreen
    1063         client.setSize(Toolkit.getDefaultToolkit().getScreenSize());
     1062        // make the main window fullscreen (except for on Windows,
     1063        // where it disappears under the bar at the bottom)
     1064        java.awt.Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
     1065        if(System.getProperty("os.name").equalsIgnoreCase("Windows")) {
     1066            d.setSize(d.getWidth()-100, d.getHeight()-100);
     1067        }
     1068        client.setSize(d);     
    10641069        client.setVisible(true);
    10651070        client.setDefaultCloseOperation(EXIT_ON_CLOSE);
Note: See TracChangeset for help on using the changeset viewer.