当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 利用Thread解决paint()和用户输入响应同时将进行的问题。
 

 

 ·think in java stream 经典    »显示摘要«
    摘要: import java.io.*;public class newiodemo {public static void main(string[] args) { try { // 1. reading input by lines: bufferedreader in = new bufferedreader( new filereader(args[0])); string s, s2 = ......
 ·annotations:hype or not?    »显示摘要«
    摘要: 3月23号,jcp发布了jsr 250: common annotations for the javatm platform early draft review(http://jcp.org/en/jsr/detail?id=250),引发了tss的一场规模不大不小的讨论(http://www.theserverside.com/news/thread.tss?thread_id=32833......


《Java 手机/PDA 程序设计入门》读书笔记8--LCDAUI低级API之 线程 时间控制

public class mycanvas extends canvas implements runnable{ int r=0; public mycanvas() {  thread t=new thread(this);  t.start(); } public void run() {  while(true)  {   r++;   if(r>10)    r=0;   repaint();  } } public void paint(graphics g) {  clear(g);  paintanimation(g,100,10,r); } protected void keypressed(int keycode) {  switch(getgameaction(keycode))  {   case canvas.up:    y=y-2;    break;   ……  } }} 【推荐阅读:一个Jsp初学者的学习过程(三)

利用thread解决paint()与用户输入响应同时将进行的问题.


...   下一页
    摘要: 作者:junsan jin日期:2005-03-25邮箱:junsan21@126.com ; junnef21@sohu.comjsdk5.0中新增了很多的特性,如泛型、增强的循环、改进的装、拆箱、静态引入等,大大增强了java语言的易用性。我现在正在做一个从com+(dcom)平台到j2ee平台移植的项目,中间有很多枚举类型的定义,以前做起来要引入第三方类库,或者自己写类库,或者干脆定义成静......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE