package KinoDB; import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.Serializable; import java.io.*; import javax.swing.border.*; import com.borland.jbcl.layout.*; /** * Title: * Description: * Copyright: Copyright (c) 2002 * Company: * @author * @version 1.0 */ public class createTable2 extends JFrame{ JLabel jLabel1 = new JLabel(); JPanel jPanel1 = new JPanel(); XYLayout xYLayout1 = new XYLayout(); JLabel jLabel2 = new JLabel(); JTextField Columntext = new JTextField(); JLabel jLabel3 = new JLabel(); String names[] = { "Integer", "Char", "VarChar", "Float", "Date" }; JComboBox jComboBox1 = new JComboBox(names); JButton next = new JButton(); JButton end = new JButton(); JLabel jLabel4 = new JLabel(); JCheckBox cbox = new JCheckBox(); JLabel jLabel5 = new JLabel(); JTextField Lenghttext = new JTextField(); JLabel jLabel6 = new JLabel(); JCheckBox cbox2 = new JCheckBox(); public createTable2() { super ("Table Creation Wizard (Step 2)"); setSize(350,350); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } show(); } public void jbInit() throws Exception { jLabel1.setFont(new java.awt.Font("Dialog", 0, 30)); jLabel1.setHorizontalAlignment(SwingConstants.CENTER); jLabel1.setText("Create Column"); jPanel1.setLayout(xYLayout1); jLabel2.setText("ColumnName:"); jLabel3.setText("Type:"); next.setText("noch einen"); next.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { next_actionPerformed(e); } }); end.setText("Done"); end.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { end_actionPerformed(e); } }); jLabel4.setText("Auto Increment:"); cbox.setText("jCheckBox1"); cbox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { cbox_actionPerformed(e); } }); jLabel5.setText("Lenght:"); Lenghttext.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { Lenghttext_actionPerformed(e); } }); jLabel6.setText("Primary Key:"); cbox2.setText("jCheckBox1"); this.getContentPane().add(jLabel1, BorderLayout.NORTH); this.getContentPane().add(jPanel1, BorderLayout.CENTER); jPanel1.add(jLabel2, new XYConstraints(22, 39, 100, 19)); jPanel1.add(Columntext, new XYConstraints(136, 38, 119, 23)); jPanel1.add(jLabel3, new XYConstraints(21, 82, 81, 22)); jPanel1.add(jComboBox1, new XYConstraints(136, 84, 111, 23)); jPanel1.add(end, new XYConstraints(159, 214, 98, 29)); jPanel1.add(Lenghttext, new XYConstraints(135, 126, 66, 22)); jPanel1.add(jLabel5, new XYConstraints(21, 127, 47, 18)); jPanel1.add(jLabel4, new XYConstraints(20, 178, -1, 9)); jPanel1.add(cbox, new XYConstraints(135, 173, 15, 18)); jPanel1.add(next, new XYConstraints(31, 215, 104, -1)); jPanel1.add(jLabel6, new XYConstraints(191, 174, 84, 16)); jPanel1.add(cbox2, new XYConstraints(285, 174, 14, 16)); } void end_actionPerformed(ActionEvent e) { } void next_actionPerformed(ActionEvent e) { } void cbox_actionPerformed(ActionEvent e) { } void Lenghttext_actionPerformed(ActionEvent e) { } }