Interior canvas full screen white screen returns

The following code gives me a white screen:

class gameScreen extends FullScreen {

  Graphics graphics;  rimSprite hero;

  public gameScreen() {    super(Screen.USE_ALL_HEIGHT | Screen.USE_ALL_WIDTH);    System.out.println(">>>>> Gamescreen loading...");    graphics = getGraphics();    graphics.setBackgroundColor(Color.BLUE);    graphics.drawText("test", 40, 40);    try {      hero = new rimSprite("img/player.gif", 1, 20, 20, 20);      hero.setFrame(3);      hero.paint(graphics);    } catch (Exception e) {      System.out.println(">>>>> Message was: " + e.getMessage());    }    paint(graphics);    System.out.println(">>>>> Gamescreen loaded.");  }}

And I don't see why... I try to paint the screen but somehow, I get a white screen.

I've found a few discussions with the same problem as mine... enlighten me please!

Are you trying to push a screen on which you can paint the bitmap images and other things.

If Yes, then let me give you an example how you can do it.

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.FullScreen;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.system.Display;

class Main extends UiApplication
{
    public  Main()
    {
        super();
        PaintScreen paintScreen = new PaintScreen();
        pushScreen(paintScreen);
    }
    public static void main(String[] args)
    {
        Main main  = new Main();
        main.enterEventDispatcher();
    }

    public class PaintScreen extends FullScreen
    {
        public PaintScreen()
        {
            super();
            paintSomething();
        }

        public void paintSomething()
        {
            UiApplication.getUiApplication().invokeLater(new Runnable()
            {
                public void run()
                {
                    draw();

                }//end of run()
            });//end of runnable()
        }

