Link to home
Start Free TrialLog in
Avatar of richardsimnett
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
Avatar of riaancornelius
riaancornelius

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
Avatar of riaancornelius
riaancornelius

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of richardsimnett

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
nm I got it... thanks for the help!

-Rick