1 56 package org.objectstyle.cayenne.modeler.editor.datanode; 57 58 import java.awt.BorderLayout ; 59 60 import javax.swing.JPanel ; 61 import javax.swing.JTextField ; 62 63 import com.jgoodies.forms.builder.DefaultFormBuilder; 64 import com.jgoodies.forms.layout.FormLayout; 65 66 69 public class CustomDataSourceView extends JPanel { 70 71 protected JTextField locationHint; 72 73 public CustomDataSourceView() { 74 75 locationHint = new JTextField (); 76 77 FormLayout layout = new FormLayout("right:80dlu, 3dlu, fill:200dlu", ""); 79 DefaultFormBuilder builder = new DefaultFormBuilder(layout); 80 builder.setDefaultDialogBorder(); 81 82 builder.appendSeparator("Custom Configuration"); 83 84 builder.append("Location Hint:", locationHint); 85 86 this.setLayout(new BorderLayout ()); 87 this.add(builder.getPanel(), BorderLayout.CENTER); 88 } 89 90 public JTextField getLocationHint() { 91 return locationHint; 92 } 93 } | Popular Tags |