1 26 27 package org.objectweb.openccm.explorer.CosTrading.gui; 28 29 import javax.swing.JLabel ; 30 import javax.swing.BoxLayout ; 31 import java.awt.Dimension ; 32 import java.awt.Color ; 33 import javax.swing.Box ; 34 35 42 public class ItfGUI 43 extends Box 44 { 45 46 52 53 protected String itf_; 54 55 61 66 public ItfGUI(String itf) { 67 super(BoxLayout.X_AXIS); 68 setBackground(Color.white); 69 70 itf_ = itf; 71 72 add(Box.createHorizontalGlue()); 73 74 JLabel label = new JLabel (itf_); 75 label.setPreferredSize(new Dimension (350, 20)); 76 add(label); 77 78 add(Box.createHorizontalGlue()); 79 } 80 81 87 93 } 94 95 96 97 98 99 100 101 | Popular Tags |