The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Need Help Creatinh JButton Code

Posted by Avin Sinanan on November 09, 2001 at 10:48 AM

Hi there , i need help in creating a very simple piece of code that does the following ... The code must do the following 3 things :

1) It must create a button with the label "Press Me" on it.
2)When pressed the label changes to "Thank you for pressing me".
3)At the same time of the press a label appears jus below the button and says"You have jus pressed the button above".

can anyone do this? If they do please get back to me... my e-mail address is

I know it sounds easy and like am wasting your time.. but its actually harder than you think....
anyway thanks for giving me some of your time.....


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us