public Main_1()
{
super("Test");
Toolkit tk = Toolkit.getDefaultToolkit();
final Dimension d = tk.getScreenSize();
setUndecorated(true);
setSize(900,900);
setVisible(true);
Cursor cur = getToolkit().createCustomCursor(
new ImageIcon( "F:/Cursor.gif" ).getImage(),
new Point(0,5), "Cursor" );
setCursor( cur );
String fnm = "F:/Rayman/Level_1/World.txt";
MazeManager mm = new MazeManager(fnm);
BirdsEye be = new BirdsEye(mm);
WrapMaze3D w3d = new WrapMaze3D(mm, be );
Container c = getContentPane();
c.setLayout( new BoxLayout(c, BoxLayout.X_AXIS) );
c.add(w3d);
c.add( Box.createRigidArea( new Dimension(d.width,d.height)) );
Box vertBox = Box.createVerticalBox();
vertBox.add( Box.createRigidArea( new Dimension(d.width-100,d.height)) );
c.add(vertBox);
pack();
URL url = null;
try {
url = new URL("file:///F:/Rayman/Level_1/S.Loodp.1.wav");
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
AudioClip clip = Applet.newAudioClip(url);
clip.loop();
warte(10);
JButton b = new JButton("X"); b.setForeground(Color.red);b.setBackground(Color.black);
b.setBounds(d.width-50,0,50,50);
b.addActionListener( new ActionListener() {public void actionPerformed(ActionEvent evt) {b1ActionPerformed(evt);}private void b1ActionPerformed(ActionEvent evt) {setExtendedState(JFrame.ICONIFIED); }});
add(b);
}