File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes applet in frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "applet in frame" Watch "applet in frame" New topic
Author

applet in frame

Tapan Prajapati
Greenhorn

Joined: Mar 05, 2010
Posts: 27
i want to use applet in background of frame in swing . is it possible how?
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Tapan Prajapati wrote:i want to use applet in background of frame in swing . is it possible how?


This is similar to your other post and is almost a cross-post, a no-no for these forums.

There are several things that can be done but first of all, I'd recommend that your GUI classes not be geared towards creating JApplets but rather JPanels, and then you can decide if you want to place the JPanel into a JApplet's contentPane to be used as an applet, or in a JFrame's contentPane, to be used as a stand-alone program. A JPanel can also be dropped into a JTabbedPane with ease.

But having said this, a JApplet extends Component and it itself can be dropped into a JFrame or JTabbedPane, .... but I like my first suggestion better.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
and almost a duplicate of the post the other day

http://www.coderanch.com/t/493048/Swing-AWT-SWT-JFace/java/Applet

why don't you concentrate on a single topic, and start 'replying' so we can see what problems you have.
If it is that you have absolutely no idea, pay someone to do it for you.
Tapan Prajapati
Greenhorn

Joined: Mar 05, 2010
Posts: 27
but i cant able to get your answer i had also extended it with jApplet but how can i insert my applet into this jtabbedpane give me example or method of it soon.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Tapan Prajapati wrote:but i cant able to get your answer i had also extended it with jApplet but how can i insert my applet into this jtabbedpane give me example or method of it soon.


Generally the drill here is that first you show your non-working code to us describing in as much detail as necessary what it does and what it is supposed to be doing but doesn't. Then we try to work with you and your code to try to guide you towards a solution.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19755
    
  20

pete stein wrote:
Tapan Prajapati wrote:but i cant able to get your answer i had also extended it with jApplet but how can i insert my applet into this jtabbedpane give me example or method of it soon.

Generally the drill here is that first you show your non-working code to us describing in as much detail as necessary what it does and what it is supposed to be doing but doesn't.

And with "as much detail as necessary", Pete means an SSCCE. We do not want hundreds of lines of code to spit through.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet in frame