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 CustomRemoteEventsConfigPanel extends SPanel { 70 71 public CustomRemoteEventsConfigPanel() { 72 super(); 73 initView(); 74 } 75 76 protected void initView() { 77 setLayout(new BorderLayout ()); 78 79 STextField factoryClass = new STextField(30); 80 factoryClass.setSelector(CacheSyncConfigModel.FACTORY_CLASS_SELECTOR); 81 82 FormLayout layout = new FormLayout("right:150, 3dlu, left:200", ""); 84 DefaultFormBuilder builder = new DefaultFormBuilder(layout); 85 builder.setDefaultDialogBorder(); 86 builder.appendSeparator("Custom EventBridge Factory"); 87 88 builder.append("Factory Class:", factoryClass, 1); 91 92 add(builder.getPanel(), BorderLayout.NORTH); 93 } 94 } 95 | Popular Tags |