Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

I would like to open a frame with in a frame.

Thread view: 
Richard Perreault - 25 Mar 2006 00:21 GMT
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 - 25 Mar 2006 00:46 GMT
>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 - 25 Mar 2006 01:14 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.