1 17 18 package org.objectweb.jac.aspects.gui.swing; 19 20 import java.awt.GridLayout ; 21 import javax.swing.JLabel ; 22 import org.objectweb.jac.aspects.gui.IntFormat; 23 import org.objectweb.jac.core.rtti.FieldItem; 24 25 public class IntViewer extends FormatViewer { 26 public IntViewer(Object value, Object substance, FieldItem field) { 27 super(value,substance,field); 28 } 29 30 public IntViewer() { 31 } 32 33 protected void initFormat(FieldItem field) { 34 format = new IntFormat(field); 35 } 36 37 protected void setLayout() { 38 setLayout(new GridLayout (1,1)); 39 label.setVerticalAlignment(JLabel.CENTER); 40 label.setHorizontalAlignment(JLabel.RIGHT); 41 } 42 } 43 | Popular Tags |