Revision 42811 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/mdiFrame/NewStatusBar.java
NewStatusBar.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import java.awt.BorderLayout; |
27 | 27 |
import java.awt.Component; |
28 |
import java.awt.Cursor; |
|
28 | 29 |
import java.awt.Dimension; |
29 | 30 |
import java.awt.FlowLayout; |
30 | 31 |
import java.awt.LayoutManager; |
... | ... | |
140 | 141 |
lblTexto.setVerticalAlignment(SwingConstants.CENTER); |
141 | 142 |
lblTexto.setVerticalTextPosition(SwingConstants.CENTER); |
142 | 143 |
lblIcon.setText(""); |
144 |
lblTexto.setCursor(new Cursor(Cursor.HAND_CURSOR)); |
|
143 | 145 |
lblTexto.setText(Messages.getString("StatusBar.Aplicacion_iniciada")); |
144 | 146 |
|
145 | 147 |
JPanel panelLeft = new JPanel(); |
... | ... | |
237 | 239 |
|
238 | 240 |
this.lblTexto.addMouseListener( new MouseListener() { |
239 | 241 |
public void mouseReleased(MouseEvent e) { |
240 |
if( e.isPopupTrigger() ) { |
|
241 |
if( getStatusText().length() > 0 || estado!=INFO ) { |
|
242 |
menu.show(lblTexto, e.getX(), e.getY()); |
|
243 |
} |
|
244 |
} |
|
242 |
// if( e.isPopupTrigger() ) {
|
|
243 |
// if( getStatusText().length() > 0 || estado!=INFO ) {
|
|
244 |
// menu.show(lblTexto, e.getX(), e.getY());
|
|
245 |
// }
|
|
246 |
// }
|
|
245 | 247 |
} |
246 | 248 |
public void mousePressed(MouseEvent e) { |
247 |
if( e.isPopupTrigger() ) { |
|
249 |
if( e.isPopupTrigger() || e.getClickCount()==1 ) {
|
|
248 | 250 |
if( getStatusText().length() > 0 || estado!=INFO ) { |
249 | 251 |
menu.show(lblTexto, e.getX(), e.getY()); |
250 | 252 |
} |
Also available in: Unified diff