package portfolio;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JRadioButton;
import javax.swing.JButton;
public class Project1 extends JFrame {
private JPanel jContentPane = null;
private JPanel pnlprkt1 = null;
private JLabel lbldaten = null;
private JLabel lblnmr = null;
private JLabel lblname = null;
private JTextField txtname = null;
private JLabel lblresponse = null;
private JTextField txtresponse = null;
private JLabel lblfach = null;
private JTextField txtfach = null;
private JLabel lblart = null;
private JComboBox cmbart = null;
private JLabel lblbegin = null;
private JTextField txtbegin = null;
private JLabel lblende = null;
private JTextField txtende = null;
private JRadioButton rbmuss = null;
private JButton btneinaus = null;
/**
* This is the default constructor
*/
public Project1() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(391, 424);
this.setContentPane(getJContentPane());
this.setTitle("Portfolio-Assistent");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
GridLayout gridLayout = new GridLayout();
gridLayout.setRows(1);
jContentPane = new JPanel();
jContentPane.setLayout(gridLayout);
jContentPane.add(getPnlprkt1(), null);
}
return jContentPane;
}
/**
* This method initializes pnlprkt1
*
* @return javax.swing.JPanel
*/
private JPanel getPnlprkt1() {
if (pnlprkt1 == null) {
lblende = new JLabel();
lblende.setBounds(new java.awt.Rectangle(16,257,137,24));
lblende.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblende.setText("Projektende");
lblbegin = new JLabel();
lblbegin.setBounds(new java.awt.Rectangle(16,210,135,27));
lblbegin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblbegin.setText("Projektbeginn");
lblart = new JLabel();
lblart.setBounds(new java.awt.Rectangle(14,167,137,26));
lblart.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblart.setText("Projektart");
lblfach = new JLabel();
lblfach.setBounds(new java.awt.Rectangle(13,121,139,24));
lblfach.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblfach.setText("Fachbereich");
lblresponse = new JLabel();
lblresponse.setBounds(new java.awt.Rectangle(12,80,138,24));
lblresponse.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblresponse.setText("Verantwortlicher");
lblname = new JLabel();
lblname.setBounds(new java.awt.Rectangle(13,44,136,25));
lblname.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblname.setText("Projektname");
lblnmr = new JLabel();
lblnmr.setBounds(new java.awt.Rectangle(244,12,99,16));
lblnmr.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblnmr.setText("Projekt 1");
lbldaten = new JLabel();
lbldaten.setBounds(new java.awt.Rectangle(38,11,153,16));
lbldaten.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lbldaten.setText("Projekterfassung");
pnlprkt1 = new JPanel();
pnlprkt1.setLayout(null);
pnlprkt1.add(lbldaten, null);
pnlprkt1.add(lblnmr, null);
pnlprkt1.add(lblname, null);
pnlprkt1.add(getTxtname(), null);
pnlprkt1.add(lblresponse, null);
pnlprkt1.add(getTxtresponse(), null);
pnlprkt1.add(lblfach, null);
pnlprkt1.add(getTxtfach(), null);
pnlprkt1.add(lblart, null);
pnlprkt1.add(getCmbart(), null);
pnlprkt1.add(lblbegin, null);
pnlprkt1.add(getTxtbegin(), null);
pnlprkt1.add(lblende, null);
pnlprkt1.add(getTxtende(), null);
pnlprkt1.add(getRbmuss(), null);
pnlprkt1.add(getBtneinaus(), null);
}
return pnlprkt1;
}
/**
* This method initializes txtnam
*
* @return javax.swing.JTextField
*/
private JTextField getTxtname() {
if (txtname == null) {
txtname = new JTextField();
txtname.setBounds(new java.awt.Rectangle(208,44,154,27));
txtname.setHorizontalAlignment(javax.swing.JTextField.LEFT);
}
return txtname;
}
/**
* This method initializes txtresponse
*
*/
private JTextField getTxtresponse() {
if (txtresponse == null) {
txtresponse = new JTextField();
txtresponse.setBounds(new java.awt.Rectangle(207,80,154,25));
txtresponse.setHorizontalAlignment(javax.swing.JTextField.LEFT);
}
return txtresponse;
}
/**
* This method initializes txtfach
*
* @return javax.swing.JTextField
*/
private JTextField getTxtfach() {
if (txtfach == null) {
txtfach = new JTextField();
txtfach.setBounds(new java.awt.Rectangle(209,119,154,27));
txtfach.setHorizontalAlignment(javax.swing.JTextField.LEFT);
}
return txtfach;
}
/**
* This method initializes cmbart
*
* @return javax.swing.JComboBox
*/
private JComboBox getCmbart() {
if (cmbart == null) {
cmbart = new JComboBox();
cmbart.setBounds(new java.awt.Rectangle(208,166,153,27));
cmbart.addItem("Experiment");
cmbart.addItem("Transformation");
cmbart.addItem("Erneuerung");
cmbart.addItem("Prozessverbesserung");
}
return cmbart;
}
/**
* This method initializes txtbegin
*
* @return javax.swing.JTextField
*/
private JTextField getTxtbegin() {
if (txtbegin == null) {
txtbegin = new JTextField();
txtbegin.setBounds(new java.awt.Rectangle(210,211,151,27));
}
return txtbegin;
}
/**
* This method initializes txtende
*
* @return javax.swing.JTextField
*/
private JTextField getTxtende() {
if (txtende == null) {
txtende = new JTextField();
txtende.setBounds(new java.awt.Rectangle(211,257,151,25));
txtende.setHorizontalAlignment(javax.swing.JTextField.LEFT);
}
return txtende;
}
/**
* This method initializes rbmuss
*
* @return javax.swing.JRadioButton
*/
private JRadioButton getRbmuss() {
if (rbmuss == null) {
rbmuss = new JRadioButton();
rbmuss.setBounds(new java.awt.Rectangle(16,298,136,21));
rbmuss.setText("Muss-Projekt");
rbmuss.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
}
return rbmuss;
}
/**
* This method initializes btneinaus
*
* @return javax.swing.JButton
*/
private JButton getBtneinaus() {
if (btneinaus == null) {
btneinaus = new JButton();
btneinaus.setBounds(new java.awt.Rectangle(38,331,288,37));
btneinaus.setText("Erwartete Einzahlungen/Auszahlungen");
btneinaus.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Einzahlung1 einz1 = new Einzahlung1();
einz1.setVisible(true);
if(!lblnmr.getText().equals("")){
Project1 pr2 = new Project1();
pr2.lblnmr.setText("Projekt 2");
pr2.setVisible(true);
pr2.requestFocus(true);
}
}
});
}
return btneinaus;
}
} // @jve:decl-index=0:visual-constraint="10,10"