package menü;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class menü extends JFrame implements ActionListener
{
/**
*
*/
private static long serialVersionUID = 1L;
public static void main (String[] args )
{
JButton montag;
JButton dienstag;
JButton mittwoch;
JButton donnerstag;
JButton freitag;
JLabel Label;
JFrame Hauptmenü = new JFrame ("Hauptmenü");
Hauptmenü.setSize(400,400);
Label = new JLabel();
Label.setVerticalAlignment(SwingConstants.CENTER);
Label.setHorizontalAlignment(SwingConstants.CENTER);
Label.setVisible(true);
JToolBar tbar = new JToolBar();
tbar.add( montag = new JButton ("Montag"));
tbar.add( dienstag = new JButton ("Dienstag"));
tbar.add( mittwoch = new JButton ("Mittwoch"));
tbar.add( donnerstag = new JButton("Donnerstag"));
tbar.add( freitag = new JButton("Freitag"));
ActionListener al = new ActionListener () {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
};
montag.addActionListener(al);
dienstag.addActionListener(al);
mittwoch.addActionListener(al);
donnerstag.addActionListener(al);// statt al oder null eventuel etwas anderser
freitag.addActionListener(al);
Hauptmenü.add(Label);
Hauptmenü.add(tbar);
Hauptmenü.setVisible(true);}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
public static void setLabelText(String string) {
// TODO Auto-generated method stub
}
}