1 26 27 package org.objectweb.openccm.explorer.CosTrading.gui; 28 29 30 import javax.swing.JLabel ; 31 import javax.swing.BoxLayout ; 32 import java.awt.Dimension ; 33 import java.awt.Color ; 34 import javax.swing.Box ; 35 36 42 public class SuperTypesGUI extends Box { 43 44 50 protected String [] superTypes_; 51 52 58 63 public SuperTypesGUI(String [] superTypes) { 64 super(BoxLayout.Y_AXIS); 65 setBackground(Color.white); 66 67 superTypes_ = superTypes; 69 70 add(Box.createHorizontalGlue()); 71 72 for (int i=0 ; i<superTypes_.length ; i++) { 73 JLabel label = null; 74 label = new JLabel (superTypes_[i]); 75 76 label.setPreferredSize(new Dimension (350, 20)); 77 add(label); 78 } 79 80 add(Box.createHorizontalGlue()); 81 } 82 83 89 95 } 96 97 98 99 100 101 102 103 | Popular Tags |