1 19 20 package org.netbeans.modules.i18n; 21 22 import java.util.MissingResourceException ; 23 import org.openide.util.NbBundle; 24 import javax.swing.BoxLayout ; 25 import javax.swing.Box ; 26 27 30 public class EmptyPropertyPanel extends javax.swing.JPanel { 31 32 33 public EmptyPropertyPanel() { 34 initComponents(); 35 } 36 37 40 private void initComponents() { 41 theLabel = new javax.swing.JLabel (); 42 43 setLayout(new BoxLayout (this, BoxLayout.Y_AXIS)); 44 add(Box.createVerticalStrut(100)); 45 46 theLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 47 theLabel.setText("...."); 48 theLabel.setAlignmentX(0.5f); 49 theLabel.setAlignmentY(0.5f); 50 add(theLabel); 51 } 52 53 54 private javax.swing.JLabel theLabel; 55 56 public void setBundleText(String textID) throws MissingResourceException { 57 theLabel.setText(NbBundle.getMessage(EmptyPropertyPanel.class, textID)); 58 } 59 60 public String getText() { 61 return theLabel.getText(); 62 } 63 } 64 | Popular Tags |