Java Reference
In-Depth Information
private java.net.URL D2 = null;
private java.net.URL D3 = null;
private java.net.URL D4 = null;
private java.net.URL D5 = null;
private java.net.URL D6 = null;
private java.net.URL D7 = null;
private java.net.URL D8 = null;
private java.net.URL D9 = null;
private java.net.URL C = null;
private java.net.URL OK = null;
private java.net.URL Yellowplug = null;
private java.net.URL Redplug = null;
private java.net.URL Blueplug = null;
private java.net.URL Greenplug = null;
private java.net.URL image = null;
private java.net.URL image1 = null;
private URL helpfile = null;
private java.net.URL cir_board = null;
// ----------------------------------------------------
private View view = null;
private SimpleUniverse u = null;
private Scene3D scene3d = null;
private static final int VIRTUAL_EYE = 2;
private OPanel panel;
d.3 InItIalIZatIon functIon for maIn applet
public void init()
{
setLayout(new BorderLayout());
Canvas3D c = new Canvas3D(SimpleUniverse.getPreferredConfiguration());
add(“Center”, c);
timerField timer = new timerField(4);
String path = getCodeBase().toString();
LoadPanel();
panel = new OPanel(image, image1, timer); //Loading the panel of the 2D part
add(“South”, panel);
panel.Forward.addActionListener(this);
LoadCir_Board();
scene3d = new Scene3D(cir_board);
//Loading the the 3D part
scene3d.setPanel(panel);//Loading the the 3D part
LoadTextured();
u = new SimpleUniverse(c);
BranchGroup scene = scene3d.createSceneGraph(u, c);
u.addBranchGraph(scene);
Search WWH ::




Custom Search