wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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 ?
 
jQuery in Action, 2nd edition
 
subject: How to call a class that extends a frame from a panel ?
 
Similar Threads
Prompting the user whether to close the JFrame
How to catch number errors?
Help-needed
Graphics Object & Graphics Context
Jxam TextArea scrollbars appear when necessary?