首先我們先從java下手
import java.awt.*; import java.applet.*; import javax.swing.*; import java.io.*; public class tester1 extends Applet { public int hello( int i ) { javax.swing.JOptionPane.showMessageDialog(null, "Hello World!\n i = " + i + "."); Graphics g = getGraphics(); g.drawString("Hello World!\n", 10, 10); return i+1; } }
沒有留言:
張貼留言