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 JNDIDataSourceView extends JPanel { 70 71 protected JTextField jndiPath; 72 73 public JNDIDataSourceView() { 74 75 jndiPath = 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("JNDI Configuration"); 83 84 builder.append("JNDI Location:", jndiPath); 85 86 this.setLayout(new BorderLayout ()); 87 this.add(builder.getPanel(), BorderLayout.CENTER); 88 } 89 90 public JTextField getJndiPath() { 91 return jndiPath; 92 } 93 } | Popular Tags |