Revision 44075 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/mdiFrame/NewStatusBar.java
NewStatusBar.java | ||
---|---|---|
50 | 50 |
import org.apache.commons.lang3.StringUtils; |
51 | 51 |
|
52 | 52 |
import org.gvsig.andami.IconThemeHelper; |
53 |
import org.gvsig.andami.PluginServices; |
|
54 | 53 |
import org.gvsig.andami.messages.Messages; |
55 | 54 |
import org.gvsig.andami.plugins.config.generate.Label; |
56 | 55 |
import org.gvsig.gui.beans.controls.IControl; |
... | ... | |
145 | 144 |
lblTexto.setText(Messages.getString("StatusBar.Aplicacion_iniciada")); |
146 | 145 |
|
147 | 146 |
JPanel panelLeft = new JPanel(); |
148 |
panelLeft.setLayout(new FlowLayout(FlowLayout.LEFT, 1, 0));
|
|
149 |
panelLeft.add(lblIcon); |
|
150 |
panelLeft.add(lblTexto); |
|
151 |
panelLeft.add(getProgressBar()); |
|
147 |
panelLeft.setLayout(new BorderLayout(1,1));
|
|
148 |
panelLeft.add(lblIcon, BorderLayout.LINE_START);
|
|
149 |
panelLeft.add(lblTexto, BorderLayout.CENTER);
|
|
150 |
// panelLeft.add(getProgressBar());
|
|
152 | 151 |
|
153 | 152 |
this.add(panelLeft, BorderLayout.CENTER); |
154 | 153 |
this.add(panelRight, BorderLayout.EAST); |
... | ... | |
170 | 169 |
this.textoCompleto = ""; |
171 | 170 |
lblTexto.setText(""); |
172 | 171 |
lblIcon.setIcon(null); |
172 |
lblTexto.paintImmediately(lblTexto.getVisibleRect()); |
|
173 |
lblIcon.paintImmediately(lblIcon.getVisibleRect()); |
|
173 | 174 |
estado = INFO; |
174 | 175 |
} |
175 | 176 |
|
176 | 177 |
|
177 |
public void message(final String msg, final int messageTyoe) {
|
|
178 |
public void message(final String msg, final int messageType) {
|
|
178 | 179 |
if (!SwingUtilities.isEventDispatchThread()) { |
179 | 180 |
SwingUtilities.invokeLater(new Runnable() { |
180 | 181 |
public void run() { |
181 |
message(msg,messageTyoe);
|
|
182 |
message(msg,messageType);
|
|
182 | 183 |
} |
183 | 184 |
}); |
184 | 185 |
return; |
... | ... | |
188 | 189 |
this.clearMessage(); |
189 | 190 |
return; |
190 | 191 |
} |
191 |
switch (messageTyoe) {
|
|
192 |
switch (messageType) {
|
|
192 | 193 |
case JOptionPane.ERROR_MESSAGE: |
193 | 194 |
setErrorText(msg); |
194 | 195 |
break; |
... | ... | |
200 | 201 |
setInfoText(msg); |
201 | 202 |
break; |
202 | 203 |
} |
203 |
this.doLayout();
|
|
204 |
this.repaint();
|
|
204 |
lblTexto.paintImmediately(lblTexto.getVisibleRect());
|
|
205 |
lblIcon.paintImmediately(lblIcon.getVisibleRect());
|
|
205 | 206 |
messageTimer.start(); |
206 | 207 |
} |
207 | 208 |
|
Also available in: Unified diff