Results 1 to 2 of 2
- 12-09-2011, 09:42 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 65
- Rep Power
- 0
Action Listener listen to another class/ program
Hey, I created a table that refreshes data and adds data from a seperate adding program; my problem is that I have been unable to get the table to update whenever I add a contact, my best idea has been to create a action listener that listens across the two tables
is this goal possible? heres the action event and how im trying to get it to work
public void actionPerformed(ActionEvent e)
{Object source = e.getSource();
if (source == exitButton)
{ System.exit(0);}
else if (source == StoreData2.acceptButton)
{deleteAllRows();
GetModel();}
- 12-09-2011, 10:59 PM #2
Similar Threads
-
Java Addition Program Help with Action Listener
By Syanara in forum New To JavaReplies: 21Last Post: 05-12-2011, 07:03 PM -
having issues getting my action listener to listen to my combo boxes
By dbomb in forum AWT / SwingReplies: 12Last Post: 05-04-2011, 09:31 PM -
Make a menybutton (action)listen!
By LennyKosmos in forum New To JavaReplies: 1Last Post: 10-25-2010, 05:12 PM -
Action Listener
By greatmajestics in forum AWT / SwingReplies: 8Last Post: 03-25-2010, 05:39 PM -
Action Listener? how to use this?
By jeffrey in forum New To JavaReplies: 2Last Post: 10-12-2009, 08:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks