Revision 3037 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Panels/TableControlerPanel.java
TableControlerPanel.java | ||
---|---|---|
24 | 24 |
private JButton bPrev = null; |
25 | 25 |
private JComboBox cPoint = null; |
26 | 26 |
private JButton bNext = null; |
27 |
private JButton bNew = null; |
|
28 | 27 |
private JButton bFirst = null; |
29 | 28 |
private JButton bLast = null; |
30 | 29 |
private JPanel pTableControl = null; |
31 | 30 |
private JLabel lPoints = null; |
32 | 31 |
private JLabel lNumberOfPoints = null; |
32 |
private JButton bNew = null; |
|
33 | 33 |
|
34 | 34 |
/** |
35 | 35 |
* This is the default constructor |
... | ... | |
56 | 56 |
lNumberOfPoints.setPreferredSize(new java.awt.Dimension(40,15)); |
57 | 57 |
lPoints = new JLabel(); |
58 | 58 |
lPoints.setText(PluginServices.getText(this, "puntos")); |
59 |
this.add(lPoints, null); |
|
59 | 60 |
|
60 | 61 |
this.add(getBFirst(), null); |
61 | 62 |
this.add(getBPrev(), null); |
62 |
this.add(lPoints, null); |
|
63 | 63 |
this.add(getCPoint(), null); |
64 | 64 |
this.add(getBNext(), null); |
65 | 65 |
this.add(getBLast(), null); |
66 |
this.add(getBNew(), null); |
|
66 | 67 |
this.add(lNumberOfPoints, null); |
67 | 68 |
this.add(lNumberOfPoints, null); |
68 | 69 |
} |
... | ... | |
76 | 77 |
public JButton getBFirst() { |
77 | 78 |
if (bFirst == null) { |
78 | 79 |
bFirst = new JButton(); |
79 |
bFirst.setPreferredSize(new java.awt.Dimension(25,25));
|
|
80 |
bFirst.setPreferredSize(new java.awt.Dimension(22,22));
|
|
80 | 81 |
bFirst.setEnabled(false); |
81 | 82 |
bFirst.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/first.png"))); |
83 |
bFirst.setToolTipText(PluginServices.getText(this, "primero")); |
|
82 | 84 |
} |
83 | 85 |
return bFirst; |
84 | 86 |
} |
... | ... | |
91 | 93 |
public JButton getBLast() { |
92 | 94 |
if (bLast == null) { |
93 | 95 |
bLast = new JButton(); |
94 |
bLast.setPreferredSize(new java.awt.Dimension(25,25));
|
|
96 |
bLast.setPreferredSize(new java.awt.Dimension(22,22));
|
|
95 | 97 |
bLast.setEnabled(false); |
96 | 98 |
bLast.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/last.png"))); |
99 |
bLast.setToolTipText(PluginServices.getText(this, "ultimo")); |
|
97 | 100 |
} |
98 | 101 |
return bLast; |
99 | 102 |
} |
... | ... | |
108 | 111 |
bPrev = new JButton(); |
109 | 112 |
bPrev.setText(""); |
110 | 113 |
bPrev.setEnabled(false); |
111 |
bPrev.setPreferredSize(new java.awt.Dimension(25,25));
|
|
114 |
bPrev.setPreferredSize(new java.awt.Dimension(22,22));
|
|
112 | 115 |
bPrev.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/prev.png"))); |
113 | 116 |
bPrev.setActionCommand(""); |
117 |
bPrev.setToolTipText(PluginServices.getText(this, "anterior")); |
|
114 | 118 |
} |
115 | 119 |
return bPrev; |
116 | 120 |
} |
... | ... | |
125 | 129 |
bNext = new JButton(); |
126 | 130 |
bNext.setText(""); |
127 | 131 |
bNext.setEnabled(false); |
128 |
bNext.setPreferredSize(new java.awt.Dimension(25,25));
|
|
132 |
bNext.setPreferredSize(new java.awt.Dimension(22,22));
|
|
129 | 133 |
bNext.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/next.png"))); |
130 | 134 |
bNext.setActionCommand(""); |
135 |
bNext.setToolTipText(PluginServices.getText(this, "siguiente")); |
|
131 | 136 |
} |
132 | 137 |
return bNext; |
133 | 138 |
} |
... | ... | |
140 | 145 |
public JComboBox getCPoint() { |
141 | 146 |
if (cPoint == null) { |
142 | 147 |
cPoint = new JComboBox(); |
143 |
cPoint.setPreferredSize(new java.awt.Dimension(50,24));
|
|
148 |
cPoint.setPreferredSize(new java.awt.Dimension(50,22));
|
|
144 | 149 |
|
145 | 150 |
} |
146 | 151 |
return cPoint; |
... | ... | |
160 | 165 |
lNumberOfPoints = numberOfPoints; |
161 | 166 |
} |
162 | 167 |
|
163 |
} |
|
168 |
/** |
|
169 |
* This method initializes jButton |
|
170 |
* |
|
171 |
* @return javax.swing.JButton |
|
172 |
*/ |
|
173 |
public JButton getBNew() { |
|
174 |
if (bNew == null) { |
|
175 |
bNew = new JButton(); |
|
176 |
bNew.setPreferredSize(new java.awt.Dimension(22,22)); |
|
177 |
bNew.setIcon(new ImageIcon(getClass().getResource("/com/iver/cit/gvsig/gui/Panels/images/newpoint.png"))); |
|
178 |
bNew.setToolTipText(PluginServices.getText(this, "nuevo")); |
|
179 |
} |
|
180 |
return bNew; |
|
181 |
} |
|
182 |
} |
Also available in: Unified diff