1 19 20 package org.netbeans.modules.j2ee.ejbjarproject.ui.customizer; 21 22 import java.awt.GridBagConstraints ; 23 import java.awt.GridBagLayout ; 24 import javax.swing.JLabel ; 25 import javax.swing.JPanel ; 26 import javax.swing.SwingConstants ; 27 import org.openide.util.HelpCtx; 28 import org.openide.util.NbBundle; 29 30 34 public class NoWebServicesPanel extends JPanel implements HelpCtx.Provider { 35 36 private JLabel label; 37 38 39 public NoWebServicesPanel() { 40 this(NbBundle.getMessage(NoWebServicesPanel.class, "LBL_CustomizeWsServiceHost_NoWebServices")); } 42 43 44 public NoWebServicesPanel(String text) { 45 setLayout(new GridBagLayout ()); 46 47 label = new JLabel (text); 48 label.setVerticalAlignment(SwingConstants.CENTER); 49 label.setHorizontalAlignment(SwingConstants.CENTER); 50 GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints (); 51 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 52 gridBagConstraints.weightx = 1.0; 53 gridBagConstraints.weighty = 1.0; 54 55 add(label, gridBagConstraints); 56 } 57 58 public HelpCtx getHelpCtx() { 59 return new HelpCtx(CustomizerWSServiceHost.class.getName() + "Disabled"); } 61 62 } 63 | Popular Tags |