正在加载图片...
import java applet applet; Import Java. awt., public class SimpleGraphicsIn Out extends Applet i Label prompt TextField input Label output public void initO prompt=new Label("enter a character please: " input=new Text Field(3) output=new Label( "); add(prompt) add(input) add(output), public boolean action( Event e, Object o i output set Text( you have entered character"+o to String) return true: }import java.applet.Applet; import java.awt.*; public class SimpleGraphicsInOut extends Applet { Label prompt; TextField input; Label output; public void init() { prompt=new Label("enter a character please:"); input=new TextField(3); output=new Label(" "); add(prompt); add(input); add(output);} public boolean action(Event e,Object o) { output.setText("you have entered character"+o.toString()); return true; }}
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有