Paint one of the field in the main screen

Hi all

I have a main screen, which is the custom view title bar and custom a tollbar.

After that, I'm Manager of vertical box, I added a listfield.

I want to update the listfield with new data, but I don't want to change anything on the screen except listfield.

How can I do this

Help, please

Create a public method inside the class and inside the method:

a. the updated with new data vector

b. call invalidate().

Now when you need to update the list just call this method.

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • Update of the main screen to a background thread

    Hi guys im trying to update the main screen from a background thread. in this case I'm using a 2 static pictures. Once I click on a butotn on the popupScreen when the application is loaded, it will update the image on the main screen.

    I wrote a small excerpt for it and can you please give me some help with this. because when I've debugged and one of the developers helped me thereby to discover that the screen im trying to update is not the active screen.  Please have alook please.ive extract have 3 classes here

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    SerializableAttribute public class MyApp extends UiApplication
    {

    Public Shared Sub main (String [] args)
    {
    Create a new instance of the application and make the currently
    who runs the thread of the application of the event dispatch thread.
    MyApp PAP = new MyApp();
    theApp.enterEventDispatcher ();
    }
        
    /**
    * Creates a new object MyApp
    */
    public MyApp()
    {
    Push a screen onto the stack in the user interface for rendering.
    pushScreen (new MyScreen());
    final Pinpopup pp = new Pinpopup();

    UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    UiApplication.getUiApplication () .pushModalScreen (pp);
    }
    });
    }
    }
    ////////////////////////////////////////////////////////////////////////////////////////

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    public Bitmap bmp image;
    public BitmapField bmpField;
    public ButtonField btnDisplay;
    public ImageThread imgThread;
            
    public MyScreen()
    {
            
    Set the displayed title of the screen
    setTitle ("MyTitle");
    BMP = Bitmap.getBitmapResource ("image.png");
    btnDisplay = new ButtonField ("Display");
    bmpField = new BitmapField (bmp);

    btnDisplay.setChangeListener (new FieldChangeListener() {}
                
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
                    
    if(Field == btnDisplay)
    {
    BMP = Bitmap.getBitmapResource ("image1.png");
    bmpField.setBitmap (bmp);
    signInButtonClicked ("07760926037", "1234");
    LaunchImageThread();
                        
    }
    }
    });
            
    Add (bmpField);
    Add (btnDisplay);
            
    }
        
        
    Public Sub LaunchImageThread()
    {
    imgThread = new ImageThread (this);
    System.out.println ("THIS screen:" + this.getScreen ()); I realized that the im screen update is not active but its strange I don't create any other refrence so
    New Thread (imgThread) m:System.NET.HttpListener.start ();
    }
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// POPUPSCREEN CLASS
    class Pinpopup extends PopupScreen //implements FieldChangeListener
    {
    private ButtonField btnOk;
        
    Pinpopup()
    {
            
    Super (new HorizontalFieldManager());

    btnOk = new ButtonField ("Sign In");

    btnOk.setChangeListener (new FieldChangeListener() {}

    ' Public Sub fieldChanged (field field, int context)
    {
    TODO self-generating method stub
    Try
    {
    if(Field == btnOK)
    {
    Close();
    MyScreen ms = new MyScreen();
    Mrs. LaunchImageThread();
    }
    } catch (IllegalArgumentException e) {}
    TODO: handle exception
    System.out.println ("Exception Popup all in signingIn" + e.getMessage ());
    }
    }
    });
            
    Manager fieldManagerContext = new Manager (USE_ALL_WIDTH)
    {
    ' public void sublayout (int width, int height) {}

    int xPos = 10;
    int ypos = 40;

    Field = getField (0);
    layoutChild (field, 280, 50);
    setPositionChild (field, xpos ypos + 100 + 165);

    setPosition (300, 300);
    setExtent (350, 225);
    }
    };
            
    fieldManagerContext.add (btnOk);
    Add (fieldManagerContext);
    }
    }

    /////////////////////////////////////////////////////////////////////////////////////////////////////

    / public class ImageThread implements Runnable
    {
    private MyScreen parent;
        
    public ImageThread (MyScreen myScreen)
    {
    parent = myScreen;
    }

    public void run()
    {
    Try
    {
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
                    
    public void run() {}
    TODO self-generating method stub
    System.out.println ("active screen:" + UiApplication.getUiApplication () .getActiveScreen ());
    System.out.println ("active screen:" + parent.getScreen ());
    parent.bmp = Bitmap.getBitmapResource ("image1.png");
    parent.bmpField.setBitmap (parent.bmp);
                        
    }
    });
    }
    catch (Exception ex)
    {
    System.out.println ("Exception in Thread:" + ex.getMessage ());
    }
    }
    }

    was soon thanks

    I suspect that this is your problem:

    MyScreen ms = new MyScreen();
    Mrs. LaunchImageThread();

    I suspect that if you did as I suggested on the other Thread and put a breakpoint in the constructor of MyScreen, you'd have foiund, this creates a second instance.

    I hope that you can take it from here.

  • Apple Watch is a day of rest on the main screen

    I noticed this morning that my Apple Watch is one day behind the main screen. The calendar is correct, however. Is there any solution for this?

    Hello

    If you have not already done so, it can help to upgrade your iPhone and Apple Watch to the latest version of the software, from your iPhone:

    Otherwise, the following steps may help:

  • 'Reply' / 'Write' form is hidden behind the main screen of you bird

    Since I updated to the latest version of you bird (v.24.6) last week, I am unable to make the electronic form forward when displaying the main screen of boxes to letters. By clicking on the edge of the screen to answer/write will show it only momentarily, then he is hiding behind the screen of mailboxes. To write a new email, I have to minimize the mailbox main screen.

    I looked for an option that will allow the form of response/writing stay on top, but fails. I made no changes to the options when I updated. I forget a new option somewhere?

    Thanks for any help
    P.S. Win 7 x 64

    Matt,

    You nailed it. Without the Add-ons, it works as it should. Now, I have to determine which of my modules is the culprit. I have day some after I installed the last you bird. I have not that much, so it should be an easy thing to disable all and then putting back one by one.

    Thank you.

  • My mouse is stuck on the main screen (add pictures)

    I'm used to 2 monitors, and I want to keep it this way. So I implemented a QUANIX monitor I have via HDMI to my Sprout.

    I have extension success of two monitors. but my mouse cursor is stuck in the main screen of Sprout.

    If I drag a window to the next screen, the window can move to the second monitor. but my mouse cursor is stuck on the first monitor.

    How can I solve it?

    Please help me... T_T

    (You can see in detail through below the images)

    monitor 1: HP all-in-one

    Monitor 2: horizontal HP

    Monitor 3: MON-SIS330 (QNIX QX2400)

    Current value of monitors

    captured when dragging a window to the next monitor

    I can find the solution to another post. Sprout Service stop and I can't success using extended display.

  • Product key not recognized during a repair of xp pro sp2 on a genuine xp pro sp2 disk. stuck on the main screen of the product.

    After starting problems on my Toshiba satellite with xp pro sp2, I booted my xp pro sp2 disk and did a repair instead of a reinstall software.  He went through the motions, removed the sys files, copied them back and so on.  Then he asked my product key and I typed in it and it does not recognize.  It's a real bought copy of xp pro sp2.  Now, I'm stuck on the main screen of the product.  When I start the laptop on the xp disk it blue screens, the only option I have is to enter a product key in the configuration...  I have my receipt for my xp pro disk and product key for certification sticker.  Help, please!

    "XP MCE Pro? That is not normal! It would be one or the other (AFAIK). Here is an example:

    http://cdn2.ioffer.com/IMG/item/811/353/46/o_XyuQav94U1MQ0Ci.jpg

    If the hybrid you mention is the real thing, it's new to me! I know that some have described as a superset of Pro MCE, but I never used this version, so I can't tell you definitively that a COA sticker wouldn't this combo of terms...

    In addition, the term 'Enterprise Edition' implies something not legitimate. I do not think that Microsoft has never used the term marketing for Windows.

    If you had a legitimate retail version of Windows XP (any version) that is not used on another PC, you can perform a Clean Install (not a repair installation), using this key (not the key COST laptop). The only way you can use the key from your laptop COST would be if you used the correct installation CD - a generic OEM version of the corresponding XP (MCE?) version. In this way, you can perform a clean installation or a repair installation.

    Have you looked at the links I posted? What do you mean by "boot option? The instructions were to press the zero key while turning on the laptop. You are not supposed to enter the OS! The recovery partition is quite distinct.

    If your laptop does not a recovery partition, you should be able to get the correct recovery CD for this Toshiba - by Toshiba or you might need to find a reputable eBay merchant, etc.. Restoredisks.com, who has a good rating from Better Business Bureau, they probably sold too.

  • Help with the screen turned on the main screen

    Hello:

    I wonder how to make a screen shot on the main screen of my files that are on my screen.

    Thank you

    Appleblossom47

    Hello:

    I wonder how to make a screen shot on the main screen of my files that are on my screen.

    Thank you

    Appleblossom47

    Press print screen printscreen-go to 'paint' and then press ctrl and v, then save and send.

    If you do a lot of that there are free progs on the web

  • Update of the main screen at the click of the button

    Hello world.

    I am very new to BB programming without any programming background at all (I am a philologist). Just try to understand everything now.

    I wrote a test code (in this case OS5) who must do the following - the main screen contains a key, which would add a text on the main screen.

    The code goes here:

    Class MyApp

    package mypackage;
    
    import net.rim.device.api.ui.UiApplication;
    
    public class MyApp extends UiApplication
    {
        public static void main(String[] args)
        {
            MyApp theApp = new MyApp();
            theApp.enterEventDispatcher();
        }
    
        public MyApp() {
            pushScreen(new MyScreen());
        }
    }
    

    Class MyScreen

    package mypackage;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.MainScreen; 
    
    public final class MyScreen extends MainScreen implements FieldChangeListener {
        private ButtonField buttonField;
        private MyScreen myScreen;
    
        public MyScreen() {
            setTitle("Test clock");
            buttonField = new ButtonField("Press me", ButtonField.CONSUME_CLICK);
            add(buttonField);
            buttonField.setChangeListener(this);
        }
    
        public void fieldChanged(Field field, int context) {
            if (field == buttonField) {
                go();
            }
        }
    
        private void go() {
            synchronized(UiApplication.getEventLock()) {
                myScreen.appendLabelText("Update");
            };
        }
    
        public void appendLabelText(String text) {
            LabelField labelField;
            labelField = new LabelField();
            labelField.setText(labelField.getText() + " \r\n" + text);
        }
    }
    

    Could someone make it clear to me how I can get the expected result of what I have?

    Thanks for your help.

    to correct the code above you can:
    -set the LabelField as a class variable
    -Add the LabelField on-screen
    -call setText on this LabelField rather than your method appendLabelText

  • Draw a circle in the main screen?

    Hi guys,.

    Pretty quick here.

    I'm looking to draw a circle on the main screen of a phone application I created.

    So far, on the main screen, I attracted 9 rectangles. But I don't want on a keypress event

    to paint on top of these rectangles of my circle.

    I used java before doing this operation using repaint but don't know how

    Repaint/discount so I can shoot an already drawn form coming onload.

    Darren

    you add the drawCircle in the paint method RESP. the drawBoard method, simply add a condition that you can modify.
    You can issue a repaint with invalidate().

  • How to get out a window, when you use the main screen?

    When I'm in the MBR to 8 window and I opened a program like IE, how to close to return to the main screen. Some other icons are the same thing. I'm looking for a way to close it and return.

    I know that I can go to the lower left window, but did close these windows? Hope this makes since. I think that if I click on music it does the same thing. I can't end this one. I can find a break and other things.

    Maybe I'm not dragging my slider on the right side?

    Thanks, Bruce

    Bring your cursor to the top of the standby screen until you see the hand and then click and drag it to the bottom of the screen... Who's going to close an application and take back you to the start screen.

    Press windows + C which will open the charms of the right side

    Press windows + key X that will open a menu of useful type administration programs

    I hope that helps

    Brian

  • Seems to be a misinterpretation of the size of the file that is displayed in the bottom left of the main screen.

    Seems to be a misinterpretation of the size of the file that is displayed in the bottom left of the main screen. I thought that he used to be Tablet/no compressed size. But I get a lot of analysis that are the limit of 2 GB for PSD and when I back up, after trying for a while, it says file exceeds the limit of 2 GB for the PSD. I try tiff and get the field exceeds the limit of 4 GB for TIFF. PSD, it will do but can not be read by Lightroom, so they won't be in my catalog. If these numbers at the bottom right are not properly which is the file size they are for?

    The numbers on the bottom on the left represent just the size of the image that the file is open and not what it could be saved or compressed. You think if often is under the 2 GB limit, but it's really over. If she goes, save the file as a PSB.

  • How to return to the main screen after watching downloads?

    This such a stupid question, but I have forgotten how to return to the main screen after watching downloads.

    Close the window or tab to download (if you are using some addon) or only to change the tab:

    Downloads:

  • Problem with the main screen of firefox

    After the update of firefox to firefox 15.0 16.0.2's problem with the main screen. At the top of the main screen displays the bar (caption bar of the main form) that I have win xp and under this title is bar legend like win 7.

    Firefox is running on Windows Xp, if better, I can send the screen, but I don't know where is possible add image to this error report...

    Okay, the problem has been resolved, problem was with the Tab Mix Plus extension. I have an older version of this extension, because at work may not update directly, because I'm going to the Internet via a proxy. Download, update firefox extension directly through the proxy is not possible... I need to download via the other internet browser, in order to not do it often...

  • Windows move to the main screen when sleeping Satellite-S50T-B

    Satellite S50T-B, Windows 8.1. Whenever my laptop sleeps, it moves all the icons and windows open on the secondary external monitor on the laptop monitor. Like a lover double screen, it's extremely annoying. I keep having to set up my work space.

    I expect that there is a bug in the video driver, which means that she sees the monitor off as a result of the command 'sleep' of the laptop as a monitor "unplugged" and it is reported to the operating system for the operating system moves all the icons and windows on the main screen, so when I turn again, they are all in the wrong place.

    Please note that the disappearance of the screen as a direct result of it being sent a sleep command should not be interpreted in any way other than the monitor to sleep as said.

    The graphics driver is old way... When can we expect an update?
    When I can see a fix for this frustrating problem?

    Hello

    If you would google for this problem, you will find a lot of discussions and information about this system.

    From my point of few this issue is linked to the State in sleep mode. There are the States of sleep mode (S0, S1, S2, S3, S4)

    S3 is generally the default standby mode, while the S4 is generally the mode of hibernation by default.
    Here all the details:
    http://msdn.Microsoft.com/en-us/library/Windows/hardware/ff564575

    You can use the PowerCfg command to change these settings
    http://TechNet.Microsoft.com/en-us/library/cc748940%28V=WS.10%29.aspx

  • set the second screen as the main screen

    I have an external monitor connected to my macbook pro. Is it possible to put this external monitor as the main screen. It seems that El Captain only opens new windows and applications on Macbook Pro screen.

    You can change the order via system preferences > display > Arrangement. Drag the white line (menubar) on the second screen to make it primary.

  • How can I access my space girls 14 years old, on the main screen on the computer?

    How can I access my space girls 14 years old, on the main screen on the computer? So I can see what she gets up to the computer because I have no way of knowing.  She went totally bananas when I put parental controls on its site.  It has a password.  I am the administrator of computers.  Thank you

    I assume you have no access to the password for the user of your daughter.  As an administrator, you may open the control panel in Win XP and select user accounts.  The options will allow you to change or remove the password of your daughter.  Then you could sign on behalf of your daughter.
    However, who would probably trigger another outbreak of 'bananas', because your daughter will realize that you have changed or deleted her password.  This forum is not how parents react to problems of girl.  However, she is only 14, is YOUR computer and you have good reason to worry about his online activities.
     
     

    "maidmarion" wrote in message News: d6c42d7e-eb05-43a4-9723-ac451a17b15a...

    How can I access my space girls 14 years old, on the main screen on the computer? So I can see what she gets up to the computer because I have no way of knowing.  She went totally bananas when I put parental controls on its site.  It has a password.  I am the administrator of computers.  Thank you

Maybe you are looking for

  • Can I stop a new tab to open on my home page when I load Firefox to my office?

    When I load Mozilla Firefox my homepage loads OK but a new tab loads also with ' search or enter addresses in the space of the url where an address must be typed. When I click on the information on the general tab Page address for the new tab is chro

  • The Update Service error OR

    Hello I have a problem with the installation of updates using Update Service. I was able to download all the updates, but I'm unable to install them. I got the following error. The update version is 2.3.0.70. I tried to run as administrator and disab

  • cluster with two elements

    Hi frnzz... IAM giving two paintings of an element of each. i.e., with X values array1 and array2 with value Y. I want the two paintings in a single cluster unique arraywith. That is to say, Array3 with X and Y values. For what iam using the bulk mat

  • Port of uplink on PowerConnect 8024F went to the D State down

    Hi all We had a strange behavior on one of our switches PowerConnect 8024F. The uplink port of the device (connected to a port on a Cisco Catalyst 6513 10Gig) came down. The output of 'show interfaces status' looked like this: Port speed Duplex Neg f

  • Pass simple portable computer Pavilion DV7t Quad

    Have registered DV7t Quad laptop Pavilion - a way to remove a fingerprint + password on the single pass drive?