1 19 20 package org.netbeans.modules.java.j2seproject.wsclient; 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.netbeans.modules.java.j2seproject.ui.customizer.CustomizerProviderImpl; 28 import org.openide.util.HelpCtx; 29 import org.openide.util.NbBundle; 30 31 35 public class NoWebServiceClientsPanel extends JPanel implements HelpCtx.Provider { 36 37 private JLabel label; 38 39 40 public NoWebServiceClientsPanel() { 41 this(NbBundle.getMessage(NoWebServiceClientsPanel.class, "LBL_CustomizeWsServiceClientHost_NoWebServiceClients")); 42 } 43 44 45 public NoWebServiceClientsPanel(String text) { 46 setLayout(new GridBagLayout ()); 47 48 label = new JLabel (text); 49 label.setVerticalAlignment(SwingConstants.CENTER); 50 label.setHorizontalAlignment(SwingConstants.CENTER); 51 GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints (); 52 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 53 gridBagConstraints.weightx = 1.0; 54 gridBagConstraints.weighty = 1.0; 55 56 add(label, gridBagConstraints); 57 } 58 59 public HelpCtx getHelpCtx() { 60 return new HelpCtx(CustomizerWSClientHost.class.getName() + "Disabled"); } 62 63 } 64 | Popular Tags |