Revision 20641
trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/BandSelectorPanel.java | ||
---|---|---|
153 | 153 |
* @return JPanel |
154 | 154 |
*/ |
155 | 155 |
public JPanel getButtonsPanel() { |
156 |
if(buttonsPanel == null) { |
|
156 |
if (buttonsPanel == null) {
|
|
157 | 157 |
buttonsPanel = new JPanel(); |
158 |
buttonsPanel.setLayout(new GridBagLayout()); |
|
159 |
JLabel lbandasVisibles = new JLabel(); |
|
160 |
lbandasVisibles.setText("Bandas"); |
|
161 |
|
|
158 | 162 |
GridBagConstraints gbc = new GridBagConstraints(); |
159 |
buttonsPanel.setLayout(new GridBagLayout()); |
|
160 | 163 |
gbc.insets = new Insets(0, 8, 0, 0); |
161 | 164 |
gbc.fill = GridBagConstraints.BOTH; |
162 | 165 |
gbc.weightx = 1.0; |
163 |
JLabel lbandasVisibles = new JLabel(); |
|
164 |
lbandasVisibles.setText("Bandas"); |
|
165 | 166 |
buttonsPanel.add(lbandasVisibles, gbc); |
167 |
|
|
168 |
gbc = new GridBagConstraints(); |
|
169 |
gbc.insets = new Insets(0, 8, 0, 0); |
|
170 |
gbc.fill = GridBagConstraints.BOTH; |
|
166 | 171 |
gbc.gridx = 1; |
172 |
getNumBandSelectorCombo().setMinimumSize(new Dimension(50, getNumBandSelectorCombo().getMinimumSize().height)); |
|
173 |
getNumBandSelectorCombo().setPreferredSize(new Dimension(50, getNumBandSelectorCombo().getMinimumSize().height)); |
|
167 | 174 |
buttonsPanel.add(getNumBandSelectorCombo(), gbc); |
175 |
|
|
176 |
gbc = new GridBagConstraints(); |
|
177 |
gbc.insets = new Insets(0, 8, 0, 0); |
|
178 |
gbc.fill = GridBagConstraints.BOTH; |
|
179 |
gbc.weightx = 1.0; |
|
168 | 180 |
gbc.gridx = 2; |
169 | 181 |
buttonsPanel.add(getSaveButton(), gbc); |
170 | 182 |
} |
Also available in: Unified diff