Revision 1568 branches/v02_desarrollo/libraries/libCq CMS for java.old/src/org/cresques/ui/DefaultDialogPanel.java

View differences:

DefaultDialogPanel.java
16 16
/**
17 17
 * @author Luis W. Sevilla (sevilla_lui@gva.es)
18 18
 */
19
public class DefaultDialogPanel extends JPanel
20
implements AncestorListener {
19
public class DefaultDialogPanel extends JPanel {
21 20
	protected JPanel contentPane = null;
22 21
	private JPanel tabPane = null;
23 22
	private JPanel buttonPane = null;
......
38 37
	 * 
39 38
	 * @return void
40 39
	 */
41
	protected void initialize() {
40
	private void initialize() {
42 41
		//setBounds(0,0,321,230);
43 42
		//javax.swing.BoxLayout(jContentPane, javax.swing.BoxLayout.Y_AXIS);
44 43
		//jContentPane.setLayout(new java.awt.GridLayout(2,1));
......
66 65
			//tabPane.setBounds(6, 7, 309, 189);
67 66
			tabPane.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.SoftBevelBorder.RAISED));
68 67
			tabPane.add(getContentPanel(), null);
69
			getContentPanel().addAncestorListener(this);
70 68
		}
71 69
		return tabPane;
72 70
	}
......
128 126
		}
129 127
		return applyButton;
130 128
	}
131
	/* (non-Javadoc)
132
	 * @see javax.swing.event.AncestorListener#ancestorAdded(javax.swing.event.AncestorEvent)
133
	 */
134
	public void ancestorAdded(AncestorEvent event) {
135
    	System.out.println("ancestorAdded");
136
    	this.dispatchEvent(event);
137
	}
138

  
139
	/* (non-Javadoc)
140
	 * @see javax.swing.event.AncestorListener#ancestorMoved(javax.swing.event.AncestorEvent)
141
	 */
142
	public void ancestorMoved(AncestorEvent event) {
143
    	System.out.println("ancestorMoved");
144
    	this.dispatchEvent(event);
145
	}
146

  
147
	/* (non-Javadoc)
148
	 * @see javax.swing.event.AncestorListener#ancestorRemoved(javax.swing.event.AncestorEvent)
149
	 */
150
	public void ancestorRemoved(AncestorEvent event) {
151
    	System.out.println("ancestorRemoved");
152
    	this.dispatchEvent(event);
153
	}
154 129
}

Also available in: Unified diff