Changeset 18671

Show
Ignore:
Timestamp:
13.03.2009 13:16:55 (10 years ago)
Author:
ak19
Message:

Added a WindowListener? to this Settings dialog for the closing event.

Files:
1 modified

Legend:

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

    r18558 r18671  
    110110        }); 
    111111 
    112         JPanel  port_panel = new JPanel();     
     112    addWindowListener(new WindowAdapter() { 
     113        public void windowClosing(WindowEvent we) {  
     114            self.dispose(); 
     115        } 
     116        }); 
     117 
     118        JPanel port_panel = new JPanel();     
    113119        port_panel.setLayout(new FlowLayout(FlowLayout.LEFT)); 
    114120    port_panel.add(port_label); 
     
    117123 
    118124    JPanel comb_panel = createServletPanel(); 
     125    comb_panel.setBackground(bg_color); 
    119126         
    120     JPanel  check_panel = new JPanel();  
     127    JPanel check_panel = new JPanel();  
    121128        check_panel.setLayout(new FlowLayout(FlowLayout.LEFT)); 
    122129        check_panel.add(autoEnter);