Results 21 to 30 of 30
Thread: reference issue
By the way, obviuosly i respect your recommendation. but how can i extract components?
- 07-04-2010, 04:29 PM #22
Hi.. the problem is not over yet.. I am able to refer to every panel created using changeListener but the problem is that..
since the first panel is created first and the second panel is created at last.. so the refernce that is available is of the second panel after the frame is executed for the first time.. so when i try to make modifications to the table added to first panel , say table1 the modificaions are not implemented.. but when i switch to panel2 and then return to panel1 and then make modifications to table1 ... modifications are implemented..
bottom line: i need to switch to some other panel and then return to the first panel in order to make changelistener to come to life..
please suggest.. i am using tablemodellistener as anonymous inner class inside the change listener.The Quieter you become the more you are able to hear !
One possible solution is to do just that: change the tabs programmatically after adding the change listener.
- 07-04-2010, 05:23 PM #24
i didn't get it.. please explain.The Quieter you become the more you are able to hear !
- 07-04-2010, 05:37 PM #25
How can i change the tab? please explain.The Quieter you become the more you are able to hear !
Have a look in the JTabbedPane API. Often for many getter methods (int getFoo()), there's an associated setter method (setFoo(int value)). You are using some getter methods one of whose associated setter method could be useful.
- 07-04-2010, 05:59 PM #27
are setting panel 0 or panel1 to front but i am not able to refer to panel0..
please help.The Quieter you become the more you are able to hear !
Try setting it to 1 and then back to 0.
- 07-04-2010, 06:06 PM #29
Ha.. It work'd thanks. thankyou so much.The Quieter you become the more you are able to hear !
- By smackdown90 in forum Web FrameworksReplies: 0Last Post: 04-25-2010, 07:53 PM
- By katie in forum New To JavaReplies: 2Last Post: 10-19-2009, 04:45 PM
- By kellykellykelly in forum Advanced JavaReplies: 1Last Post: 02-28-2009, 08:59 AM
- By ajith_raj in forum Advanced JavaReplies: 4Last Post: 02-12-2009, 12:46 PM
- By Deathmonger in forum New To JavaReplies: 2Last Post: 03-12-2008, 03:51 PM