1 17 18 package org.objectweb.jac.aspects.gui.swing; 19 20 import javax.swing.JLabel ; 21 import org.objectweb.jac.aspects.gui.*; 22 import org.objectweb.jac.core.rtti.MethodItem; 23 24 public class StatusBar extends AbstractView implements StatusView { 25 26 MethodItem method; 27 JLabel msgLabel; 28 29 public StatusBar(MethodItem method) { 30 this.method=method; 31 msgLabel=new JLabel (); 32 add(msgLabel); 33 msgLabel.setText("Welcome"); 34 } 35 36 38 String position; 39 40 44 public String getPosition() { 45 return position; 46 } 47 48 52 public void setPosition(String v) { 53 this.position = v; 54 } 55 56 public void showMessage(String message) { 57 msgLabel.setText(message); 58 } 59 60 61 } 62 | Popular Tags |