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

View differences:

CSSelectionDialogPanel.java
14 14
 * @author "Luis W. Sevilla" <sevilla_lui@gva.es>
15 15
 */
16 16
public class CSSelectionDialogPanel extends DefaultDialogPanel {
17
	private CSSelectionPanel projPanel = null;
18
	
19 17
	public CSSelectionDialogPanel() {
20 18
		super();
21 19
		initialize();
......
26 24
	 * 
27 25
	 * @return void
28 26
	 */
29
	protected void initialize() {
30
		super.initialize();
27
	private void initialize() {
31 28
        this.setBounds(0,0,321,230);
32 29
			
33 30
	}
34 31
	public CSSelectionPanel getProjPanel() {
35
		if (projPanel == null) {
36
			projPanel = new CSSelectionPanel("Sistema de referencia");
37
			projPanel.setBounds(14, 12, 280, 163);
38
			
39
			projPanel.setProjection(ProjectionPool.get("EPSG:32619"));
40
		}
41
		return projPanel;
32
		return (CSSelectionPanel) getContentPanel();
42 33
	}
43 34
	
44 35
	protected JPanel getContentPanel() {
45
		return getProjPanel();
36
		if (contentPane == null) {
37
			contentPane = new CSSelectionPanel("Sistema de referencia");
38
			contentPane.setBounds(14, 12, 280, 163);
39
			
40
			((CSSelectionPanel)contentPane).setProjection(ProjectionPool.get("EPSG:32619"));
41
		}
42
		return contentPane;
46 43
	}
47 44
}
48 45

  

Also available in: Unified diff