Changeset 24369

Show
Ignore:
Timestamp:
05.08.2011 22:05:03 (8 years ago)
Author:
ak19
Message:

Icon for greenstone server interface.

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

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,