Solved

How do I instantiate a jInternalFrame?

Posted on 2006-10-22
4
275 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
  • 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 42
Exchange and Third Party application. 8 59
firstChar challenge 13 83
compre toata in where clue oracle 4 41
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now