1 19 20 package org.netbeans.modules.j2ee.ejbcore.ejb.wizard.mdb; 21 22 26 public class MessageEJBVisualPanel extends javax.swing.JPanel { 27 28 29 public MessageEJBVisualPanel() { 30 initComponents(); 31 } 32 33 public boolean isQueue() { 34 return queueButton.isSelected(); 35 } 36 37 42 private void initComponents() { 44 java.awt.GridBagConstraints gridBagConstraints; 45 46 buttonGroup1 = new javax.swing.ButtonGroup (); 47 destinationTypeLabel = new javax.swing.JLabel (); 48 queueButton = new javax.swing.JRadioButton (); 49 topicButton = new javax.swing.JRadioButton (); 50 51 setLayout(new java.awt.GridBagLayout ()); 52 53 destinationTypeLabel.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_DestinationType")); gridBagConstraints = new java.awt.GridBagConstraints (); 55 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 56 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; 57 add(destinationTypeLabel, gridBagConstraints); 58 59 buttonGroup1.add(queueButton); 60 queueButton.setMnemonic(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_QueueMneumoic").charAt(0)); 61 queueButton.setSelected(true); 62 queueButton.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_Queue")); gridBagConstraints = new java.awt.GridBagConstraints (); 64 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 65 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 66 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; 67 gridBagConstraints.insets = new java.awt.Insets (0, 15, 0, 0); 68 add(queueButton, gridBagConstraints); 69 70 buttonGroup1.add(topicButton); 71 topicButton.setMnemonic(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_TopicMneumoic").charAt(0)); 72 topicButton.setText(org.openide.util.NbBundle.getMessage(MessageEJBVisualPanel.class, "LBL_Topic")); gridBagConstraints = new java.awt.GridBagConstraints (); 74 gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; 75 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 76 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH; 77 gridBagConstraints.weightx = 1.0; 78 gridBagConstraints.weighty = 1.0; 79 gridBagConstraints.insets = new java.awt.Insets (0, 15, 0, 0); 80 add(topicButton, gridBagConstraints); 81 } 83 84 private javax.swing.ButtonGroup buttonGroup1; 86 private javax.swing.JLabel destinationTypeLabel; 87 private javax.swing.JRadioButton queueButton; 88 private javax.swing.JRadioButton topicButton; 89 91 } 92 | Popular Tags |