Results 1 to 2 of 2
- 08-01-2007, 05:27 AM #1Member
- Join Date
- Jul 2007
- Rep Power
Error: javax.swing.AbstractButton cannot be applied to...
Hi, iv written a program which has a JtabbedPane GUI but the problem is on one of my tabs i have a JPanel called panel1. on panel1 i have a button called addButton now i add this button onto my panel and my panel onto the tab using the following code:
panel1.add(addButton); tabbedPane.addTab("New Booking", null, panel1, "First Panel");
but then when i try and ad an actionlistener to the button using the following code
addActionListener(java.awt.event.ActionListener) in javax.swing.AbstractButton cannot be applied to (tester) tester is the name of my class.
- 08-01-2007, 06:10 AM #2
- By bbq in forum Advanced JavaReplies: 7Last Post: 07-12-2010, 04:24 PM
- By ahtiven in forum New To JavaReplies: 3Last Post: 01-13-2009, 02:54 PM
- By barney in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-07-2007, 07:20 AM
- By carl in forum New To JavaReplies: 1Last Post: 08-05-2007, 06:33 AM
- By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 07:02 PM