U E D R , A S I H C RSS

Convert App Into Applet/진영


~cpp 

// NotHelloWorldApplet.java

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

class NotHelloWorldPanel extends JPanel
{
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		g.drawString("Not a Hello, World applet", 75, 100);
	}
}

public class NotHelloWorldApplet extends JApplet
{
	public void init()
	{
		Container contentPane = getContentPane();
		contentPane.add(new NotHelloWorldPanel());
	}
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:01
Processing time 0.0173 sec