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



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. Sir. Please give an example which is small and und
View Tutorial          By: mogesie gedamu at 2011-12-19 12:55:33

2. Thanks. Well explanation..
View Tutorial          By: Ebi Divakar at 2011-07-26 04:31:30

3. Doesn't the getline() on line 14 read "once u
View Tutorial          By: poo at 2011-02-22 00:32:44

4. Unsigned nature of variables
View Tutorial          By: Ganesh Chowdhari at 2008-08-12 06:33:12

5. if u need simple definition then that are

View Tutorial          By: rizvaankhan at 2011-10-10 13:13:36

6. i want to do a program by using convertView with e
View Tutorial          By: Shahana Akter at 2014-09-11 07:34:43

7. I have loaded allthe 5 java files.But how to imple
View Tutorial          By: Bharat at 2010-11-01 23:28:14

8. Why use recursion in Java, even for Strings? The s
View Tutorial          By: Kristoffer L at 2012-11-21 01:51:36

9. i want to know the step by step process of vb.net
View Tutorial          By: moumita das at 2012-12-01 12:28:35

10. Hi,

i need a program to send sms wh

View Tutorial          By: Sindhuja at 2013-05-29 07:07:15