richardsimnett
asked on
How do I instantiate a jInternalFrame?
Hello,
Im using Netbeans 5.0, and have been designing a gui app. This app has multiple threads to perform different tasks. I want to open a JInternalFrame that I design in Netbeans for each individual thread to monitor its progress... how do I accomplish this?
Worth 500 points.
Thanks,
Rick
Im using Netbeans 5.0, and have been designing a gui app. This app has multiple threads to perform different tasks. I want to open a JInternalFrame that I design in Netbeans for each individual thread to monitor its progress... how do I accomplish this?
Worth 500 points.
Thanks,
Rick
You have to create a JFrame first, and then create a new JInternalFrame for each thread. You can do this by Right clicking on 'other components' in the inspector and choose a JInternalFrame from the 'Add from palette' menu. If I misunderstand the problem, please give more details.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
riaancornelius,
I think you misunderstood. What I have going is a an app that already has a base jframe... it has a logger window for debugging and thats it... There are threads I have written that run in the background that when executed I want to open up there own windows (jinternalframes) on my base jframe, to monitor there progress...
To facilitate each thread creating its own window I imagine I have to create a JInternalFrame object that I can spawn at will via MyJInternalFrame j = new MyJInternalFrame();
This opens a new window that is bound to the calling thread, and will allow me to pass data values to it for display in the gui... progress bars etc...
Creating the spawnable Frame Object is what I need to know how to create... I have not a clue how to do it. I would like to be able to design it in the GUI and just call it...
Thanks,
Rick
I think you misunderstood. What I have going is a an app that already has a base jframe... it has a logger window for debugging and thats it... There are threads I have written that run in the background that when executed I want to open up there own windows (jinternalframes) on my base jframe, to monitor there progress...
To facilitate each thread creating its own window I imagine I have to create a JInternalFrame object that I can spawn at will via MyJInternalFrame j = new MyJInternalFrame();
This opens a new window that is bound to the calling thread, and will allow me to pass data values to it for display in the gui... progress bars etc...
Creating the spawnable Frame Object is what I need to know how to create... I have not a clue how to do it. I would like to be able to design it in the GUI and just call it...
Thanks,
Rick
ASKER
nm I got it... thanks for the help!
-Rick
-Rick