Solved

How can I run an application inside a JPanel?

Posted on 2011-09-06
3
871 Views
Last Modified: 2013-11-19
I want to embed in my java swing application other applications(I want them run inside a jpanel). How can I do that?
0
Comment
Question by:ionutcib
  • 2
3 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 36488175
What kind of application(s)?
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 36488322
It sounds like you want to execute some external application (e.g., non Java), and have the output displayed in you panel.  Is that right?

You would have to something like this:

  http://www.rgagnon.com/javadetails/java-0014.html

but capture the stdout, and have the results displayed in your panel.

If you also need to allow user input, that would be done in a similar fashion using stdin.

0
 
LVL 41

Expert Comment

by:HonorGod
ID: 36598574
Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

932 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

10 Experts available now in Live!

Get 1:1 Help Now