        public void draw()
        {
            Graphics graphics = this.getGraphics();
            int w = Display.getWidth();
            int h = Display.getHeight();

            graphics.setColor(0x00000000);
            graphics.fillRect(0, 0, w/2, h/2);

            graphics.setColor(0x00FF0000);
            graphics.fillRect(w/2, 0, w/2, h/2);

            graphics.setColor(0x0000FF00);
            graphics.fillRect(0, h/2, w/2, h/2);

            graphics.setColor(0x000000FF);
            graphics.fillRect(w/2, h/2, w/2, h/2);

            this.updateDisplay();
        }
        public boolean onClose()
        {
            this.close();
            return true;
        }
    }
} 

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • vSphere Client VM console only interactive when it is full screen

    When I display the tab console on a virtual computer, I can see it correctly and the display of updates as expected, but I can't interact with it with the mouse or the keyboard.

    CTRL-Alt-Enter and Ctrl-Alt-Del on the keyboard has no effect.

    Comments > Send Ctrl-Alt-Del works properly even if I can not connect the keyboard or the mouse still does not work.

    Comments > enter full screen works and I can then use the virtual machine full screen as expected. Pressing Ctrl-Alt when full-screen returns to the console in the client without intervention of the user possible as before.

    The same is seen if I break into the console on the client.

    It worked once before, when someone else connected to my VM so we were both connected, then I could interact with the virtual machine in the console of the customer.

    I use version 4.1.0 for ESXi and customer. I installed the latest VMWare tools. The only warning I get started is that there is not enough video RAM to use the maximum resolution (2560 x 1600), but I don't want this resolution.

    Any ideas? TIA,

    -Frink

    If the colleague you can access with no luck problem, there may be question of your client PC. What happened to reinstall your client vsphere? or download the thinapp vsphere client http://blogs.vmware.com/thinapp/2011/03/thinapped-vsphere-client-fling-new-download-available.html

  • white screen just after that I have to switch full screen?

    Wite screen just after I toggle icon full screen

    This has happened

    Don't know how many times

    Same problem now in all browsers (AB and Chrome)
    After you click full screen in the small screen or F11 continuous noise, as appropriate, the screen turns white. After 11 F or Esc to return to the small screen.

  • I get a white screen on facebook games when switching to full screen mode in youtube videos

    When I go on facebook and play games like farville or cityville I would use mode full-screen, but every time I have try to go white I can here the sound but I have to type f11 to return to the normall screen mode so I can see. Can any one give me an easy solution, I'm using IE8 and I tried other browsers with the same result. I have windows xp with all updates of service they have my adobe is updated also and so is my java.

    Hi adamsioux1,

    · What is the number and the model of the computer?

    Try the methods and check the results below:

    Method 1:

    Try changing the screen resolution something like 1024 x 768, then check if the problem persists. You can check the link for the procedure below: to change your screen resolution: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/display_change_screen_resolution.mspx?mfr=true

    Method 2:

    Install the drivers of the last update of the device screen and check the result.

    a. click on start

    b. click Run, in the Open box type devmgmt.msc

    c. find the display driver

    d. double-click the type of device

    e. right click on the device driver specific, you want to update or change.

    f. click on update driver to open the Hardware Update Wizard. Follow the instructions in the wizard

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When trying to view videos full screen, the screen turns white!

    When I try to watch videos, I love to watch full-screen, but when I press the icon full screen the screen turns white. I have to press the ESC key to return to normal. What will fix this?

    i right click on video > select settings > remove the check mark from material

    Acceleration.
     
    II] download and install: -.
    Adobe flash player: -.
     
    III] update your graphics card driver on the website of the manufacturer of the graphics card.
  • After the update Firefox 25 tabs "will return" 2 to 3 pages, when switching tab or exit full-screen.

    It happens more frequently when you exit the full screen of a video. for example, youtube, dailymotion, nbc.com - the entire site with embedded video players.

    When you exit the full screen, the page goes back 2-3 pages. And no, I'm not clicking on videos related everything fullscreen all the time: that's all by launching full-screen and full-screen, all on the same page of output video.

    This happens less frequently during the passage of the tabs - but if I switch to another tab, then return, the first tab will load the page that I've been there are 2 pages.

    More information: when this happens, the "arrow" is grayed out and the page that loads is on the list of the "arrow" twice - lower in the list where it should be, as well as the top of the list, as if I had clicked on a link to this page.

    All this started immediately after restart Firefox after updating to version 25 - no other changes have been made to my computer.

    The problems were with HTML5

    Subject: config > media.webm.enabled > false

    Problem solved! BY ME!

    (Attached picture is a screen CAP that shows up if HTML5 is disabled. I had noticed before the update of Firefox, but it was never enough to the top of long to actually read, and I didn't really like. When she returned immediately after the deactivation of HTML5, I did a screen CAP to see what has increased. Oh I see... something worked, so some fool decided to fix it... Genius!)

  • How to return to the default screen display after clicking on view/full screen?

    When I click on view/full screen in the menu bar of Firefox, I lose the FF main Menu bar. When I hit the ESC key, the rest of the screen locked in view full screen. So, I have to restart my computer to return to the default FF menu and display mode.

    Why the esc key does not work how it works when I'm in mode videos full screen?

    Point the mouse at the top of the screen should show a toolbar. On the right there is a button to return to the normal display

  • 4.0 using I can go to a mut "view full screen", that I can't return to a normal view. ESC does nothing. Any ideas?

    4.0 using I can go to a mut "view full screen", that I can't return to a normal view. ESC does nothing. Any ideas?

    There are two ways to exit full screen mode. Press the F11 key on your keyboard, which must immediately exit fullscreen. The other is to move your mouse to the top of your monitor, which is expected to display navigation bar of Firefox. You can then click the button restore, which should be at the top right.

    Hope that helps.

  • Monitor is white empty when you try to view the video full screen on youtube.

    I have a HP w2207h screen flat monitor. When I try to view online, such as YouTube videos, full screen, the screen goes to a blank white screen. Sound works, no picture. However, when I view the same video from YouTube in Internet explore everything works fine. Is there a setting that I need to solve this problem? Would appreciate your help!

    Try disabling hardware acceleration in Flash Player.

    See the videos in Flash will not play in full screen

    Blink the window "display settings":

  • When I try to go full screen-all while watching a video or the program, the screen becomes all white

    While watching a video and I click on full screen my screen turns white - I can still hear the program, but no image... Please make suggestions in terms that even a 3 years could understand - this is my level of ability of the computer... Thank you.. .JB

    This has happened

    Each time Firefox opened

    == looking extreme Insider glennbeck about 10 months ago

  • Prospective Golf Sports simulation mode full-screen on one monitor, but when it runs the mouse would not return to the other monitor.

    original title: two monitors, mouse stuck
    I'm under Simulation of Golf Sports prospective mode full-screen on one monitor, but when it runs the mouse will not return to the other monitor. It seems that the mouse is not bound by the program, but I want to be able to use another application on the other monitor. Any suggestions?

    Hello

     
    What operating system is installed on the computer?
     
    Method 1: You can press the Windows key on the keyboard that appears in the start window and your mouse will automatically gets shifted to the main monitor.
     
    Method 2:
    (a) click Start, type change the mouse settings.
    (b) go to the pointer Options tab of
    (c) uncheck Display pointer trails
    (d) click apply and OK.
     
    Method 3: See if he has all the parameters of the Simulation of Golf to release the mouse button.
     
    If the methods above do not help, you can contact the Golf Simulation for additional help.
     
  • When I try to go full screen while watching a video, I get a white screen

    While watching a video (IE, the youtube video), I press the full screen in the right corner, but all I get is a white screen.

    Hi RalphDuran,

    ·         You use Internet Explorer?

    ·         If Yes, then which version of IE are you using?

    ·         How long have you been faced with this problem?

    ·         Did you do changes on the computer before the show?

    ·         What is the number and the model of the computer?

    ·         The problem only occurs with YouTube or any other video as well?

    Try the methods and check the results below:

    Method 1: Try changing the screen resolution something like 1024 x 768, then check if the problem persists. You can check the link for the steps below:

    To change your screen resolution:

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

    Method 2: Install the drivers of the last update of the device screen and check the result.

    a. click on Start

    b. click run, in the Open box type devmgmt.msc

    c. find display driver

    d. double-click the type of device

    e. right click on the device driver specific you want to update or change.

    f. click put updated driver to open the Hardware Update Wizard. Follow the instructions in the wizard

    Method 2: You can also check if uninstall then reinstall adobe flash player allows.

    For more information, please see the article.

    How to change or remove a program in Windows XP

    http://support.Microsoft.com/kb/307895

    Hope this information helps.

  • Video full screen gives a blank white screen.

    Original title: Video full screen mode issues.

    I have a Dell desk top that is running Windows XP Home Edition. Every time I watch a TV show or a movie online and try to open it using the full screen, I always get audio, but you will get a blank white screen.  I can display mode small screen, but the mode full screen does not seem to work.  Any ideas on how to solve this problem?  Thank you.

    Thanks, but I already fixed it.  The browser is Internet Explorer 8.  No I did not any Chang recently except to IE 8.

    I was using Flash Player to view the website of lifetime television show.  I started to play the show, and while he was in NON-plein screen mode, I click with the button right on the screen, and click on properties, then I unchecked the box that appeared (there was only one box, and I don't remember what she said next to the box).

    I clicked on close or OK and then clicked on icon mode full screen, and it worked.

    Thanks for your help, if.

  • Why my computer displays a white screen when I try to see a game mode full screen?

    whenever I try to view a game in full screen, my screen becomes white

    Salvation of the knee-c,

    1. Did you the latest changes on the computer?
    2. Are you experiencing a similar problem with several games on the computer?
    3. When was the last time it was working fine?
    4. You receive an error message?
    5. You have security software installed on the computer?

    Method 1

    I suggest that reduce you the hardware acceleration on your computer and check if it helps.

    (a) click Start, click Run, type desk.cpl, and then click OK.

    (b) click on the settings tab and then click Advanced.

    (c) in the performance tab or on the Troubleshooting tab, and then move the Hardware Acceleration slider to the left.

    (d) click OKand then click close.

    (e) If you are prompted to restart your computer, click Yes.

     Method 2

    If the previous step fails then I would suggest that you manually download and install the updated on the computer graphics card drivers by visiting the adapter or the computer manufacturer's website and check, if it helps.

    How to manage devices in Windows XP

    http://support.Microsoft.com/kb/283658

  • When you try to click on full screen screen goes white Uni

    When I click to watch FULL screen, it goes white Uni?

    It was easy to do and big video site Iwent and WAA-Laaa! Problem fixxed. THANK YOU TO WHO EVER IT'S HELPED ME TO > & GOD BLESS YOU & FAMILY. I wish nothing less great. SINCERELY OF JERRY BARLOW

Maybe you are looking for

  • Cannot be used after I installed Firefox 38 Netflix. Always ask to install Silverlight?

    I was under the impression that we can now play videos Netflix without using Silverlight, after the new update. I did not understand correctly? Netflix is always asking me to install Silverlight. I uninstalled it after reading the changes.

  • Podcasts will not subscribe

    For some reason any now all my podcast will subscribe on iTunes, no matter how many times I click on the button "subscribe". On my iPhone 6s they subscribe. You can see the screenshots are the iPhone and the Mac for the same Podcast. I've had this pr

  • Z400 and upgrade BIOS

    I recently bought a Z400 He's going to used as part of a large system of record I was wondering, should I update the BIOS? is there a update/date/version specific that I should look for? I was wondering just in case there are bugs or something that h

  • How to perform the reset operation after an operation?

    Hello I want to know the reset function. in my system, I'm dealing with a different instrument like power, GPS, GSM... in my system, I have 2 article to article 1, I put only ON and OFF of my devices and operation to the second section so that I have

  • Bulgarian phonetic keyboard layout

    Hello Maybe this question was asked before, but as I wasn't able to find any useful information, I will ask the question once more. Everyone who uses the phonetic BG keyb. put in page noticed that the built-in Vista BG Phon keyb... page layout is dif