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. Hi Jim, to get the code for this clock, right clic
View Tutorial          By: Rajan at 2008-04-11 08:25:03

2. error :

Object reference not set to

View Tutorial          By: Ramnath at 2011-05-30 04:01:32

3. I have modified this example a bit and I'm using a
View Tutorial          By: Lee Murray at 2010-11-02 03:41:56

4. nice tutorial
View Tutorial          By: Amit at 2010-04-16 04:48:52

5. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

6. clearly explained the pgm logic....
thnx...

View Tutorial          By: Akshaya at 2011-11-24 04:12:36

7. sir i want how to write record into file and readi
View Tutorial          By: himasekhar at 2013-05-25 10:38:31

8. Very Great thanks for the code
View Tutorial          By: Alvin Funelas at 2014-07-12 00:42:01

9. i am newly in java, i want to learn about this and
View Tutorial          By: punitha at 2012-07-21 06:16:53

10. Guys, txtWeb is back with their National Level Dev
View Tutorial          By: rahul.del at 2012-08-16 10:01:09