Pop-up on 8900 leave artifacts on screen

I am building a custom dialog box to display information of a menu point item. The dialog box is built like an OK dialog box (modeled on the customized document dialogue HowTo) with an added field containing text formatted in italic font. The dialogue works perfectly on simulators I've tried using JDE 4.5 (Pearl 8130, etc.) and JDE 4.7 (Storm), but shows an artifact (shadow of the popup screen) on the screen when you use 4.6.1.23 with the Simulator to 8900 JDE.

So when debugging, I found that if I use graphics.setFont () in the routine of painting of the LabelField constructor, the question is not, however, the text field is not painted in the italic font desired. If I use this.setFont () instead, I get the police desired characteristics, but the artifact appears in the context menu.

I have attached the code example, with the graphics.setFont and this.setFont (commented).  The code creates a menu item (called the subject) and displays the context menu when the menu item is selected.

Any help is appreciated as I can not explain why different simulators are behave differently.

Ed

/** * Main Class */package com.myapp.testapp;

import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;import net.rim.device.api.system.*;

class TestApp extends UiApplication {

    private TestAppScreen mainScreen;

    public static void main(String[] args) {        TestApp theApp = new TestApp();        theApp.enterEventDispatcher();    }

    public TestApp() {        mainScreen = new TestAppScreen(0);        LabelField title = new LabelField("TestApp", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);        mainScreen.setTitle(title);        pushScreen(mainScreen);    }

    static class TestAppScreen extends MainScreen {        private MenuItem menuItem;

        public TestAppScreen ( long style ) {            super( style );  

            menuItem = new MenuItem( "About" , 100000001, 1000000001 ) {                public void run( ) {                    CustomDialog customDialog = new CustomDialog();                    customDialog.show();                }                  };        }

        protected void makeMenu( Menu menu, int instance ) {            super.makeMenu( menu, instance );            menu.add( menuItem );        }    }       

    static class CustomDialog extends Dialog {        Font italicFont = Font.getDefault().derive( Font.ITALIC, 14 );

        public CustomDialog() {           super(Dialog.D_OK, "TestApp", 1, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Manager.FOCUSABLE);

           LabelField _text = new LabelField( "Additional Description" , Field.USE_ALL_WIDTH | LabelField.HCENTER ) {                public void paint( Graphics graphics ) {                                    

                graphics.setColor( Color.BLACK );                this.setFont( italicFont );//                graphics.setFont( italicFont );                super.paint( graphics );                }            };            add(_text);        }

        public void paintBackground(Graphics graphics) {            graphics.setBackgroundColor( Color.RED );            graphics.clear();       }    

        public void paint( Graphics graphics) {            graphics.clear();            super.paint( graphics );        }            }}

Thanks, that did the trick. I inserted the portion of code updated below.

           LabelField _text = new LabelField( "Additional Description" , Field.USE_ALL_WIDTH | LabelField.HCENTER ) {                public void paint( Graphics graphics ) {                                                    graphics.setColor( Color.BLACK );                super.paint( graphics );                }            };            _text.setFont( italicFont );            add(_text);

Tags: BlackBerry Developers

Similar Questions

  • Artifacts strange screen with my 1 GB ATI Radeon HD 4850

    My (now 4 years old) configuration:

    HP Pavilion Elite HPE-170 t

    • Intel Core i7 - 860 quad-core processor [2.8 GHz, 1 MB L2 + 8 MB of cache N3 shared]
    • 8 GB DDR3 1333 MHz SDRAM
    • 1 TB hard drive 7200 RPM SATA 3 Gb/s
    • 1 GB ATI Radeon HD 4850 [2 DVI, HDMI and VGA adapters]
    • LightScribe SuperMulti DVD burner
    • Player 15-in-1 memory cards, 1 USB, 1394, audio
    • No TV Tuner
    • Creative Sound Blaster X - Fi Titanium

    From the other day, I get artifacts strange screen. Sometimes, I have horizontal lines, vertical bars sometimes, square pink sometimes strange checkerboard (which will sometimes disappear when I use my mouse wheel).

    I have updated all drivers started in safe mode, returned a few weeks on recovery - and a lot restarted. Sometimes mistakes have been fixed, sometimes not. I also cleaned all the dust from inside. Time here are almost the same everyday also.

    I guess the video card goes wrong, but I hope that there may be an easy fix, I forgot. If this isn't the case, I need recommendations for a new video card.

    Thank you!

    I received and installed a new video card, and the problem is now solved.

    See the thread below for the reolution:

    http://h30434.www3.HP.com/T5/desktop-hardware/new-video-card-for-HP-Pavillion-elite-HPE-170t/m-p/4023574#M82067

  • How can I disable these horribly annoying windows that pop up when I leave my mouse at rest quietly on a file name?

    How can I disable these horribly annoying windows that pop up when I leave my mouse at rest quietly on a file name?

    Try this:

    Open Explorer

    Click on "organize".

    Click on "folder and search options.

    Click [view] tab

    Scroll the list and uncheck "show pop-up description for folder and desktop icons.

    Click [OK]

    I hope that's enough what you want.

  • My java update keeps popping in my lower corner of the screen saying I need to update, but when I try, it says that the latest version is already installed

    My java update keeps popping in my lower corner of the screen. I'm often agree to update, but when I do, a message appears saying that the latest version is already installed. I'm afraid that this is not the real and my being do more harm than good to my computer.
    the following to be installed on the hard drive of my computer:

    jucheck.exe

    Oracle America, Inc..
    Original title: applications of continuous update, Yes and no...

    It's java updating / checking utility

  • How can I leave my desktop screen and go to the screen where I can click on the icons to go to the websites I want?

    How can I leave my desktop screen and go to the screen where I can click on the icons to go to the websites I want?

    Hello

    Please, move your cursor to the bottom left. You will see a small photo with the screen full of apps, then click on that and you will be taken to this screen,
    It will be useful.
    Josh.
  • Can we see if the participants leave the login screen?

    Hi all

    Acrobat Connect Pro has a way for the host to control if the participants leave the login screen? For example, if they are browsing on the internet rather than pay attention to the webinar. I know that the other Webinar platforms have this feature.

    Thank you

    Barb

    In my opinion, it's a feature of the rumor to connect 9, but I didn't hear or see anything whatsoever to confirm. I know that he has been asked that icon "by steps away" be applied automatically when a participant loses the focus.

  • -Pop-up windows illustrator, leaving shadows on the screen even outside the Illustrator

    Hello

    I've recently updated to Adobe Illustraor CC 2014 and there seems to be a new feature, causing problems. The pop-up character initiated by the entrenched top toolbar left a shadow on my screen, even outside the Illustrator. The only way to get rid of it is to restart my computer.

    It drives me crazy that I never had problems with Illustrator CC thanks for any help!

    screen shot.jpgscreen shot 2.jpgscreen shot 3.jpg

    Solved! AMD Radeon R9 Windows 10

    I have solved this for my machine anyway, so I hope this helps

    First of all, I worked through the process to eliminate the left on the shadows of the windows in the first place. I found that the shadows disappeared when:

    CTRL + Alt + Del > Task Manager > processes tab > (end all 'Hydra'... (AMD Hydravision) process - I had 2 of them)

    It is AMD Hydravision - (spx http://support.amd.com/en-us/kb-articles/Pages/HYDRAVISION-ForRADEONandMobileATIProducts.a ) AMD tool for multiple monitors. It is not very compatible with Adobe for some reason any...

    If you then disable in the settings of your graphics card it should stop the problem. I also disabled "GPU scaling" in the settings of the Radeon for good measure.

    Illustrator is now free of the lies of the shadow...

    T

  • How leave you full screen

    I accidentally went from my normal screen mode full screen, and can not find a way to leave. I'm constantly looking for the menu bar.

    TIA

    Press the escape (esc) key and move your cursor to the top of the screen, then click on the green button at the top left of the window.

  • How to block the pop-up at the bottom of the screen

    I have block pop-up and most is blocked. However, I can't figure out how to block pop ups that appear horizontally at the bottom of the screen

    Hi Deansdream,

    You can try using an addon like AdBlock Plus or No Script. To install an addon you must have to tools-> Add-ons-> get modules and searching for it.


    For more information about the modules look at this article:

    Use extensions to add features to Firefox

    Please report to us.

  • BlackBerry Smartphones ATT Curve 8900 -... broken screen trying to backup - stops the browser data cache

    How can I remove (saw it solved problem a precondition of the user)... when I do not see the screen (reason I had to replace the phone).  Just trying to save the old to new curve 8900.  Thank you.

    Photos should be on your microSD card.  Simply drag the map to the new device.  If you have pictures in the memory of the device (and not on the media card) they appear in "storage of content."

  • Dissolves leaving artifact with opacity on the clip mask.

    Using an opacity mask to lose the edge of the frame and black border.  BG is hidden.

    All my cross dissolve the beginning of transitions with a black pop that has the shape similar to the mask.

    Want talking heads to facilitate rather than pop.  Anyone else does?

    TX!

    Hello

    Yes - he had all day yesterday and today.  In my case, I was using a black slug and then to make a shape with the opacity mask tool to serve as backdrop for the text elements on the screen.  I have used this many times in my sequence for each caption - everyone I arrived to fade at the top and at the bottom of a cross dissolve.  Almost everyone "jumped" on the first frame of the fade (not melted down...) upwards  I would like to play with the calendar which would blow the preview rendering until he eventually made without the glitch... Painfully tedious, but I finally got a free calendar of these glitches...

    Paul

    I'm on CC 2015 (unfortunately...)

  • Silence and insert silence leave artifacts from noise

    Every time I have to silence a selection it leaves some sound waves in the silent space, usually bleeding in a little on each side of the audio not reduced to silence. Delete the selection, and then by adding the same amount of silence has worked as a workaround for me for a while, but even just insterting silence leads to the same loaded result of artifact now as well. I'm on a Mac, OS X 10.8.3 with hearing fully updated. I tried shift or option or anything to start to hold the hearing to read the preferences file, and it has not fixed. Not more than to reinstall audition. I would be very happy to help.

    Under preferences/data, you can disable or change the length of the crossfades are applied to the limits of Delete/Cut and Edit. Maybe one of them is set too long. If you disable these completely you suffer clicks if your cuts happen not zero pieces of passage of the wave. This is why they are included. So maybe just shorten them a little might give you a better result.

  • Drop bookmark icon disappeared. Using view > toolbars > customize to add, but it disappears as soon as I click on Done and leave the Customization screen.

    I opened Firefox, and all of a sudden my icon to bookmark on the right side of the screen which opens the menu drop-down disappeared. I keep trying to add it by going to view > toolbars > customize. It appears that in the Customization screen, but once I click done and close the window to customize the icon disappears again. How do I add back and he can stay once I click done?

    Just to clarify what cor - el said earlier, if the classic menu with the bookmarks menu bar, then the toolbar button that does the same thing becomes hidden. He hid before Firefox 23, only when it's on the Navigation toolbar, but now he seems to hide little matter which toolbar it is on.

    If you're in the bar of classic menu for two compact columns (orange Firefox button) menu, then button to the bookmarks toolbar reveals itself. But then if you want the full menu bar you have to press the ALT key, or press F10.

  • Blue and whit lock pop up in the middle of my screen

    Original title: Aero
    I have a blue and lock the Pentecost that opens and closes in the middle of my screen. How can I get rid of him?

    Hello

    1. have you made changes on the computer before this problem?
    2. which version of the Windows operating system is installed on your computer?
    3. What do you mean by "have a lock of blue and Pentecost which opens and closes in the middle of my screen"?
    4. when get you the blue and then the lock?

    I suggest you perform a clean boot and check if it helps.

    How to solve the problem by running the clean boot in Windows 7: http://support.microsoft.com/kb/929135
    Note: once you have completed troubleshooting, perform the steps from step 7: to reset the computer as usual.

    I suggest you to meet us with the screenshot, so that it will be much easier for us to understand what is the exact as scenario and help you to fix this problem.

    How i: post a screen shot on this forum?

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/how-do-i-post-a-screen-shot-on-this-forum/c86de820-C620-401c-A804-9f6337cd3053

  • How do you turn off administrative authentication on windows 7 starter edition, so that the pop - ups do not block the logon screen wallpaper to be defined?

    When I try to put a wallpaper of connection with the windows 7 edition program account screen whenever I chose a photo, a message came and he said in details, I had to turn off my administrative authorization.

    Hi Ruth163,

    Thanks for posting on Microsoft Windows 7 answers Forum!

    User Account Control (UAC) can help you to prevent your computer from unauthorized changes. It works by asking permission when a task requires administrative rights, such as installing software or changing settings affecting other users.
    We do not recommend disable user account control.
    If you turn it off, you must reactivate as soon as possible.

    Use the following procedure to change UAC settings.
    To perform this procedure, you must be logged on as a local administrator or provide the credentials of a member of the local Administrators group.
    To change UAC settings:
    1. click on start and then click Control Panel.
    2. in Control Panel, click user accounts.
    3. in the window user accounts, click user accounts.
    4. in the tasks window user accounts, click Enable user account control or disable.
    5. If user account control dialog box appears, confirm that the displayed action corresponds to what you want, and then click Yes.
    6. in the Security section of the Windows solution Center page, click on adjust UAC settings.
    7. on the user account control settings page:
    8. to turn off UAC, move the slider to never notify, and then click OK.

    9. to enable UAC or change levels of notification, move the cursor over the appropriate notification option, and then click OK.

    For more information about user account control, see the following documents:
    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-change-the-behavior-of-user-account-control-by-using-the-slider
    http://Windows.Microsoft.com/en-us/Windows7/what-is-user-account-control

    It will be useful.
     
    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum

Maybe you are looking for

  • Satellite Pro U400 - Web cam driver probem

    Hello Recently I bought the laptop Satellite Pro U400 series. Currently I am faced with a real problem with the webcam integrated. When I start my laptop, first it works and then after some time when trying to close and reopen it gives either of the

  • Safari crash after update 9.2.1

    Hello! I upgraded 9.2.1 this morning. Everything seemed fine until I started Safari. When I launch Safari and tap the search/URL bar, safari blocks. I have deleted all history and Web site data, restarted my iPhone, but that did not help. Any other s

  • System/Library/Extensions/CNQL1213_ClassicNotSeize.kext

    I get this message "the extension of the system" / System/Library/Extensions/CNQL1213_ClassicNotSeize.kext "has been successfully installed and can not be used.» "Please try to reinstall it, or contact the vendor of the product for an update. I can't

  • EliteBook 8540w: Upgrade SATA Elitebook 8540

    Hi all. I'm updating my laptop CD-ROM in 250 GB SSD drive and there is problem with R/W speed. Current SSDS must use SATA 6 Gbit/S to work at maximum speed. Is it possible to upgrade my SATA 3 Gb/s to SATA 6 Gbit/s? Thank you.

  • Can I change where my place 8 pro stores the images? How?

    I use a place 8 pro to take photos and videos. I would like to make them go directly to the memory card (drive D :), I limited space on the C: drive.  Can someone show me please how do I redirect the location to back up my images?