Creating a user interface

Hi... i m new to java and i've got to submit a project on creating a user interface where the interface should have the following options as buttons...

add records in to d database

delete records

view records

quit

the database is wid me... i have to use 'awt' only... no swing... i've checked out many tutorials on this... came up with something but when i compiled my program it dint workout... heres how my program luks like...

[CODE]

import java.awt.*;

public class UserInterface

{

public static void main(String[] args)

{

Frame baseFrame = new Frame();

FlowLayout layout = new FlowLayout();

baseFrame.setLayout(layout);

baseFrame.reshape(10,10,200,200);

baseFrame.setTitle("User Interface");

Label labelCenter = new Label("WELCOME",Label.CENTER);

labelCenter.setForeground(Color.white);

labelCenter.setBackground(Color.black);

TextField myTextField1 = new TextField();

myTextField1.setText(" Please Select any of the Desired Options ");

myTextField1.setFont(new Font("Helvetica",

Font.BOLD, 15));

TextField myTextField2 = new TextField();

myTextField2.setText(" 1. ADD records in to the database ");

Button one = new Button("ADD");

TextField myTextField3 = new TextField();

myTextField3.setText(" 2. DELETE Records from the database");

Button two = new Button("DELETE");

TextField myTextField4 = new TextField();

myTextField4.setText(" 3. View the database ");

Button three = new Button("VIEW DB");

TextField myTextField5 = new TextField();

myTextField5.setText(" 4. View the Schema ");

Button four = new Button("VIEW SCHEMA");

TextField myTextField6 = new TextField();

myTextField6.setText(" 5. Quit ");

Button five = new Button("YES");

Button six = new Button("NO");

five.addActionListener(new ActionListener()

{

public void actionPerformed(ActionEvent e)

{

System.exit(0);

}

});

six.addActionListener(new ActionListener()

{

public void actionPerformed(ActionEvent e)

{

System.exit(1);

}

});

addWindowListener(new WindowAdapter()

{

public void windowClosing(WindowEvent e)

{

System.exit(0);

}

});

baseFrame.add(one);

baseFrame.add(two);

baseFrame.add(three);

baseFrame.add(four);

baseFrame.add(five);

baseFrame.add(six);

baseFrame.add(myTextField6);

baseFrame.add(myTextField5);

baseFrame.add(myTextField4);

baseFrame.add(myTextField3);

baseFrame.add(myTextField2);

baseFrame.add(myTextField1);

baseFrame.add(labelCenter);

baseFrame.show();

}

}

[/CODE]

after compiling and running the program it shows the buttons like add, delete, view etc first and d welcome text is shown at the end... the options text cannot be seen... it also doesnt quit...

the problem now is that i want evrything to be organized here... it should show the welcome text first.... the options then.... then the buttons... and it should also quit... can someone please help me wid this problem! any help will be greatly appreciated...

[3298 byte] By [dino86] at [2007-11-26 12:05:02]
# 1
[url http://forum.java.sun.com/thread.jspa?threadID=5113901&messageID=9387515#9387515]Crosspost.[/url]
CaptainMorgan08 at 2007-7-7 12:31:56 > top of Java-index,Desktop,Core GUI APIs...