Changeset 24369


Ignore:
Timestamp:
2011-08-05T22:05:03+12:00 (12 years ago)
Author:
ak19
Message:

Icon for greenstone server interface.

Location:
main/trunk/greenstone3
Files:
2 added
1 edited

Legend:

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

    r20918 r24369  
    3838    setSize(FRAME_SIZE);
    3939    setDefaultCloseOperation(EXIT_ON_CLOSE);
     40
     41    // set the icon for the Greenstone Server Interface
     42    try {
     43        ImageIcon image = new ImageIcon(getClass().getResource("/images/servericon.png"));
     44        if (image != null) {
     45        this.setIconImage(image.getImage());
     46        }   
     47    }
     48    catch (Exception exception) {
     49        System.err.println("Error: Could not load servericon.png");
     50        logger.error("Error: Could not load servericon.png");
     51    }   
     52
    4053    Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
    4154    setLocation((screen_size.width - FRAME_SIZE.width) / 2,
Note: See TracChangeset for help on using the changeset viewer.