die überschrift sdagts... ich ahbs so versucht:
Doch im Frame stehen nur 2 Rote Fragezeicvhen, wie kann ich also ein verwendbares swf objekt in meinen Frame einfügen?
Code:
import javax.swing.*;
import java.awt.*;
public class NewGame
{
public static void main(String[] args)
{
NewFrame frame = new NewFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
class NewFrame extends JFrame
{
public NewFrame()
{
setTitle("Game");
setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
JLabel label = new JLabel("<html><object data='dragdrop.swf' type='application/x-shockwave-flash' width='350' height='350'></object></html>");
add(label);
}
public static final int DEFAULT_WIDTH = 355;
public static final int DEFAULT_HEIGHT = 370;
}
Doch im Frame stehen nur 2 Rote Fragezeicvhen, wie kann ich also ein verwendbares swf objekt in meinen Frame einfügen?