I copied the syntax exactly from a working example but get the following error:
init:
deps-jar:
Compiling 1 source file
Test.java:29: cannot find symbol
symbol : constructor Frame(Test)
location: class java.awt.Frame
Frame frame = new Frame(new Test());
Here is all the code up to that point:
import java.awt.BorderLayout;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.*;
import javax.media.j3d.*;
import javax.vecmath.*;
public class Test extends Frame
{
public VirtualUniverse myUniverse = new VirtualUniverse();
public Locale myLocale = new Locale(myUniverse);
public BranchGroup myBranchGroup = new BranchGroup();
public TransformGroup myTransformGroup = new TransformGroup();
public ViewPlatform myViewPlatform = new ViewPlatform();
public void main(String[] args)
{
Frame frame = new Frame(new Test());
2006-09-15
08:40:28
·
3 answers
·
asked by
madmarkuk2003
2
in
Computers & Internet
➔ Programming & Design