Home > Archive > Java Help > March 2006 > I would like to open a frame with in a frame.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
I would like to open a frame with in a frame.
|
|
| Richard Perreault 2006-03-24, 7:10 pm |
| 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.
| |
| Big Jim 2006-03-24, 7:10 pm |
|
"Richard Perreault" <richard_perreault@hotmail.com> wrote in message
news:A9%Uf.32111$S_5.525456@wagner.videotron.net...
>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?
| |
| Roedy Green 2006-03-24, 7:10 pm |
| 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.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
| |
| Richard Perreault 2006-03-24, 7:10 pm |
| 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)
{
"Roedy Green" <my_email_is_posted_on_my_website@munged.invalid> wrote in
message news:po29225ksijf5v5387slpuddl4u2an30h7@
4ax.com...
> On Fri, 24 Mar 2006 18:21:02 -0500, "Richard Perreault"
> <richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
> someone who said :
>
>
> 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.
> --
> Canadian Mind Products, Roedy Green.
> http://mindprod.com Java custom programming, consulting and coaching.
| |
| Richard Perreault 2006-03-24, 10:02 pm |
| 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
"Roedy Green" <my_email_is_posted_on_my_website@munged.invalid> wrote in
message news:po29225ksijf5v5387slpuddl4u2an30h7@
4ax.com...
> On Fri, 24 Mar 2006 18:21:02 -0500, "Richard Perreault"
> <richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
> someone who said :
>
>
> 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.
> --
> Canadian Mind Products, Roedy Green.
> http://mindprod.com Java custom programming, consulting and coaching.
| |
| Big Jim 2006-03-25, 8:02 am |
|
"Richard Perreault" <richard_perreault@hotmail.com> wrote in message
news:gc1Vf.34414$S_5.594714@wagner.videotron.net...
>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
>
> "Roedy Green" <my_email_is_posted_on_my_website@munged.invalid> wrote in
> message news:po29225ksijf5v5387slpuddl4u2an30h7@
4ax.com...
>
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 2006-03-25, 10:02 pm |
| 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?
"Big Jim" <noone@nowhere.com> wrote in message
news:hhbVf.17510$814.14496@newsfe5-win.ntli.net...
>
> "Richard Perreault" <richard_perreault@hotmail.com> wrote in message
> news:gc1Vf.34414$S_5.594714@wagner.videotron.net...
> 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?
>
| |
| armelnene@yahoo.com 2006-03-25, 10:02 pm |
| 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
|
|
|
|
|