Wayne writes:
 > Hello,
 > I have looked thru all my java books looking for an answer to my
 > problem,
 > but I'am not not able to find a solution. So, I thought I ask the group.
 > 
 > I hava a class A that extends Frame and contains the main() method. In
 > this class I have several Button components with  an action listener on
 > each button.
 >  myButton.addActionListener(new myhandler()) ;
 > 

Your handler should not extend Frame, only implement ActionListener. 


 > In my handler I extend Frame and implement ActionListener.
 > In the method actionPerformed() I set several componets and then do a

What exactly do you mean by "...set several components..."?


 > setVisible(). But nothing happens. What am I missing?

Based on the answer to the question above, I suggest you try 

invalidate();
validate();

on the container containing the components that you "set".

 > TIA.
 > Wayne
 > 
 > 
 > 
 > ----------------------------------------------------------------------
 > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to