Revision 11117 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/InfoPanel.java
InfoPanel.java | ||
---|---|---|
19 | 19 |
package org.gvsig.rastertools.properties.panels; |
20 | 20 |
|
21 | 21 |
import java.awt.BorderLayout; |
22 |
import java.awt.GridBagConstraints; |
|
23 | 22 |
import java.awt.event.ItemEvent; |
24 | 23 |
import java.awt.event.ItemListener; |
25 | 24 |
import java.io.File; |
... | ... | |
137 | 136 |
* @return void |
138 | 137 |
*/ |
139 | 138 |
public void initialize() { |
140 |
GridBagConstraints gridBagConstraints = new GridBagConstraints(); |
|
141 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
|
142 |
gridBagConstraints.gridx = 0; |
|
143 |
gridBagConstraints.gridy = 0; |
|
144 |
gridBagConstraints.weightx = 1.0; |
|
145 |
gridBagConstraints.weighty = 1.0; |
|
146 |
gridBagConstraints.insets = new java.awt.Insets(5, 8, 5, 8); |
|
147 |
// this.setLayout(new GridBagLayout()); |
|
148 |
this.setLayout(new BorderLayout()); |
|
149 |
this.add(getJComboBox(), BorderLayout.NORTH); |
|
150 |
this.add(getJScrollPane(), BorderLayout.CENTER/* gridBagConstraints */); |
|
151 |
// this.addComponentListener(this); |
|
139 |
this.setLayout(new BorderLayout(5, 5)); |
|
140 |
this.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5)); |
|
141 |
this.add(getJScrollPane(), BorderLayout.CENTER); |
|
142 |
this.add(getJComboBox(), BorderLayout.SOUTH); |
|
152 | 143 |
this.getJEditorPane().repaint(); |
153 | 144 |
|
154 | 145 |
getJComboBox().addItemListener(new ItemListener() { |
... | ... | |
469 | 460 |
|
470 | 461 |
this.getJEditorPane().setContentType("text/html"); |
471 | 462 |
this.getJEditorPane().setText(html); |
463 |
this.getJEditorPane().setCaretPosition(0); |
|
472 | 464 |
} |
473 | 465 |
|
474 | 466 |
/* |
Also available in: Unified diff