Solved

How do I instantiate a jInternalFrame?

Posted on 2006-10-22
4
280 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 500 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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

759 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