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



Ask a Question

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. good
View Tutorial          By: gummalla subbarao at 2011-03-09 01:24:58

2. A very good example to kickstart my preparation on
View Tutorial          By: Javaenthu at 2013-07-28 06:35:44

3. hope this may help u

class product<

View Tutorial          By: princess at 2011-11-30 12:11:57

4. i cannot add attachment
its saying
&

View Tutorial          By: Rintu Das at 2012-05-04 18:07:48

5. its nice.. thank you so much.........
View Tutorial          By: rozen at 2010-04-14 11:21:07

6. i am trying to run the above example in eclipse bu
View Tutorial          By: Prathyusha at 2015-03-10 11:01:06

7. Thanks for your nice article.I learned a lot
View Tutorial          By: Mahyar at 2012-08-12 12:09:36

8. i get this error too but i dont start the mysql se
View Tutorial          By: Head at 2009-02-27 00:47:43

9. very nice for javascript beginers..
View Tutorial          By: Nilesh at 2012-08-29 10:19:13

10. It's very very useful for me. thank you.
View Tutorial          By: thirumalai at 2009-01-28 03:25:25