View Single Post
  #1 (permalink)  
Old 12-19-2007, 10:33 AM
eva eva is offline
Member
 
Join Date: Dec 2007
Posts: 49
eva is on a distinguished road
How to perform some event to button click
I have the following code. I have a button on the frame.

Code:
Button b = new Button("Hello"); Frame f = new Frame("Java Frame"); f.add(b, BorderLayout.NORTH ); f.pack(); f.show();
I want some action to be preformed on the button click. Please guide me how to do so.

_ PEACE
Reply With Quote
Sponsored Links