package bde;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.JToggleButton;
import javax.swing.JList;
import javax.swing.JLabel;
import javax.swing.JTextArea;
/**
* <p>Überschrift: </p>
*
* <p>Beschreibung: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Organisation: </p>
*
* @author
* @version 1.0
*/
public class Anmeldung extends Applet {
boolean isStandalone = false;
BorderLayout borderLayout1 = new BorderLayout();
XYLayout xYLayout1 = new XYLayout();
JToggleButton jToggleButton1 = new JToggleButton();
JList jList1 = new JList();
JTextArea jTextArea1 = new JTextArea();
JTextArea jTextArea2 = new JTextArea();
//Parameterwert holen
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
//Das Applet konstruieren
public Anmeldung() {
}
//Das Applet initialisieren
public void init() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
//Initialisierung der Komponenten
private void jbInit() throws Exception {
this.setLayout(xYLayout1);
jToggleButton1.setText("OK");
jTextArea1.setBackground(Color.lightGray);
jTextArea1.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jTextArea1.setText("Bitte wählen Sie Ihren Namen aus:");
jTextArea2.setBackground(Color.lightGray);
jTextArea2.setFont(new java.awt.Font("Arial", Font.BOLD, 12));
jTextArea2.setText("Anmeldung");
this.add(jList1, new XYConstraints(42, 56, 197, 225));
this.add(jToggleButton1, new XYConstraints(260, 150, 118, 33));
this.add(jTextArea1, new XYConstraints(42, 39, 197, -1));
this.add(jTextArea2, new XYConstraints(37, 4, 195, 18));
}
//Das Applet starten
public void start() {
}
//Das Applet anhalten
public void stop() {
}
//Das Applet löschen
public void destroy() {
}
//Applet-Information
public String getAppletInfo() {
return "Applet-Informationen";
}
//Parameter-Infos holen
public String[][] getParameterInfo() {
return null;
}
//Main-Methode
public static void main(String[] args) {
Anmeldung applet = new Anmeldung();
applet.isStandalone = true;
Frame frame;
frame = new Frame();
frame.setTitle("Applet-Frame");
frame.add(applet, BorderLayout.CENTER);
applet.init();
applet.start();
frame.setSize(400, 320);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((d.width - frame.getSize().width) / 2,
(d.height - frame.getSize().height) / 2);
frame.setVisible(true);
}
}