package securityPack;
//import securityPack.Team;
//import securityPack.Mitarbeiter;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* 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 SWindow extends javax.swing.JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
private JLabel jLabel1;
private JTextField txtAuftraggeber;
private JLabel jLabel2;
private JLabel jLabel3;
private JTextField txtDateB;
private JLabel jLabel4;
private JLabel jLabel5;
private JTextArea txtPrintText;
private JTextField txtEinsatzort;
private JButton btnPrint;
private JButton btnSearch;
private JComboBox cboProfil;
private JTextField txtDateA;
/**
* Auto-generated main method to display this JFrame
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
SWindow inst = new SWindow();
inst.setLocationRelativeTo(null);
inst.setVisible(true);
}
});
}
public SWindow() {
super();
initGUI();
}
private void initGUI() {
try {
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
getContentPane().setLayout(null);
this.setTitle("SecurityTool");
getContentPane().setBackground(new java.awt.Color(0,0,0));
{
jLabel1 = new JLabel();
getContentPane().add(jLabel1);
jLabel1.setText("Auftraggeber:");
jLabel1.setBounds(12, 12, 81, 14);
jLabel1.setForeground(new java.awt.Color(255,255,255));
}
{
txtAuftraggeber = new JTextField();
getContentPane().add(txtAuftraggeber);
txtAuftraggeber.setBounds(93, 9, 314, 21);
}
{
jLabel2 = new JLabel();
getContentPane().add(jLabel2);
jLabel2.setText("Zeitraum von:");
jLabel2.setBounds(12, 38, 81, 14);
jLabel2.setForeground(new java.awt.Color(255,255,255));
}
{
txtDateA = new JTextField();
getContentPane().add(txtDateA);
txtDateA.setBounds(93, 35, 81, 21);
}
{
jLabel3 = new JLabel();
getContentPane().add(jLabel3);
jLabel3.setText("bis:");
jLabel3.setBounds(186, 38, 22, 14);
jLabel3.setForeground(new java.awt.Color(255,255,255));
}
{
txtDateB = new JTextField();
getContentPane().add(txtDateB);
txtDateB.setBounds(220, 35, 78, 21);
}
{
jLabel4 = new JLabel();
getContentPane().add(jLabel4);
jLabel4.setText("Profil:");
jLabel4.setBounds(12, 64, 81, 14);
jLabel4.setForeground(new java.awt.Color(255,255,255));
}
{
ComboBoxModel cboProfilModel =
new DefaultComboBoxModel(
new String[] { "", "Personenschutz", "Objektschutz", "Veranstaltungsüberwachung" });
cboProfil = new JComboBox();
getContentPane().add(cboProfil);
cboProfil.setModel(cboProfilModel);
cboProfil.setBounds(93, 61, 205, 21);
cboProfil.setBackground(new java.awt.Color(255,255,255));
}
{
btnSearch = new JButton();
getContentPane().add(btnSearch);
btnSearch.setText("Suchen");
btnSearch.setBounds(310, 35, 97, 47);
btnSearch.setBackground(new java.awt.Color(255,255,255));
//btn_search add action
btnSearch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btnSearch_ActionPerformed(evt);
}});
//
}
{
btnPrint = new JButton();
getContentPane().add(btnPrint);
btnPrint.setText("Drucken");
btnPrint.setBounds(285, 258, 123, 21);
btnPrint.setBackground(new java.awt.Color(255,255,255));
}
{
jLabel5 = new JLabel();
getContentPane().add(jLabel5);
jLabel5.setText("Einsatzort:");
jLabel5.setBounds(12, 90, 81, 14);
jLabel5.setForeground(new java.awt.Color(255,255,255));
}
{
txtEinsatzort = new JTextField();
getContentPane().add(txtEinsatzort);
txtEinsatzort.setBounds(93, 87, 314, 21);
}
{
txtPrintText = new JTextArea();
getContentPane().add(txtPrintText);
txtPrintText.setBounds(93, 120, 314, 126);
}
pack();
this.setSize(427, 311);
} catch (Exception e) {
e.printStackTrace();
}
}
protected void btnSearch_ActionPerformed(ActionEvent evt){
//System.exit(0);
//txt_print.setText(objTeam_1.getIhrMitarbeiter(i).getTNr());
//txt_print.setText(Team.this.getIhrMitarbeiter(1).getName());
txtPrintText.setText("Test");
}
}