MenuBar1...
void jMenuItemFilter_actionPerformed(ActionEvent e) {
//...hier müsste jetzt der befehl rein in dem der Frame Filter aufgerufen wird
Das ist mein Frame "Filter"
public class Filter extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel1 = new JLabel();
Border border1;
JLabel jLabel2 = new JLabel();
JComboBox jComboBox1 = new JComboBox();
JComboBox jComboBox2 = new JComboBox();
JComboBox jComboBox3 = new JComboBox();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JComboBox jComboBox5 = new JComboBox();
JLabel jLabel6 = new JLabel();
JRadioButton jRadioButton1 = new JRadioButton();
JRadioButton jRadioButton2 = new JRadioButton();
JTextField jTextField1 = new JTextField();
JLabel jLabel7 = new JLabel();
JRadioButton jRadioButton3 = new JRadioButton();
JTextField jTextField2 = new JTextField();
JLabel jLabel8 = new JLabel();
public Filter() {
try {
jbInit();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
border1 = BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140));
jLabel1.setFont(new java.awt.Font("Dialog", 1, 14));
jLabel1.setBorder(border1);
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
jLabel1.setText("Filter - Einstellungen");
this.getContentPane().setLayout(xYLayout1);
jLabel2.setText("Messergebnisse vom");
jLabel3.setText("Tag");
jLabel4.setText("Monat");
jLabel5.setText("Jahr");
jComboBox1.addActionListener(new Filter_jComboBox1_actionAdapter(this));
jLabel6.setText("Stunde");
jRadioButton1.setText("Nur Temperaturen & Fühler die im Grenzbereich lagen");
jRadioButton1.addActionListener(new Filter_jRadioButton1_actionAdapter(this));
jRadioButton2.setText("Fühler die unter ");
jTextField1.setText("");
jLabel7.setText("°C lagen");
jRadioButton3.setText("Fühler die über ");
jRadioButton3.addActionListener(new Filter_jRadioButton3_actionAdapter(this));
jTextField2.setText("");
jLabel8.setText("°C lagen");
this.getContentPane().add(jLabel1, new XYConstraints(3, 6, 394, 24));
this.getContentPane().add(jRadioButton1, new XYConstraints(39, 42, -1, -1));
this.getContentPane().add(jRadioButton2, new XYConstraints(39, 70, -1, -1));
this.getContentPane().add(jTextField1, new XYConstraints(144, 72, 42, -1));
this.getContentPane().add(jLabel7, new XYConstraints(193, 74, -1, -1));
this.getContentPane().add(jRadioButton3, new XYConstraints(39, 100, -1, -1));
this.getContentPane().add(jTextField2, new XYConstraints(143, 101, 43, -1));
this.getContentPane().add(jLabel8, new XYConstraints(193, 104, -1, -1));
this.getContentPane().add(jLabel2, new XYConstraints(127, 144, 115, 20));
this.getContentPane().add(jComboBox1, new XYConstraints(66, 179, 66, -1));
this.getContentPane().add(jComboBox2, new XYConstraints(155, 179, 66, -1));
this.getContentPane().add(jComboBox3, new XYConstraints(245, 179, 66, -1));
this.getContentPane().add(jLabel3, new XYConstraints(89, 207, -1, -1));
this.getContentPane().add(jLabel4, new XYConstraints(174, 208, -1, -1));
this.getContentPane().add(jLabel5, new XYConstraints(265, 210, -1, -1));
this.getContentPane().add(jComboBox5, new XYConstraints(155, 233, 64, -1));
this.getContentPane().add(jLabel6, new XYConstraints(172, 262, -1, -1));
}
void jComboBox1_actionPerformed(ActionEvent e) {
}
void jRadioButton1_actionPerformed(ActionEvent e) {
}
void jRadioButton3_actionPerformed(ActionEvent e) {
}
/**
* Filter
*
* @param jFrame JFrame
* @param b boolean
*/
public Filter(JFrame jFrame, boolean b) {
}
}
class Filter_jComboBox1_actionAdapter implements java.awt.event.ActionListener {
Filter adaptee;
Filter_jComboBox1_actionAdapter(Filter adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jComboBox1_actionPerformed(e);
}
}
class Filter_jRadioButton1_actionAdapter implements java.awt.event.ActionListener {
Filter adaptee;
Filter_jRadioButton1_actionAdapter(Filter adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jRadioButton1_actionPerformed(e);
}
}
class Filter_jRadioButton3_actionAdapter implements java.awt.event.ActionListener {
Filter adaptee;
Filter_jRadioButton3_actionAdapter(Filter adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jRadioButton3_actionPerformed(e);
}
}