To try the thousands of add-ons available here, download Mozilla Firefox, a fast, free way to surf the Web!
CloseWelcome to Firefox Add-ons.
Choose from thousands of extra features and styles to make Firefox your own.
CloseReview for Forestle by Tiger19
Rated 3 out of 5 stars
F2
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class Fehlermeldung extends JFrame implements ActionListener{
private JLabel ueberschrift = new JLabel("Dieses Ziel ist leider nicht in unserem Programm!");
private JButton element1 = new JButton("OK");
//Konstruktor:
public Fehlermeldung (String titel) {
super(titel);
//Container:
Container cp = getContentPane();
//Layout:
cp.setLayout(new BorderLayout(0,20));
//Panel:
JPanel panel_ueberschrift = new JPanel();
JPanel panel_button = new JPanel();
//Layout Überschrift:
panel_ueberschrift.setLayout(new FlowLayout(FlowLayout.CENTER,0,0));
//Panel:
panel_button.setLayout(new FlowLayout(FlowLayout.CENTER,0,0));
//Panel Überschrift:
ueberschrift.setFont(new Font("Serif", Font.BOLD, 15));
cp.add(panel_ueberschrift);
panel_ueberschrift.add(ueberschrift);
//Panel Button:
cp.add(panel_button);
panel_button.add(element1);
cp.add(panel_ueberschrift,BorderLayout.NORTH);
cp.add(panel_button,BorderLayout.SOUTH);
element1.addActionListener(this);
setSize(500,120);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
//Button OK:
if (e.getActionCommand().equals("OK"))
System.exit(0);
}
public static void main(String[] args){
Fehlermeldung fenster = new Fehlermeldung(null);
}
}
To create your own collections, you must have a Mozilla Add-ons account.