Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making pane.add (Jbutton) do an action (Ready to Program 1.7.1.0)
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
legosz




PostPosted: Thu Dec 10, 2015 12:57 pm   Post subject: Making pane.add (Jbutton) do an action (Ready to Program 1.7.1.0)

I created buttons using pane.add (new JButton(" ")); and now I'm wondering how I could make those buttons preform an action, that action being on click they display a number. I looked around and couldn't find anything like that, action listeners, action preformed, etc. but still none of those helped me. If anyone could help me out with this i would appreciate it a bunch!


GridLayoutDemo.java
 Description:
This is my code, if you need anything else, please let me know!

Download
 Filename:  GridLayoutDemo.java
 Filesize:  2.34 KB
 Downloaded:  228 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: