Changeset 18671 for greenstone3


Ignore:
Timestamp:
2009-03-13T13:16:55+13:00 (15 years ago)
Author:
ak19
Message:

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

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.