View Javadoc
1 /* 2 * Created by IntelliJ IDEA. 3 * User: jbirchfield 4 * Date: Aug 19, 2002 5 * Time: 12:03:45 PM 6 * To change template for new class use 7 * Code Style | Class Templates options (Tools | IDE Options). 8 */ 9 package net.plugin.sql.gui.configuration; 10 11 import net.plugin.sql.util.DataSourceManager; 12 import net.plugin.sql.util.DataSourceException; 13 import net.plugin.sql.beans.DataSource; 14 15 import javax.swing.*; 16 import java.awt.*; 17 import java.awt.event.ActionListener; 18 import java.awt.event.ActionEvent; 19 20 import com.intellij.openapi.project.Project; 21 import com.intellij.openapi.project.ProjectManager; 22 23 public class DataSourceConfigurationView extends JPanel 24 { 25 26 private final Project project; 27 private JLabel nameLabel = null; 28 private JTextField nameTf = null; 29 private JLabel driverLabel = null; 30 private JTextField driverTf = null; 31 private JLabel urlLabel = null; 32 private JTextField urlTf = null; 33 private JLabel userLabel = null; 34 private JTextField userTf = null; 35 private JLabel passwordLabel = null; 36 private JTextField passwordTf = null; 37 38 39 public DataSourceConfigurationView(Project project) { 40 super(); 41 this.project = project; 42 43 this.setLayout(new BorderLayout()); 44 45 nameLabel = new JLabel("Name:"); 46 nameTf = new JTextField(20); 47 driverLabel = new JLabel("Driver:"); 48 driverTf = new JTextField(20); 49 urlLabel = new JLabel("URL:"); 50 urlTf = new JTextField(20); 51 userLabel = new JLabel("Username:"); 52 userTf = new JTextField(20); 53 passwordLabel = new JLabel("Password:"); 54 passwordTf = new JTextField(20); 55 56 /* 57 this.add(new JPanel().add(nameLabel)); 58 this.add(new JPanel().add(nameTf)); 59 this.add(new JPanel().add(driverLabel)); 60 this.add(new JPanel().add(driverTf)); 61 this.add(new JPanel().add(urlLabel)); 62 this.add(new JPanel().add(urlTf)); 63 this.add(new JPanel().add(userLabel)); 64 this.add(new JPanel().add(userTf)); 65 this.add(new JPanel().add(passwordLabel)); 66 this.add(new JPanel().add(passwordTf)); 67 */ 68 69 this.add(nameLabel); 70 this.add(nameTf); 71 this.add(driverLabel); 72 this.add(driverTf); 73 this.add(urlLabel); 74 this.add(urlTf); 75 this.add(userLabel); 76 this.add(userTf); 77 this.add(passwordLabel); 78 this.add(passwordTf); 79 80 } 81 }

This page was automatically generated by Maven