Hi,
Casey is right. It will help you or anyone doing Java programs a lot if you take a look at the Java API. Better still if you can download the whole API so that everytime you need to know the available methods of the Classes in JDK, you wouldn't have to log on to the net.
I have coded an example for you as well in case you didn't get what Casey was trying to say.
//Example:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ButtonTest extends JFrame implements ActionListener
{
JButton top, bottom;
public ButtonTest()
{
setSize(100,100);
getContentPane().setLayout(null);
top = new JButton("Top"

;
top.setBounds(new Rectangle(10,10,75,25));
top.addActionListener(this);
getContentPane().add(top,null);
bottom = new JButton("Bottom"

;
bottom.setBounds(new Rectangle(10,40,75,25));
bottom.addActionListener(this);
getContentPane().add(bottom,null);
}
public void actionPerformed(ActionEvent e)
{
String action = e.getActionCommand();
if (action.equals("Top"

)
{
top.setEnabled(false);
bottom.setEnabled(true);
}
else if (action.equals("Bottom"

)
{
top.setEnabled(true);
bottom.setEnabled(false);
}
}
public static void main(String[] args)
{
new ButtonTest().show();
}
}
Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
