Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I instantiate a jInternalFrame?

Posted on 2006-10-22
4
Medium Priority
?
285 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:richardsimnett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:riaancornelius
ID: 17783523
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.
0
 
LVL 9

Accepted Solution

by:
riaancornelius earned 2000 total points
ID: 17783525
btw, to design the JInternalFrame, you can then right click on it in the inspector and choose 'Design this container'
0
 

Author Comment

by:richardsimnett
ID: 17785720
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
0
 

Author Comment

by:richardsimnett
ID: 17786881
nm I got it... thanks for the help!

-Rick
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question