Java Reference
In-Depth Information
System.out.println(ex.getMessage());
System.exit(1);
}
}
d.7 defInIG usual functIon for keyboard and
mouse Inputs for maIn applet
public void actionPerformed(ActionEvent event)
{
/*
if (event.getSource()==panel.Forward)
{
try{
helpfile = new URL(getCodeBase().toString() + “vrosciexp1.html”);
} catch(java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
getAppletContext().showDocument(helpfile,”help”);
}
*/
}
d.8 loadInG pIctures for defInInG texture on
Instruments for maIn applet
public void LoadTextured()
{
// --------------------------------------------------------------Osci
try {
Ch1 = new java.net.URL(getCodeBase().toString() + “images/Ch1.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Ch1 = new TextureLoader(Ch1, this).getTexture();
try {
Ch2 = new java.net.URL(getCodeBase().toString() + “images/Ch2.gif”);
} catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
scene3d.Ch2 = new TextureLoader(Ch2, this).getTexture();
try {
Vposi = new java.net.URL(getCodeBase().toString() + “images/Vposi.gif”);
Search WWH ::




Custom Search