Java Reference
In-Depth Information
scene3d.switcher = new TextureLoader(switcher, this).getTexture();
try {
Dot = new java.net.URL(getCodeBase().toString() + “images/Plug02.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Dot = new TextureLoader(Dot, this).getTexture();
try {
Redplug = new java.net.URL(getCodeBase().toString() + “images/redplug.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Redplug = new TextureLoader(Redplug, this).getTexture();
try {
Greenplug = new java.net.URL(getCodeBase().toString() + “images/greenplug.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Greenplug = new TextureLoader(Greenplug, this).getTexture();
try {
Blueplug = new java.net.URL(getCodeBase().toString() + “images/blueplug.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Blueplug = new TextureLoader(Blueplug, this).getTexture();
try {
Yellowplug = new java.net.URL(getCodeBase().toString() + “images/yellowplug.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Yellowplug = new TextureLoader(Yellowplug, this).getTexture();
// --------------------------------------------------------------Pass
try {
brick = new java.net.URL(getCodeBase().toString() + “images/Wall.jpg”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.brick = new TextureLoader(brick, this).getTexture();
try {
floor = new java.net.URL(getCodeBase().toString() + “images/Floor.jpg”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.texfloor = new TextureLoader(floor, this).getTexture();
try {
Search WWH ::




Custom Search