Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > Scene inside of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 750 of 817
Post > Topic >>

Scene inside of JFrame

by Misterysword@[EMAIL PROTECTED] Apr 19, 2007 at 08:30 AM

Hi all!! I have got a JAVA3D application that I show it in a JFrame.
So, everything is correct.

--->This schem is correct:

class program3D extends JFrame{

public program3D(){   }

public BranchGroup createSceneGraph(){  }

public static void main ( String arg[] )
{
 new program3D();
}
}

_______________________________________________________________________
The problem is when I want to draw the scene inside of JPanel, and
then, this JPanel put inside of JFrame.

--->THE PROBLEM:The scene is not seen !!!

class program3D extends JPanel{

public program3D(){   }

public BranchGroup createSceneGraph(){  }

public static void main ( String arg[] )
{
     JFrame window=new JFrame("Main");
     window.setLayout( new BorderLayout() );
     window.getContentPane().add( new program3D(),
BorderLayout.CENTER); //PROBLEM

     window.setSize(500,500);
     window.setVisible(true);
}
}

Regards!




 5 Posts in Topic:
Scene inside of JFrame
Misterysword@[EMAIL PROTE  2007-04-19 08:30:31 
Re: Scene inside of JFrame
=?iso-8859-1?q?In=E1cio_F  2007-04-20 03:29:42 
Re: Scene inside of JFrame
Misterysword@[EMAIL PROTE  2007-04-21 08:56:50 
Re: Scene inside of JFrame
Alexander Gran <delete  2007-04-22 00:28:05 
Re: Scene inside of JFrame
Misterysword@[EMAIL PROTE  2007-04-24 04:05:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun May 11 23:07:20 CDT 2008.