Comment on Tutorial - 'double buffering' Sample program in J2ME By Charles



Comment Added by : krishna mohan

Comment Added at : 2010-02-01 05:22:12

Comment on Tutorial : 'double buffering' Sample program in J2ME By Charles
int myColor = 0xFFFF00;
paint(Graphics graphics)
{
graphics.setColor(myColor);
graphics.fillrect(0,0,getWidth(),getHeight());
callTimer();
}
int i=0;
public void callTimer()
{
Thread t= new Thread();
t.sleep(500);//show initial paint screen for 1/2 sec.
myColor = i;
i++;
repaint();
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. me too got the same problem....
but m sure

View Tutorial          By: HEHE at 2008-11-19 01:49:04

2. hi sir i want to know source code of this program;
View Tutorial          By: rishabh at 2010-08-21 09:30:31

3. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

4. Hi Dear All

How to do strike-out in

View Tutorial          By: Sandeep Mehta at 2012-11-21 06:54:06

5. i am developing a video streaming PC server to j2m
View Tutorial          By: lama at 2010-04-17 01:27:27

6. good one
View Tutorial          By: thyagesh at 2011-12-06 05:06:27

7. not working on mozila firefox 3.1. I tested it.
View Tutorial          By: sushma at 2009-10-08 00:07:47

8. Thanks for the Topic. But there are many more comp
View Tutorial          By: Uditha Madumal at 2010-09-15 19:39:13

9. Hello , How could i Run java.comm on eclipse

View Tutorial          By: Fiars at 2011-04-11 04:53:45

10. very good for programing
View Tutorial          By: kiran at 2007-12-06 00:39:47