aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to call a class that extends a frame from a panel ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to call a class that extends a frame from a panel ?" Watch "How to call a class that extends a frame from a panel ?" New topic
Author

How to call a class that extends a frame from a panel ?

Shital Shisode
Greenhorn

Joined: Nov 15, 2001
Posts: 7
How to call a class that extends a frame from a panel ?
I am trying to create an application say "Videoshow"
Videoshow has a panel which in turn consists of 2 components : 1]a textarea( to show the contents of a page) and 2] a mediaclip(to show the video).
Now I have an application "MediaApplication"(to show the videoclip) which extends Frame (Code from Java 2 Unleashed, Chap 21). I want to show this MediaApplication in Component 2 of the above panel. But when I do this, I only see the MediaApplication frame instead of the whole SlideShow.
I want to do something likethis.
VideoShow :
|---------------------------------|-------------------|
| |
| (Comp 1) | (Comp 2)
| TEXTAREA | Video Clip
| |(MediaApp entends Frame)
|---------------------------------|-------------------|
What is the best way to achieve this ? Also which component can I use to show the videoclip ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call a class that extends a frame from a panel ?