FileDocCategorySizeDatePackage
AppletUI.javaAPI DocExample2261Fri Oct 01 15:08:20 BST 1999None

AppletUI

public class AppletUI extends Applet

Fields Summary
protected Button
Query_button
protected Button
Delete_button
protected TextArea
output
protected Label
query_name_label
protected Label
delete_name_label
protected TextField
query_name_field
protected TextField
delete_name_field
Constructors Summary
Methods Summary
private voidaddFormComponent(java.awt.GridBagLayout grid, java.awt.Component comp, java.awt.GridBagConstraints c)

    grid.setConstraints(comp, c);
    add(comp);
  
public voidinit()

    GridBagLayout gridbag = new GridBagLayout();

    GridBagConstraints constraints = new GridBagConstraints();
    setFont(new Font("TimesRoman", Font.BOLD, 18));
    constraints.anchor = GridBagConstraints.NORTHEAST;
    setLayout(gridbag);
    constraints.gridheight = 10;
    constraints.gridwidth = 5;

    query_name_label = new Label("Enter Employee Name to Search: ");
    addFormComponent(gridbag, query_name_label, constraints);

    query_name_field = new TextField(15);
    addFormComponent(gridbag, query_name_field, constraints);
    constraints.gridwidth = GridBagConstraints.REMAINDER;

    Query_button = new Button("Query");
    addFormComponent(gridbag, Query_button, constraints);

    output = new TextArea(10,55);
    addFormComponent(gridbag, output, constraints);

    constraints.gridwidth = 5;
    delete_name_label = new Label("Enter Employee Name to Delete: ");
    addFormComponent(gridbag, delete_name_label, constraints);

    delete_name_field = new TextField(15);
    addFormComponent(gridbag, delete_name_field, constraints);

    Delete_button = new Button("Delete");
    addFormComponent(gridbag, Delete_button, constraints);