1 18 19 package org.objectweb.jac.aspects.gui.swing; 20 21 import javax.swing.BoxLayout ; 22 import javax.swing.JLabel ; 23 import org.objectweb.jac.aspects.gui.PercentFormat; 24 import org.objectweb.jac.core.rtti.FieldItem; 25 26 29 30 public class PercentViewer extends FormatViewer 31 { 32 public PercentViewer(Object value, Object substance, FieldItem field) { 33 super(value,substance,field); 34 } 35 36 public PercentViewer() { 37 setLayout(new BoxLayout (this,BoxLayout.Y_AXIS)); 38 label.setAlignmentX((float)1.0); 39 } 40 41 protected void initFormat(FieldItem field) { 42 format = new PercentFormat(field); 43 } 44 } 45 | Popular Tags |