// get data
adt obj = (adt)of.obj;
// 3D Init
GLCanvas glScene = null;
Tutorial2 glEvents = null;
JPanel r = new JPanel(new BorderLayout());
r.add(new JLabel ("To be written."));
// handle events
glScene = new GLCanvas();
for(Plugin p : pp) {
if(p.getClass().toString().endsWith("mpqFileRequest"))
glEvents = new Tutorial2(obj, fm, p);
}
glScene.addGLEventListener(glEvents);
r.addKeyListener(glEvents);
r.addMouseListener(glEvents);
glScene.addKeyListener(glEvents);
glScene.addMouseListener(glEvents);
r.add(glScene, BorderLayout.CENTER);
return r;
}