Revision 60 org.gvsig.jcrs/trunk/extJCRS/src/org/gvsig/crs/gui/panels/ProjChooserPanel.java

View differences:

ProjChooserPanel.java
45 45
import java.awt.event.ActionListener;
46 46

  
47 47
import javax.swing.JLabel;
48
import javax.swing.JPanel;
48 49

  
49 50
import org.cresques.cts.IProjection;
50 51
import org.gvsig.andami.PluginServices;
......
96 97
	 * @return void
97 98
	 */
98 99
	private void initialize() {
99
		this.setLayout(new GridLayout(3,1));
100
        this.setLayout(new FlowLayout(FlowLayout.LEFT, 15, 0));
101
        setPreferredSize(new java.awt.Dimension(330,35));
102
        this.setSize(new java.awt.Dimension(330,23));
103
        this.add(getJLblProjName(), null);
104
        this.add(getJLblProj(), null);
105
        this.add(getJBtnChangeProj(), null);
100
        
101
        GridLayout gl = new GridLayout(1,2);
102
        
103
        this.setLayout(gl); // new FlowLayout(FlowLayout.LEFT, 15, 0));
104
        this.add(getJLblProjName());
105
        
106
        JPanel secondHalf = new JPanel(gl);
107
        secondHalf.add(getJLblProj());
108
        secondHalf.add(getJBtnChangeProj());
109
        this.add(secondHalf);
110
        
106 111
        initBtnChangeProj();
107
        refresh();
112

  
108 113
	}
109 114

  
110 115
	private void initBtnChangeProj() {
......
201 206
		if (jBtnChangeProj == null) {
202 207
			jBtnChangeProj = new JButton();			
203 208
			jBtnChangeProj.setText("..."); //$NON-NLS-1$
204
			jBtnChangeProj.setPreferredSize(new Dimension(50, 23));
209
			// jBtnChangeProj.setPreferredSize(new Dimension(50, 23));
205 210
		}
206 211
		return jBtnChangeProj;
207 212
	}

Also available in: Unified diff