1 package jimm.datavision.layout.swing; 2 import jimm.datavision.field.ImageField; 3 import javax.swing.*; 4 5 12 public class SwingImageField extends AbstractSwingField { 13 14 19 public SwingImageField(ImageField f) { 20 super(f, new JLabel()); 21 format(); 22 } 23 24 27 public void format() { 28 ((JLabel)component).setIcon(((ImageField)field).getImageIcon()); 29 makeBorders(); 30 } 31 32 } 33 | Popular Tags |