Results 1 to 8 of 8
- 04-01-2011, 02:29 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0
-
Details. You'll want to provide more information if we have any chance of helping you. Please read the link in my signature below on how to ask smart questions for suggestions on what we need.
- 04-01-2011, 09:36 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0

-
Since the main panel is creating the internal frame, I think that main panel ought to be responsible for any side effects it wishes to grant internal frame. I would give the internal frame a public void method, say called addButton1ActionListener(ActionListener listener) and in this method add the listener parameter as an ActionListener to button1. Then when the main panel creates the internal frame, it can call the above method passing an ActionListener that re-enables the two buttons that it holds. This way the internal frame doesn't have to have any knowledge about the containing main panel, and if the main panel changes and the needs of this action changes, you only have to change the main panel's code not the internal frame's code.
If my reply is not clear, please ask. Also consider posting some of your pertinent code. The best code you could post would be a small compilable and runnable program that shows the problem and runs unaltered for us, an SSCCE.Last edited by Fubarable; 04-02-2011 at 02:15 PM.
- 04-02-2011, 03:03 PM #5
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0
can you give me example project? please...
-
- 04-03-2011, 08:12 AM #7
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0
This the example Project
Please fix it, Thanks before
-
The code posted does not conform to the SSCCE standard. For a greater chance of help, I suggest that you create a valid SSCCE, and post the actual SSCCE code here in the forum, not a link to a download site.
Best of luck.
Similar Threads
-
Please help : JSP enable/disable button
By kalyana in forum New To JavaReplies: 3Last Post: 03-24-2011, 05:06 PM -
Java slave Frame access to its owner main frame problem
By cagdaseckin in forum New To JavaReplies: 0Last Post: 12-10-2010, 10:40 AM -
is it possible to dock Internal-Frame?
By newbiejava in forum AWT / SwingReplies: 2Last Post: 07-07-2010, 12:10 PM -
Getting internal frame out
By rad in forum New To JavaReplies: 8Last Post: 08-11-2008, 02:33 AM -
Internal Frame order and canvas Z Index
By dazza-s in forum New To JavaReplies: 3Last Post: 05-29-2008, 06:20 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks