怎样运行java javac a.java然后java a 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.awt.*;import java.util.*;public class Watch extends javax.swing.JApplet { private Color butterscotch = new Color (255,204,102); private String lastTime = ""; public void init() { setBackground(Color.black); } public void paint(Graphics screen) { Graphics2D screen2D = (Graphics2D)screen; Font type =new Font("Monospaced", Font.BOLD,20); screen2D.setFont(type); GregorianCalendar day = new GregorianCalendar(); String time = day.getTime().toString(); screen2D.setColor(Color.black); screen2D.drawString(lastTime,10,20); screen2D.setColor(butterscotch); screen2D.drawString(time,10,20); try { Thread.sleep(1000); }catch (InterruptedException e ) { // do nothing } lastTime = time; repaint(); }} KnightTour 骑士遍历问题 关于java api.。。。。。。。。。。。。 问下,下面这段jdbc代码里“???“该怎么写? 字符数组排序问题 请哪位老师:把进行socket读,写时候可能出现的所有exception进行总结,分类,感谢! applet入门问题,帮忙看看! ÷÷÷÷÷÷=闹完了,向大家请教一个和JList有关的问题=÷÷÷÷÷÷ 请问在哪儿可以下载JDK1.4.0_02 ? 有谁做过这样功能的?!多重排序 哪里有weblogic下载及相关的配置? 求jBuild8 序列号 对c++比较熟悉,想再学一门java, 请提意见
import java.util.*;
public class Watch extends javax.swing.JApplet { private Color butterscotch = new Color (255,204,102);
private String lastTime = "";
public void init() {
setBackground(Color.black);
} public void paint(Graphics screen) {
Graphics2D screen2D = (Graphics2D)screen;
Font type =new Font("Monospaced", Font.BOLD,20);
screen2D.setFont(type);
GregorianCalendar day = new GregorianCalendar();
String time = day.getTime().toString();
screen2D.setColor(Color.black);
screen2D.drawString(lastTime,10,20);
screen2D.setColor(butterscotch);
screen2D.drawString(time,10,20);
try {
Thread.sleep(1000);
}catch (InterruptedException e ) {
// do nothing
}
lastTime = time;
repaint();
}
}