package Frame;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JPanelSchueler extends javax.swing.JPanel {
{
try {
javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch(Exception e) {
e.printStackTrace();
}
}
/**
* Auto-generated main method to display this
* JPanel inside a new JFrame.
*/
private JTextField jTextFieldID;
private JLabel jLabelKlasse;
private JLabel jLabelName;
private JLabel jLabelVorname;
private JLabel jLabelStadtteil;
private JScrollPane jScrollPaneKommentar;
private JTextArea jTextAreaKommentar;
private JTextField jTextFieldEmail;
private JLabel jLabelEmail;
private JTextField jTextFieldTelefon2;
private JTextField jTextFieldTelefon;
private JLabel jLabelTelefon;
private JTextField jTextFieldOrt;
private JCheckBox jCheckBoxPraktikumsplatz;
private JLabel jLabelLogo;
private JComboBox jComboBoxFirma;
private JButton jButtonLoeschen;
private JLabel jLabelFirma;
private JButton jButtonNeu;
private JButton jButtonAenderungen;
private JPanel jPanel1;
private JButton jButtonBestaetigung;
private JButton jButtonAnschreiben;
private JLabel jLabelOrt;
private JTextField jTextFieldStadtteil;
private JRadioButton jRadioButtonWeiblich;
private JRadioButton jRadioButtonMaennlich;
private JTextField jTextFieldVorname;
private JTextField jTextFieldName;
private JTextField jTextFieldKlasse;
private JLabel jLabelID;
private JFrameSuche myJFrameSuche;
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.getContentPane().add(new JPanelSchueler());
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
public JPanelSchueler() {
super();
initGUI();
}
private void initGUI() {
try {
this.setLayout(null);
this.setPreferredSize(new java.awt.Dimension(485, 376));
this.setForeground(new java.awt.Color(255,0,0));
this.setBackground(new java.awt.Color(214,219,228));
this.setBorder(BorderFactory.createTitledBorder(null, "Schueler", TitledBorder.LEFT, TitledBorder.ABOVE_TOP, new java.awt.Font("Comic Sans MS",Font.PLAIN,16)));
this.setSize(485, 376);
this.setFont(new java.awt.Font("SansSerif",0,12));
{
jLabelID = new JLabel();
this.add(jLabelID);
jLabelID.setText("ID:");
jLabelID.setBounds(108, 54, 46, 15);
jLabelID.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldID = new JTextField();
this.add(jTextFieldID);
jTextFieldID.setText("21");
jTextFieldID.setBounds(172, 51, 70, 22);
jTextFieldID.setHorizontalAlignment(SwingConstants.CENTER);
jTextFieldID.setEditable(false);
jTextFieldID.setEnabled(false);
jTextFieldID.setFont(new java.awt.Font("Comic Sans MS",0,12));
jTextFieldID.setForeground(new java.awt.Color(255,0,0));
}
{
jLabelKlasse = new JLabel();
this.add(jLabelKlasse);
jLabelKlasse.setText("Klasse");
jLabelKlasse.setBounds(107, 78, 59, 15);
jLabelKlasse.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldKlasse = new JTextField();
this.add(jTextFieldKlasse);
jTextFieldKlasse.setText("DQM10");
jTextFieldKlasse.setBounds(172, 75, 70, 22);
jTextFieldKlasse.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jLabelName = new JLabel();
this.add(jLabelName);
jLabelName.setText("Name");
jLabelName.setBounds(17, 123, 71, 15);
jLabelName.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldName = new JTextField();
this.add(jTextFieldName);
jTextFieldName.setText("Dicke");
jTextFieldName.setBounds(108, 120, 134, 22);
jTextFieldName.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jLabelVorname = new JLabel();
this.add(jLabelVorname);
jLabelVorname.setText("Vorname");
jLabelVorname.setBounds(17, 147, 73, 15);
jLabelVorname.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldVorname = new JTextField();
this.add(jTextFieldVorname);
jTextFieldVorname.setText("Kevin");
jTextFieldVorname.setBounds(108, 144, 134, 22);
jTextFieldVorname.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jRadioButtonMaennlich = new JRadioButton();
this.add(jRadioButtonMaennlich);
jRadioButtonMaennlich.setText("maennlich");
jRadioButtonMaennlich.setBounds(108, 167, 134, 19);
jRadioButtonMaennlich.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jRadioButtonWeiblich = new JRadioButton();
this.add(jRadioButtonWeiblich);
jRadioButtonWeiblich.setText("weiblich");
jRadioButtonWeiblich.setBounds(14, 167, 86, 19);
jRadioButtonWeiblich.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jLabelStadtteil = new JLabel();
this.add(jLabelStadtteil);
jLabelStadtteil.setText("Stadtteil");
jLabelStadtteil.setBounds(17, 192, 79, 15);
jLabelStadtteil.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldStadtteil = new JTextField();
this.add(jTextFieldStadtteil);
jTextFieldStadtteil.setText("Vahr-Sued");
jTextFieldStadtteil.setBounds(108, 189, 134, 22);
jTextFieldStadtteil.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jLabelOrt = new JLabel();
this.add(jLabelOrt);
jLabelOrt.setText("Ort");
jLabelOrt.setBounds(17, 216, 79, 15);
jLabelOrt.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldOrt = new JTextField();
this.add(jTextFieldOrt);
jTextFieldOrt.setText("Bremen");
jTextFieldOrt.setBounds(108, 213, 134, 22);
jTextFieldOrt.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jLabelTelefon = new JLabel();
this.add(jLabelTelefon);
jLabelTelefon.setText("Telefon:");
jLabelTelefon.setBounds(260, 121, 60, 15);
jLabelTelefon.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldTelefon = new JTextField();
this.add(jTextFieldTelefon);
jTextFieldTelefon.setText("012345678");
jTextFieldTelefon.setBounds(320, 117, 160, 22);
jTextFieldTelefon.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jTextFieldTelefon2 = new JTextField();
this.add(jTextFieldTelefon2);
jTextFieldTelefon2.setText("9876543210");
jTextFieldTelefon2.setBounds(320, 141, 160, 22);
jTextFieldTelefon2.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jLabelEmail = new JLabel();
this.add(jLabelEmail);
jLabelEmail.setText("Email");
jLabelEmail.setBounds(260, 169, 48, 15);
jLabelEmail.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jTextFieldEmail = new JTextField();
this.add(jTextFieldEmail);
jTextFieldEmail.setText("kevin.dicke@web.de");
jTextFieldEmail.setBounds(320, 165, 160, 22);
jTextFieldEmail.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
{
jScrollPaneKommentar = new JScrollPane();
this.add(jScrollPaneKommentar);
jScrollPaneKommentar.setBounds(14, 267, 461, 95);
jScrollPaneKommentar.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
jScrollPaneKommentar.getHorizontalScrollBar().setOpaque(true);
jScrollPaneKommentar.getHorizontalScrollBar().setPreferredSize(new java.awt.Dimension(61, 17));
jScrollPaneKommentar.setFont(new java.awt.Font("Comic Sans MS",0,14));
{
jTextAreaKommentar = new JTextArea();
jScrollPaneKommentar.setViewportView(jTextAreaKommentar);
jTextAreaKommentar.setText("kommentar kommentar komentar");
jTextAreaKommentar.setBounds(12, 213, 225, 98);
jTextAreaKommentar.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED), "Kommentar:", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION));
jTextAreaKommentar.setPreferredSize(new java.awt.Dimension(442, 88));
jTextAreaKommentar.setSize(440, 50);
jTextAreaKommentar.setFont(new java.awt.Font("Comic Sans MS",0,12));
}
}
{
jCheckBoxPraktikumsplatz = new JCheckBox();
this.add(jCheckBoxPraktikumsplatz);
jCheckBoxPraktikumsplatz.setText("Praktikumsplatz ?");
jCheckBoxPraktikumsplatz.setBounds(108, 96, 154, 19);
jCheckBoxPraktikumsplatz.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jPanel1 = new JPanel();
this.add(jPanel1);
jPanel1.setBounds(256, 35, 220, 79);
jPanel1.setLayout(null);
jPanel1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
jPanel1.setFont(new java.awt.Font("Comic Sans MS",0,14));
{
jButtonBestaetigung = new JButton();
jPanel1.add(jButtonBestaetigung);
jButtonBestaetigung.setText("Bestaetigung");
jButtonBestaetigung.setBounds(6, 5, 208, 32);
jButtonBestaetigung.setToolTipText("acugzhfgkgfu");
jButtonBestaetigung.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jButtonAnschreiben = new JButton();
jPanel1.add(jButtonAnschreiben);
jButtonAnschreiben.setText("Anschreiben");
jButtonAnschreiben.setBounds(6, 37, 209, 32);
jButtonAnschreiben.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
}
{
jButtonAenderungen = new JButton();
this.add(jButtonAenderungen);
jButtonAenderungen.setText("Aenderungen vornehmen");
jButtonAenderungen.setBounds(254, 228, 222, 32);
jButtonAenderungen.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jButtonNeu = new JButton();
this.add(jButtonNeu);
jButtonNeu.setText("Neu");
jButtonNeu.setBounds(365, 193, 110, 32);
jButtonNeu.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jLabelFirma = new JLabel();
this.add(jLabelFirma);
jLabelFirma.setText("Firma");
jLabelFirma.setBounds(17, 240, 87, 15);
jLabelFirma.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jButtonLoeschen = new JButton();
this.add(jButtonLoeschen);
jButtonLoeschen.setText("Loeschen");
jButtonLoeschen.setBounds(255, 193, 110, 32);
jButtonLoeschen.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
ComboBoxModel jComboBox1Model =
new DefaultComboBoxModel(
new String[] { "Kein Praktikum", "Bremer Sport GmbH", "Schauburg GmbH", "Neusta GmbH", "Hmmh Gmbh" });
jComboBoxFirma = new JComboBox();
this.add(jComboBoxFirma);
jComboBoxFirma.setModel(jComboBox1Model);
jComboBoxFirma.setBounds(108, 236, 134, 25);
jComboBoxFirma.setFont(new java.awt.Font("Comic Sans MS",0,14));
}
{
jLabelLogo = new JLabel();
this.add(jLabelLogo);
jLabelLogo.setText("Logo");
jLabelLogo.setBounds(11, 37, 90, 80);
jLabelLogo.setHorizontalAlignment(SwingConstants.CENTER);
jLabelLogo.setFont(new java.awt.Font("Comic Sans MS",0,14));
jLabelLogo.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
}
} catch (Exception e) {
//add your error handling code here
e.printStackTrace();
}
}
private void jButton8ActionPerformed(ActionEvent evt) {
}
}