|
What this is
Other links
The source code/* * EmptyPropertyPanel.java * * Created on July 29, 2004, 7:52 PM */ package org.netbeans.modules.i18n; import java.util.MissingResourceException; import org.openide.util.NbBundle; import javax.swing.BoxLayout; import javax.swing.Box; /** * * @author or141057 */ public class EmptyPropertyPanel extends javax.swing.JPanel { /** Creates new form EmptyPropertyPanel */ public EmptyPropertyPanel() { initComponents(); } /** This method is called from within the constructor to * initialize the form. */ private void initComponents() {//GEN-BEGIN:initComponents theLabel = new javax.swing.JLabel(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createVerticalStrut(100)); theLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); theLabel.setText("...."); theLabel.setAlignmentX(0.5f); theLabel.setAlignmentY(0.5f); add(theLabel); } private javax.swing.JLabel theLabel; public void setBundleText(String textID) throws MissingResourceException { theLabel.setText(NbBundle.getMessage(EmptyPropertyPanel.class, textID)); } public String getText() { return theLabel.getText(); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.