ok ich habs
und das applet
es war das image, ich vermute mal das direkte lese operationen auf die festplatte nicht erlaubt sind wegen moeglicher angriffe..
Code:
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.*;
public class Visual extends JFrame {
JLabel jlBackground;
Image biBild;;
public Visual (String title, Image img){
super(title);
//
Container frameContent;
//
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
biBild = img;
jlBackground = new JLabel(new ImageIcon(biBild));
// Frame Content initialisieren
frameContent = getContentPane();
frameContent.add(jlBackground);
}
}
Code:
mport java.awt.BorderLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JApplet;
import javax.swing.JButton;
/*
* Created on Jun 15, 2005
* test
*/
public class Applet extends JApplet implements ActionListener {
private Visual _Visuell;
//private Klang _Klang;
private JButton Start;
private Image img;
public void init() {
img = getImage(getDocumentBase(),
"p.png");
_Visuell = new Visual("test", img);
_Visuell.show();
}
}