1 26 package org.objectweb.util.explorer.swing.lib; 27 28 import javax.swing.BorderFactory ; 29 import javax.swing.JTextField ; 30 31 import org.objectweb.util.explorer.core.common.api.TextComponent; 32 import org.objectweb.util.explorer.swing.api.StatusBar; 33 34 42 public class DefaultStatusBar 43 extends JTextField 44 implements TextComponent, StatusBar 45 { 46 47 53 59 public DefaultStatusBar(){ 60 super(); 61 setBorder(BorderFactory.createLoweredBevelBorder()); 62 setEditable(false); 63 } 64 65 71 77 80 public void setText(String message) { 81 if(message!=null){ 82 super.setText(message); 83 } 84 } 85 86 92 95 public JTextField getStatusBar() { 96 return this; 97 } 98 } 99 100 101 | Popular Tags |