1 56 package org.objectstyle.cayenne.modeler.dialog.datadomain; 57 58 import java.awt.BorderLayout ; 59 60 import org.scopemvc.view.swing.SPanel; 61 import org.scopemvc.view.swing.STextField; 62 63 import com.jgoodies.forms.builder.DefaultFormBuilder; 64 import com.jgoodies.forms.layout.FormLayout; 65 66 69 public class JMSConfigPanel extends SPanel { 70 71 public JMSConfigPanel() { 72 super(); 73 initView(); 74 } 75 76 protected void initView() { 77 setLayout(new BorderLayout ()); 78 79 STextField topicFactory = new STextField(30); 80 topicFactory.setSelector(JMSConfigModel.TOPIC_FACTORY_SELECTOR); 81 82 FormLayout layout = new FormLayout("right:150, 3dlu, left:200", ""); 84 DefaultFormBuilder builder = new DefaultFormBuilder(layout); 85 builder.setDefaultDialogBorder(); 86 builder.appendSeparator("JMS Settings"); 87 88 builder.append("Connection Factory Name:", topicFactory, 1); 91 92 add(builder.getPanel(), BorderLayout.NORTH); 93 } 94 95 } 96 | Popular Tags |