svn-gvsig-desktop / trunk / extensions / extRasterTools / src / com / iver / cit / gvsig / rasterTools / saveRaster / pruebas2 / InputSizeDataPanel.java @ 4266
History | View | Annotate | Download (2.43 KB)
1 |
package com.iver.cit.gvsig.rasterTools.saveRaster.pruebas2; |
---|---|
2 |
|
3 |
import javax.swing.JPanel; |
4 |
import javax.swing.JLabel; |
5 |
import javax.swing.JTextField; |
6 |
import javax.swing.JComboBox; |
7 |
import java.awt.FlowLayout; |
8 |
|
9 |
public class InputSizeDataPanel extends JPanel { |
10 |
|
11 |
private JPanel pBorder = null; |
12 |
private JLabel lWidth = null; |
13 |
private JTextField tWidth = null; |
14 |
private JLabel lHeight = null; |
15 |
private JTextField tHeight = null; |
16 |
private JComboBox cbMeasureType = null; |
17 |
|
18 |
/**
|
19 |
* This is the default constructor
|
20 |
*/
|
21 |
public InputSizeDataPanel() {
|
22 |
super();
|
23 |
initialize(); |
24 |
} |
25 |
|
26 |
/**
|
27 |
* This method initializes this
|
28 |
*
|
29 |
* @return void
|
30 |
*/
|
31 |
private void initialize() { |
32 |
FlowLayout flowLayout = new FlowLayout(); |
33 |
flowLayout.setHgap(0);
|
34 |
flowLayout.setAlignment(java.awt.FlowLayout.LEFT); |
35 |
flowLayout.setVgap(0);
|
36 |
this.setLayout(flowLayout);
|
37 |
this.setSize(337, 28); |
38 |
this.setPreferredSize(new java.awt.Dimension(337,28)); |
39 |
this.add(getPBorder(), null); |
40 |
} |
41 |
|
42 |
/**
|
43 |
* This method initializes jPanel
|
44 |
*
|
45 |
* @return javax.swing.JPanel
|
46 |
*/
|
47 |
private JPanel getPBorder() { |
48 |
if (pBorder == null) { |
49 |
FlowLayout flowLayout1 = new FlowLayout(); |
50 |
flowLayout1.setAlignment(java.awt.FlowLayout.LEFT); |
51 |
flowLayout1.setVgap(2);
|
52 |
lHeight = new JLabel(); |
53 |
lHeight.setText("Alto:");
|
54 |
lWidth = new JLabel(); |
55 |
lWidth.setText("Ancho:");
|
56 |
pBorder = new JPanel(); |
57 |
pBorder.setLayout(flowLayout1); |
58 |
pBorder.setPreferredSize(new java.awt.Dimension(337,28)); |
59 |
pBorder.add(lWidth, null);
|
60 |
pBorder.add(getTWidth(), null);
|
61 |
pBorder.add(lHeight, null);
|
62 |
pBorder.add(getTHeight(), null);
|
63 |
pBorder.add(getCbMeasureType(), null);
|
64 |
} |
65 |
return pBorder;
|
66 |
} |
67 |
|
68 |
/**
|
69 |
* This method initializes jTextField
|
70 |
*
|
71 |
* @return javax.swing.JTextField
|
72 |
*/
|
73 |
private JTextField getTWidth() { |
74 |
if (tWidth == null) { |
75 |
tWidth = new JTextField(); |
76 |
tWidth.setPreferredSize(new java.awt.Dimension(65,19)); |
77 |
} |
78 |
return tWidth;
|
79 |
} |
80 |
|
81 |
/**
|
82 |
* This method initializes jTextField1
|
83 |
*
|
84 |
* @return javax.swing.JTextField
|
85 |
*/
|
86 |
private JTextField getTHeight() { |
87 |
if (tHeight == null) { |
88 |
tHeight = new JTextField(); |
89 |
tHeight.setPreferredSize(new java.awt.Dimension(65,19)); |
90 |
} |
91 |
return tHeight;
|
92 |
} |
93 |
|
94 |
/**
|
95 |
* This method initializes jComboBox
|
96 |
*
|
97 |
* @return javax.swing.JComboBox
|
98 |
*/
|
99 |
private JComboBox getCbMeasureType() { |
100 |
if (cbMeasureType == null) { |
101 |
cbMeasureType = new JComboBox(); |
102 |
cbMeasureType.setPreferredSize(new java.awt.Dimension(70,24)); |
103 |
} |
104 |
return cbMeasureType;
|
105 |
} |
106 |
|
107 |
} |