How to paint on screen consitently using a timer...

Hi all

I have a painting of the question on the screen using a timer. The timer updates my vairable (or 'against') regularly, but fails to attract the vaule consitently on-screen. In other words, when I try to 'draw' the new value of the counter to the screen, it only is not draw constantly. He, however, will draw it always when I press on and hold down a key or hold the trackball in a certain direction (because I use them in the application). I don't know why this is exactly the case. Maybe I need some sort of "listener". Thank you in advance for your help!

Here is a code of the timer...

public class MainTimerClass {}

public MainTimerClass (final chart graphics)
{
       
Super();
           
game_time = new Timer();
Countdown = new TimerTask() {}
               
public void run() {}

-TimeStop;
                       
String time_out = ' "+ timestop;

graphics.setColor (Color.WHITE);
graphics.fillRect (230, 5, 50, 30);
graphics.setColor (Color.DODGERBLUE);
graphics.setFont (myFont_18);
                       
graphics.drawText (time_out, 230,10);

}

};
           
           
game_time.scheduleAtFixedRate (count, 500, 1000);

}
       
}

Try the updateDisplay() call to the last line within the run of your MainTimerClass class method.

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • How to make a screen capture - using windows xp pro

    How can I create and send a screenshot of a web page using windows xp pro

    You can also use an extension to create a screenshot of the full page, including content that is hidden until you highlight the part.

    Some you can watch (there are more):

  • How to resize the screen display to use only half of the screen

    in order to write the information to a website in a MS word document, I want to put the site to display browser so the document MS word on the screen at the same time (each 1/2 of the screen (left and right view). How can I do this? I am technically challenged so tell me in the jargon of the primary school

    I can't test this on Windows 10, but...

    On Windows 7, if you hold down the keyboard Windows key, then press the right arrow key, the currently active window will change its form. By example, if the window is maximized it will change occupying half right side of the screen. Hold the Windows key and pressing the arrow key right to scroll to the right, left and restored/resizable. To maximize, use the up arrow key.

    I hope you can use this keyboard shortcut hidden to set each application to the half of the screen easily without having to manually extendable/retractable and move windows. And it's a cool thing that you can share with other people.

  • How to force the screen sharing to use Ethernet 2 port?

    Hello

    I have 3 MacPros connected in my studio. MP1 is the master and I use screen apart to see MP2 and MP3. Now, I bought a very quick switch to connect these 3 between them via the Ethernet Port 2 MP1 and at the same time have the MP1 connected to the internet and printers, servers and so on with 1 Port Ethernet. But this is not possible, because the screen sharing will prefer to use the port where the internet/router is connected.

    When ONLY Ethernet Port 2 is active, screen sharing using this port and it works perfectly, but when turn on again once, 1 Port Ethernet 2 remote Mac loses connection.

    Is there a way to force the screen sharing to use Port Ethernet 2?

    It would be useful:

    NC-port-number-on-Mac-OS-x http://superuser.com/questions/148095/How-to-change-the-default-Screen-Sharing-v

  • I have laptop computer, the use of Firefox is great, but I want to get search Goggle ridoff in the middle of the screen and use Bing or others with better rules of confidentiality? How change the search bar of glasses in the middle of the screen?

    I don't like political new goggle, which begins in March 2012.
    I don't want to see in the middle of my search bar of glasses display only one option. How to change it to any other intelligent research, such as the top of the screen, I use BING, but it's a bit like small space to see what I typed.
    TY

    Hi larafox,

    Copy this address: https://duckduckgo.com/

    Open Tools (Alt + T) > general, paste the address copied in the box next to Homepage:, click on the box (above) next of when Firefox starts: replace the show my home page option, and then click OK below.

    General Panel

  • By using only the keyboard, how can I create an email using Outlook Express, have the files of "painting" in the body of the email

    original title: only the keyboard

    By using only the keyboard, how can I create an email using Outlook Express, have the files of 'paint' in the body of the email, also registered another Web page?

    Hi r. Gull,.

    You can view using Outlook Express keyboard shortcuts, documented in:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/mail_hotkeys.mspx?mfr=true

    I hope this helps.

  • How to detach the screen from the keyboard, and how do I use the touch screen without stylus?

    I have a gateway M285 ta6 t2300 clocked at 1.6 ghz dual core 1 GB 40 GB combo windows 7 tablet laptop 2-1 d. I don't have a pen for the touchscreen, but because I bought it used... I would like to know if I can use the touch screen using my fingers or do I have to buy a pen and if so what kind? Also, I would like to know how to detach the screen from the keyboard.

    Hello

    I suggest that you go to the Gateway Web site and download a manual for the model that will show you how to use it.

    Gateway:

    http://us.gateway.com/GW/en/us/content/drivers-downloads

    See you soon.

  • How to calibrate the screens of Adobe products? For the most part, I'll use Illustrator and Photoshop.Can someone make a difference between the calibration and the Hardware calibration software using (Spider)? Thank you.

    How to calibrate the screens of Adobe products? I will mostly use Illustrator and Photoshop.Can make all the difference between calibration and the Hardware calibration software using (Spider)? Thank you.

    I use U2415 from Dell.

    I use the Spyder Pro 4. The process is quite simple - install the software, plug the Spyder and follow the steps listed in the program. I would recommend also, install the latest version of the software directly from the site of Datacolor instead to install from the disc supplied (probably outdated).

    Benjamin

  • How to create screen saver using the java bean

    Hi all

    can someone knows how to create screen saver using java beans?

    Thanks in advance.
    Sarah

    It is a strange requirement, but you can go

    A TIME-NEW-FORM-INSTANCE:

    DECLARE timer_id Timer;
     one_minute NUMBER(5) := 60000;
    BEGIN
     timer_id := CREATE_TIMER('chnage_color', one_minute, REPEAT);
    END; 
    

    WHEN-TIMER-EXPIRED:

    DECLARE
         RandomR NUMBER(10):=dbms_random.value(1,256);
         RandomG NUMBER(10):=dbms_random.value(1,256);
         RandomB NUMBER(10):=dbms_random.value(1,256);
    BEGIN
    
     SET_CANVAS_PROPERTY('CANVAS2',BACKGROUND_COLOR, 'R'||RandomR||'G'||RandomG||'B'||RandomB);
    END; 
    
  • How to set a component at the bottom of the screen without using setStatus()

    I created a custom horizontalFieldmanager and want to put it at the bottom of the main screen in my application. My custom horizontalFieldManager contains three fields of bitmap... help me please put it at the bottom of the screen without using the setstatus method.

    OKS... If it is finally... Thanks for the help

  • How to make a virtual machine using the full screen?

    I have a 19 '' screen.  In the web page of vm manager when I click on 'console' to get a separate window and maximize that I get a full screen, but the virtual machine does not fill my monitor as the native operating system.

    I am losing valuable real estate.

    Is there a way to fill the screen as the native operating system?  I tried to play with just about anything.  The virtual machine is in a small box, is full from top to bottom but a few inches on each side is black.

    If anyone knows it would be very useful.

    Guest operating system do you use? As said more top vmware tools must be installed for the proper functioning of MKS. Done also by pressing CTRLALTENTER your virtual machine puts your virtual machine mode full screen to use all your "real estate"?

  • How to keep my window 8 switching of some screens while using my finger mouse pad

    I just got a Toshiba Satellite laptop. It is not a touch screen. When I slide my finger on the mouse finger pad that he passes sometimes between windows and an e-mail application that I wish would go far and another screen. A few times while I move my finger around the time appears and a black bar to the right. I can't stand it and I want something that is like the old windows.

    I have not a touch screen then is possible to disable the makings to blow East?

    Cyrus salvation,

    The issue you mentioned in the description is a feature of Windows 8. Even if you don't have a touch screen, it works. If you don't want this feature, you can disable this feature. Follow the steps below.

    (a) press the Windows key + C key.

    (b) click settings. Click change PC settings.

    (c) click on general, pull the bar OFF option under the 'when I swipre on the Board front to back left, switch directly to my last app'.»»

    The black bar that you see everything by moving the mouse pointer is called bar charms. This is another feature of Windows 8. To learn more about it check out the link below.

    Tutorial Windows 8 and Windows RT

    http://Windows.Microsoft.com/en-in/Windows-8/charms

    Do not hesitate to write to us in case if you have any question. We will be happy to help you.

  • How to insert a screen shot in a Post

    How to insert a screen shot in a Post

    You must be registered and logged into the forum.

    These instructions assume that you know how to do a screen shot. (Use the tool capturesWindows, or if you do not have this press Fn + Prnt Scrn application then open Windows Paint and paste (Ctrl + V) inside, then "Save as" a jpeg or png file).

    1. when you make a post, you are either going to start a new thread or you are replying to someone.

    If you start a new thread, click on the button "new message" at the top of any page on the forum.

    If you are replying to a message in an existing thread, click "answer."

    2 to begin the insertion the screenshot, click on the button "Insert an Image". If you have difficulties to identify, compare the yellow Smiley face then go 7 buttons to the left.

    3. in the next screen

    1. Select "Computer" in the drop-down list, if the image is on your computer.

    2. click the "Browse" button and navigate to where you saved the screenshot. Click on the name of the file.

    3. wait a moment so that the file uploads - when he has finished you will see the words "Uploaded".

    4. click on the button "insert." [You don't need to modify the 'Dimensions'.] The image now appears in your post everywhere where the cursor was.

    4 you can use the same method to insert other images in addition to screenshots. You can change the apparent size of the image after it has been inserted in the message by clicking and dragging the handles.

    Please do not answer in this thread that is a FAQ.

    If you have any comments or questions, please start a new thread or shoot me a private message.

    Thanks, I appreciate it.

  • How can set resolution screen on firefox, I know zoom in and out, but I want to upgrade my browser to my upgrade zoom

    Hello
    How can set my screen resolution of firefox (I know zom in and outside zom, but when I restart my firefox it chanaged to perviose zoom level)

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • How to disable the screen white

    Since there is no screen saver (and I wish that it was a device that was soon included in an update) I use the wallpaper to scroll through a few photos I have, but the screen turns off after 5 minutes. How to disable that?

    using firefox 18.0.1 for conical ubuntu

    Thank you

    It is about 5 minutes
    that's what the program is set up for, but I heard there was a way to disable this feature

Maybe you are looking for

  • Previews are always created for the modified pictures.

    All of a sudden, after the last update, iCloud, sharing photos and iCloud photo library Photos on my Mac do not work properly. I've added 264 pictures of Photos on my Mac six hours ago, and these photos appear not in the Photos on my iPhone 5 and iPa

  • Buy Photosmart D7260 printer

    Please help, my D7260 has failed once more, the other in less than three years, this one was the change by one of your English enclosure less than two years ago because the original on a failed, you got a replacement one or a refurb I could buy or an

  • Remote Administration is NOT working at all - WAG200G

    Hi all I recently placed a WAG200G to my home DSL and everything works fine.  I do portforwarding for my apps and all agree, except that I can't get the remote management works on the internet.  I tried with the default ports 8080 and personalized (5

  • SW3 battery problems

    I went to bed with battery SW3 to 83% and woke up this morning six hours later to find my watch crappy battery fell to 2% in energy saving mode. Wear Android is not reliable to be used as an alarm clock. Luckily I woke up by myself, without the alarm

  • How to migrate code from one environment to another in the MFT 12 c

    Hi allHow to migrate code from one environment to another in the MFT 12 c.Thank you and best regards,Tilquin.