I would like to open a frame with in a frame. I do not want to have seperate
class. Rather I would like to have one class with two frames. A little like
visual basic does.
>I would like to open a frame with in a frame. I do not want to have
>seperate class. Rather I would like to have one class with two frames. A
>little like visual basic does.
"class" and "frame" i.e. what gets displayed for a GUI have no real
relationship, you can have as many frames in a class as you like, you can
also have as many frames within frames displayed as your machine can handle,
can you be a bit more precise about what you want to do?
On Fri, 24 Mar 2006 18:21:02 -0500, "Richard Perreault"
<richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
someone who said :
>I would like to open a frame with in a frame. I do not want to have seperate
>class. Rather I would like to have one class with two frames. A little like
>visual basic does.
You would have either two JWindows inside the JFrame or perhaps two
JPanels. The JWindows could be either dependent objects, in inner
classes, static classes or top level classes and many or may not
extend the JWindow/JPanel.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Richard Perreault - 25 Mar 2006 01:48 GMT
I do not use Jframe or JWindows. I just want to use a common Frame
such as this snipplet would have to be with in another frame.
I'm not sure if this is the proper way to do it.
import java.awt.*;
// Class About_Frame
public class About_Frame extends Frame
{
final int MenuBarHeight = 0;
boolean fForm_Create;
// Component Declaration
public Label Label1;
public Label Label2;
public Button Button1;
// End of Component Declaration
With in this Frame
import java.io.*;
import java.util.*;
import java.awt.*;
import java.net.*;
import java.awt.event.*;
import java.lang.*;
// Class finalapp
public class finalapp extends Frame implements Runnable
{
String url = "";
String http = "";
//Constructor
public finalapp(String Url,String HTTP,String title)
{
> On Fri, 24 Mar 2006 18:21:02 -0500, "Richard Perreault"
> <richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
[quoted text clipped - 10 lines]
> classes, static classes or top level classes and many or may not
> extend the JWindow/JPanel.
Richard Perreault - 25 Mar 2006 02:40 GMT
I do not want to use JWindows or JFrame I just want to use a simple Frame.
Such as these snipplet codes.
import java.awt.*;
// Class About_Frame
public class About_Frame extends Frame
{
final int MenuBarHeight = 0;
boolean fForm_Create;
// Component Declaration
public Label Label1;
public Label Label2;
public Button Button1;
// End of Component Declaration
With in this snipplet code
import java.io.*;
import java.util.*;
import java.awt.*;
import java.net.*;
import java.awt.event.*;
import java.lang.*;
// Class finalapp
public class finalapp extends Frame implements Runnable
{
String url = "";
String http = "";
Thank you
> On Fri, 24 Mar 2006 18:21:02 -0500, "Richard Perreault"
> <richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
[quoted text clipped - 10 lines]
> classes, static classes or top level classes and many or may not
> extend the JWindow/JPanel.
Big Jim - 25 Mar 2006 14:08 GMT
>I do not want to use JWindows or JFrame I just want to use a simple Frame.
>Such as these snipplet codes.
[quoted text clipped - 44 lines]
>> classes, static classes or top level classes and many or may not
>> extend the JWindow/JPanel.
I still have no idea what you're really trying to do, could you give an
English description of what you're trying to do and what you want the end
result to be and look like?
Richard Perreault - 25 Mar 2006 17:22 GMT
I will try to explain once again. I basically want to have a pop-up window
apear in a frame class.
This pop-up window is a about_frame once clicked on the menu file and about
on the frame class.
Is this a little bit clearer now?
>>I do not want to use JWindows or JFrame I just want to use a simple Frame.
>>Such as these snipplet codes.
[quoted text clipped - 48 lines]
> English description of what you're trying to do and what you want the end
> result to be and look like?
armelnene@yahoo.com - 25 Mar 2006 17:45 GMT
I understand that you want to have a frame that will popup and display
something about your application or programmer. The easiest way to do
this is to use a JFrame with a JLayeredPAne and JInternalFrame. Using a
Frame class you can you a dialogBox to display your message on top of
your main frame. My advise will be to you to use a dialog box because
you can't add a frame to a frame because this is parent component. I
hope that helped
www.etapix.com
London Computer Consultant