Paint problem custom listfield - nullfield

I created a listfield custom by extending the field manaagers, I use the nullfield for the effect of the update, but it does not work properly. I use two differnet layout for line manager who has no images and the other that contains images. The focus problem occurs only for lines that have pictures. I enclose the code below.

The images appear correctly once I have the focus and remove on the line.

 //CONSTRUCTOR FOR BITMAPFIELD
    public CustomRow(String _headline, String _metadata, BitmapField bmF)
    {
        bitmapField = new BitmapField();
        bitmapField = bmF;
        _headText = new RichTextField(_headline,RichTextField.NON_FOCUSABLE);
        _metaData = new RichTextField(_metadata,RichTextField.NON_FOCUSABLE);

        _headText.setPadding(10, 10, 5, 10);
        _metaData.setPadding(0, 10, 10, 10);

        _focus = new NullField(NullField.FOCUSABLE);
        _focus.setFocusListener(this);

        bmpRowTextMang = new VerticalFieldManager(){
            public void sublayout(int width, int height)
            {
                super.sublayout(Width * 3/4, height);
                setExtent(Width * 3/4, height);
            }
        };

        bmpRowBmpMan = new VerticalFieldManager(){
            public void sublayout(int width, int height)
            {
                super.sublayout(Width/4, height);
                setExtent(Width/4, height);
            }
        };

        bmpRowTextMang.add(_headText);
        bmpRowTextMang.add(_metaData);
        bitmapField.setPadding(10, 10, 0, 5);
        bmpRowBmpMan.add(bitmapField);
        bmpRowMan =  new VerticalFieldManager(){

            public void sublayout(int width, int height)
            {
                setPositionChild(getField(0), 0, 0);
                layoutChild(getField(0), width, height);

                    setPositionChild(getField(1), 0, 0);
                layoutChild(getField(1), width, height);

                setPositionChild(getField(2),getField(1).getWidth() , 0);
                layoutChild(getField(2), width, height);

                int height1 = _headText.getHeight() + _metaData.getHeight();

                if(height1<80)
                {
                    height1 = 80;
                }
                setExtent(width, height1);
            }

            protected void paint(Graphics graphics)
            {
                setHeightRow = this.getHeight();
                graphics.drawLine(10, setHeightRow-1, Display.getWidth()-10, setHeightRow-1);
                super.paint(graphics);
            }

            public int getPreferredHeight()
            {
                return this.getHeight();
            }
        };

        bmpRowMan.add(_focus);
        bmpRowMan.add(bmpRowTextMang);
        bmpRowMan.add(bmpRowBmpMan);
        this.add(bmpRowMan);
    }
    public void focusChanged(Field field, int eventType) {
        // TODO Auto-generated method stub
        this.getManager().invalidate();
    }
    protected void paintBackground(Graphics g) {
          int prevBg = g.getBackgroundColor();
          if (_focus.isFocus()) {
            g.setBackgroundColor(Color.LIGHTBLUE);
          } else {
            g.setBackgroundColor(Color.WHITE);
          }
          g.clear();
          g.setBackgroundColor(prevBg);
        }

}

DEVICE BLACKBERRY BOLD 9780

One thing to try is to substitute drawFocus do nothing:

protected void drawFocus(Graphics g, boolean on) {
}

But the main problem must be somewhere in your sublayout substitutions. First of all, I am always wary with the help of a manager not abstract, never by calling its sublayout (such as super.sublayout). If you want to do this, substitute rather Manager. If your

bmpRowMan =  new VerticalFieldManager(){

should become

bmpRowMan =  new Manager(){

Another problem (this is not obvious and is repeated a lot of different people here) is using setExtent after the super.sublayout of a built-in Manager. Simply put - don't! If you change the width and height parameters before you go super.sublayout and want the Manager to have these exact width and height, set it with USE_ALL_WIDTH and USE_ALL_HEIGHT and filing the setExtent altogether! You pouvez use setExtent after super.sublayout, but you really need to know why you do this. An example is the code for this article in the knowledge base, but it feels more like a hack, you don't need:

Implementation of a standard style scroll bar

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Custom button on a touch paint problem

    I have a custom button that I use to the pop-up window of a PopupScreen. The custom button has his own painting methods (he also replaces the applyTheme() method), and for the most part, everything works as expected.

    The only problem I have is when the button is pressed. If I press and hold the button, the button is redrawn with what seems to be the default paint scheme (it seems that it is painted without label as well). As soon as I release the button and the context menu is displayed, the button is redrawn with my custom methods and look as I hope.

    Suggestions appreciated, thanks!

    If navigationClick is treated by default? This is the root of the problem: I think that integrated ButtonField.navigationClick defines the Visual status of the "active" field Replace to do what you want it to do and do not call super.navigationClick (well, call of may when the status parameter is not 0 - in the case of Alt-click and make shift-click - and you don't want to deal with yourself).

  • Paint problem ListField

    Hi all

    I am facing a problem of painting list, I now architecture - when I press on any screen I pop the currentScreen & then push the screen.

    Problem - (OS - 4.6, device - BOLD) area

    a screen with a list of thousand items & when I select an element of the next as a result of this list screen is pushed (first screen jerking) with valid data.

    When I click the back button, I'm popping second & pushing first. But in this case my list is not painted, only when I scroll it gets painted.

    No idea why its not working...? Same object screen's push in the battery (which jumped) still the issue of paint...

    This strategy is paying off for other screens.

    Thanks & best regards,

    Abhay

    Expert thanks for your help.

    The problem was with the way I was adding list ot the optimization of resources.

    The correct order has solved my problem.

    Thank you again...

    Kind regards

    Abhay

  • Problem with Listfield and expandable background bitmap

    Hello

    I struggled for a while to make this work, and after searching the forums and knowledge base, I can't seem to do right. What I try to do is:

    1 header is a bitmap expandable width of 1px to the bottom, more a company logo bitmap, with position fixed (only the items below it is scrolling)

    2. use a listfield, which contains 4 elements:

    -1 px wide image bitmap background for each line, repeat horizontally

    -1 px width bitmap image of background for the highlighted line, repeat horizontally

    -an icon bitmap for each line on the left side, and

    -a title text for each line

    Here is the screenshot and code what I've done so far, so the problem is:

    1. when I scroll, scrolls the header (what I want is to position of the header is fixed, only the listfield below is scrolling).

    2. the background image is only painted on the first line of the listfield, how can I do this with all the lines?

    3. How is - that replace you the default blue color on a bitmap background highlighted line?

    public class AjsScreen extends MainScreen{
    
        // constructor
        public AjsScreen() {
            super();
    
            // --- 1. Main Header --- \\
    
            //prepare images upfront
            final Bitmap bgHeader = Bitmap.getBitmapResource("bg-header.jpg"); // repeating background image for main header
            final Bitmap logoAjs = Bitmap.getBitmapResource("logo-ajs.png"); // company logo in main header
            final Bitmap bgMenu = Bitmap.getBitmapResource("bg-menu.jpg"); // repeating background image for main menu
            final Bitmap bgMenuRo = Bitmap.getBitmapResource("bg-menu-ro.jpg"); // repeating background image for main menu (highlighted)
    
            //images used as repeating background
            final Background backgroundHeader = BackgroundFactory.createBitmapBackground(bgHeader, 0, 0, Background.REPEAT_VERTICAL); //REPEAT HORIZONTAL ???
            Background backgroundMenu = BackgroundFactory.createBitmapBackground(bgMenu, 0, 0, Background.REPEAT_VERTICAL);
            Background backgroundMenuRo = BackgroundFactory.createBitmapBackground(bgMenuRo, 0, 0, Background.REPEAT_VERTICAL);
    
            //main header background, with stretched width, and fixed height
            HorizontalFieldManager hfm = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH){
                public int getPreferredHeight() {
                    return 55;
                }
            };
            hfm.setBackground(backgroundHeader);
    
            //main header logo
            BitmapField bf = new BitmapField(logoAjs);
            bf.setPadding(2, 0, 0, 5);//clockwise from top, right, bottom, left
            hfm.add(bf);
    
            add(hfm);
    
            // --- 2. Main Menu --- \\
    
            ListField lf = new ListField(){ //4, USE_ALL_HEIGHT | USE_ALL_WIDTH
                protected void paint(Graphics graphics) {
                    // TODO Auto-generated method stub
                    super.paint(graphics);
                }
            };
            lf.setBackground(backgroundMenu);
            lf.setRowHeight(40);
    
            final Vector le = new Vector();
            le.addElement("Menu 1");
            le.addElement("Menu 2");
            le.addElement("Menu 3");
            le.addElement("Menu 4");
            le.addElement("Menu 5");
            le.addElement("Menu 6");
            le.addElement("Menu 7");
            le.addElement("Menu 8");
            le.addElement("Menu 9");
    
            lf.setCallback(new ListFieldCallback() {
                public int indexOfList(ListField listField, String prefix, int string) {
                    return le.indexOf(prefix, string);
                }
                public int getPreferredWidth(ListField listField) {
                    return Display.getWidth();
                }
                public Object get(ListField listField, int index) {
                    return le.elementAt(index);
                }
                public void drawListRow(ListField listField, Graphics g, int index, int y, int w) {
                    g.drawBitmap(0, y, bgMenu.getWidth(), bgMenu.getHeight(), bgMenu, 0, 0);
    
                    String text = (String) le.elementAt(index);
                    g.drawText(text, 0, y, 0, w);
                }
            });
    
            lf.setSize(le.size());
    
            add(lf);
    
        }
    
    }
    

    Thank you very much

    Yusuf

    «1. when I scroll, scrolls the header (what I want is in the position of the header is fixed, only the listfield below scrolls).»

    ListField will do this for you.  I suggest that you look at setTitle in the screen and put your part not scrolling in there

    '2. the background image is only painted on the first line of the listfield, how can I do this with all the lines?'

    Don't know (haven't looked hard) how your background is painted on the first line, but this line:

    g.drawBitmap (0, bgMenu.getWidth (), bgMenu.getHeight (), bgMenu, 0, 0);

    doesn't seem to work for your lines.  You need to paint the entire width like this.

    ". How do replace you line default highlighted in blue on a background bitmap? »

    There are a number of ways to do I think.  Is to determine if you paint the selected line and act accordingly

    (if (listField.getSelectedInde () == index) {...})

    } else {}

    }

    Some people I think drawFocus override for the ListField - if you're looking for tour you will find examples.

    I think there are other ways, I'm looking round I think that this question has been asked before.

  • Microsoft Paint problem with preview and images printed in being extended

    I used Microsoft paint for years and all of a sudden, I'm having a problem where when I previews the image in paint is be lying and it is also elongated impression. However, the image in the window of the paint itself is fine, and if I open the image in another application IE. Photoshop - image presents a preview and prints correctly. What has changed and how I can fix?

    As I said previously... I guess just but you mentioned that the distortion
    was not only visible when in preview but also appeared on the print
    document. If it occurred during the display, I suspect the video driver.

    If the printer has not been updated for many years... of the manufacturer
    support site might have an updated driver, you could try. And it is certainly
    possible that the printer has nothing to do with this issue...

    If everything worked perfectly until recently... it may be worth trying
    do a system restore in Mode without failure for some time before painting began to have
    problems.

    If you receive auto-mises to update WIndows Update... it is possible that a
    a driver updated of some type has been installed that you aren't aware of.

    Given that the painting seems to be the only application affected...uninstalling/reinstalling
    may be worth a try... but you would need a Win XP install disk.

  • -non-interactive argument in 2.3 problem customer

    Apparently the new view Client has been rewritten and the functionality of the - noninteractive argument has changed, what is causing me problems.

    I wrote a program to replace shell in c# (.NET v4). It is supposed to run the Client notice, wait she leave and then run it again, indefinitely. Code is below to:

    Public Sub runClient()

    {

    ...

    Process viewClient = null;

    String viewClientPath = "C:\\Program Files (x 86) \\VMware\\VMware Client\\vmware-view.exe view Horizon"; update to view client 2.3

    ViewInfo ProcessStartInfo = new ProcessStartInfo();

    viewInfo.FileName = viewClientPath;

    viewInfo.Arguments = args;

    ...

    While (true)

    {

    Try

    {

    ...

    viewClient = Process.Start (viewInfo);

    viewClient.WaitForExit ();

    returnCode = viewClient.ExitCode;

    }

    catch (Exception ex)

    {

    MessageBox.Show ("customer" + ex. Message, "Error", MessageBoxButtons.OK);

    returnCode = 1;

    }

    ...

    }

    }

    My problem with the client 2.3 is WaitForExit no longer works when the--non-interactive argument is specified. He guard to start the process over and over again, as soon as possible. If I remove the - argument not interactive, it works as expected. I did have this problem in point 5.4.

    Can anyone tell me more about the functioning of the Client view when the - argument not interactive is used to point 2.3, or help provide workaround?

    Could you send me the exact c# code? (to [email protected]). Are you sure that you run the same cmdline in your code?

    -No interactive is used to auto-supprimer the message boxes and hide the transition of the UI, and if an unexpected error occurs, the client will be silently exit with error disconnected. So it would be nice if you can provide the newspapers as well.

    The difference between 5,4 and 2.3 via cmdline is that instances of 5.4 share the same process while they are totally different processes to the point 2.3.

  • Support problems, CC LR update problems, customer service problems

    I tried several times to download creative cloud. It all started when you try to install the latest update of possessing LR component HDR. When the update has not taken effect, I tried to open CC who did not. I ran the CC cleaning tool following the instructions. I uninstalled LR and CC the computer think a 'clean slate' can solve the problem... but it didn't. I came up with in the last attempt and 50 error code an A12E1 error code. If anyone can help me that would be great, as it appears that Adobe is not interested in any type of customer support, happy to take your money and get the CC community make this part of their work for them

    A12... Download & install error http://forums.adobe.com/thread/1289484

    -A12... discussion http://forums.adobe.com/thread/1045283?tstart=0

    Error 50 https://forums.adobe.com/thread/1432237

  • ID CS5.5 Mac - transparency printing problems custom size 13 x 21

    I try to print a screen printing positive transparency. The document is 13 x 21. I have a roll of 13 extended transparency which I cut a 21 "piece. I print on an EPSON 1400.

    I can not get the output to this szie file. It cuts the image within 8.5 x 11 limit each time.

    I have:

    -set a custom size in the print dialog box

    -Click on Page Setup in the print dialog box and set the custom size here, ignoring the warning to the subject it is not not printing ID dialog box

    -l' Preview in the dialog box will look perfectly oriented to the right size in the small tile

    -J' have tried everything I can think of to try to get in sync and correct output formats

    -I went to the PDF to try, fail again

    Is there someone who can help with some step by step to a process that works?

    Adobe ID CS5.5, EPSON Stylus Photo 1400, Mac Lion 10.7.5

    Only, I can't understand how this could be so difficult and little intuitive. Any idea would be freaking wonderul.

    Wow! Sudden incidental finding on this incredibly frustrating issue.

    I had found information that the EPSON 1400 should be able to print 44 "long output by default. I was looking specifically for one to find people who had printed large and panoramic images and came across a photography website of the United Kingdom where a person mentioned that he had written a software that would allow this printer print beyond 44 ". That sounded a lot.

    BUT, the last post on the thread of a guy says how he was able to print up to 44 '' for an EPSON 1400 with ease. The solution, said, was that the WIDTH of the print in the page layout area must be LOWER at 13 ". Why? No explanation.

    So I reset my size custom at 12.5x21 inches and BAM! First attempt to InDesign printed successfully. I can work with the margin.

    Anyway, in the case that everyone runs into this problem, it works. Here is a link to the post of 2009 that mentions this as info about printing more than 44 ".

    This one is solved.

  • Help me to solve this problem in listfield

    How to add a space between two listfied. ?

    How to do a listfield to another by using the alt key?

    package com.black.applicationloader;

    import java.util.Vector;

    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.Color;
    Import net.rim.device.api.ui.Font;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.XYRect;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.VerticalFieldManager;

    import com.black.blackinterface.BlackInterface;
    import com.black.common.BaseScreen;
    import com.black.components.CustomEditField;
    import com.black.utility.Utilities;

    SerializableAttribute public class BlackSecondScreen extends BaseScreen implements BlackInterface, ListFieldCallback {}
    Private VerticalFieldManager listFieldManager;
    Private VerticalFieldManager listFieldManager_2;
    private static final String [] _elements is {"First element" "Second element", "Third element", 'Fourth element', 'Fifth element'};.
    private vector _listElements = new Vector (_elements.length, 1);
    columnWidth int = Display.getWidth () / 4;
    Private boolean hasFocus; = false
    Private CustomEditField userEditField;
    ListField colourList_1;
    ListField colourList_2;

    {BlackSecondScreen()}

    colourList_1 = new ListField() {}

    protected void drawFocus (Graphics graphics, boolean on) {}
    XYRect rect = new XYRect();
    graphics.setGlobalAlpha (200);
    getFocusRect (rect);
    drawHighlightRegion (graphics, HIGHLIGHT_FOCUS, true, rect.x, rect.y, rect.width, rect.height);
    }

    {} public void onFocus (int direction)
    hasFocus = true;
    super.onFocus (branch);
    }

    Called when a field loses focus.
    public void onUnfocus() {}
    hasFocus = false;
    super.onUnfocus ();
    Invalidate();
    }

    public int moveFocus (amount int, int status, time int) {}
    Invalidate (getSelectedIndex ());
    Return super.moveFocus (amount, status, time);
    }
    };

    colourList_1.setCallback (this);
    int elemWidth = _elements.length;
    for (int count = 0; count)< elementlength;="">
    {
    colourList_1.insert (count);
    This.Insert (_elements [count], count);
    }

    colourList_2 = new ListField() {}

    protected void drawFocus (Graphics graphics, boolean on) {}
    XYRect rect = new XYRect();
    graphics.setGlobalAlpha (200);
    getFocusRect (rect);
    drawHighlightRegion (graphics, HIGHLIGHT_FOCUS, true, rect.x, rect.y, rect.width, rect.height);
    }

    {} public void onFocus (int direction)
    hasFocus = true;
    super.onFocus (branch);
    }

    Called when a field loses focus.
    public void onUnfocus() {}
    hasFocus = false;
    super.onUnfocus ();
    Invalidate();
    }

    public int moveFocus (amount int, int status, time int) {}
    Invalidate (getSelectedIndex ());
    Return super.moveFocus (amount, status, time);
    }
    };

    colourList_2.setCallback (this);

    for (int count = 0; count)< elementlength;="">
    {
    colourList_2.insert (count);
    This.Insert (_elements [count], count);
    }

    Add (colourList);
    createComponents();
    layoutComponents();

    }

    public void createComponents() {}

    listFieldManager = new VerticalFieldManager (Manager.VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL) {}
    protected void sublayout (int maxWidth, maxHeight int) {}
    Super.sublayout (maxWidth, 2 * colourList_1.getRowHeight ());
    setExtent (maxWidth, 2 * colourList_1.getRowHeight ());

    };

    };

    listFieldManager_2 = new VerticalFieldManager (Manager.VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL) {}
    protected void sublayout (int maxWidth, maxHeight int) {}
    Super.sublayout (maxWidth, 2 * colourList_2.getRowHeight ());
    setExtent (maxWidth, 2 * colourList_2.getRowHeight ());

    };

    };

    userEditField = new CustomEditField (Utilities.getAdjustedWidth (150))
    Utilities.getAdjustWidth (2), Manager.NO_HORIZONTAL_SCROLL
    // | (Manager.VERTICAL_SCROLL, true);

    }

    public void layoutComponents() {}
    TODO self-generating method stub
    listFieldManager.add (colourList_1);

    listFieldManager_2.add (colourList_2);
    Add (listFieldManager);
    Add (listFieldManager_2);

    }

    public void initializeListeners() {}
    TODO self-generating method stub

    }

    public void setComponentsXYMargins() {}
    TODO self-generating method stub

    }

    ' Public Sub drawListRow (ListField listField, graphics graphics, int index,
    int y, int width) {}
    int curSelected;
    If (hasFocus) {}
    curSelected = listField.getSelectedIndex ();
    } else {}
    curSelected = - 1;
    }
    If (index %2 == 0) {}
    graphics.setColor (Color.PERU);
    graphics.fillRect (0, y, width, listField.getRowHeight ());
    } else {}
    graphics.setColor (Color.WHEAT);
    graphics.fillRect (0, y, width, listField.getRowHeight ());
    }
    graphics.fillRect (0,0,width,y);

    int xPos = 0; int ypos = 0;
    graphics.setFont (Font.getDefault ()); / / Please set a value of fonts
    It is the first text of the column
    graphics.setColor (Color.BLACK);
    graphics.drawText("column1"+index,xpos,y);
    XPos += columnWidth;

    graphics.setColor (Color.RED);
    graphics.drawText("column2",xpos,y);

    XPos += columnWidth;
    graphics.drawText("column3",xpos,y);

    XPos += columnWidth;

    graphics.drawText("column4",xpos,y);

    }

    public Object get (ListField listField, int index) {}
    TODO self-generating method stub
    Return _listElements.elementAt (index);
    }

    public int getPreferredWidth (ListField listField) {}
    TODO self-generating method stub
    Return Graphics.getScreenWidth ();
    }

    public int indexOfList (String prefix, int start, ListField listField) {}
    TODO self-generating method stub
    Return _listElements.indexOf (prefix, start);
    }

    public final void insert (String toInsert, int index)
    {
    _listElements.insertElementAt (toInsert, index);
    }

    public void erase()
    {
    _listElements.removeAllElements ();
    }

    }

    Hello

    Not able to understant it please explain...

  • Problem with ListField

    Hello world

    When the user clicks in a ListField I want to update an image of a line, but I don't understand.

    My goal is to simulate a check box, it means that by default at the end of the line, there is an image that is not controlled, and when the user clicks on an image checked there.

    I tried to replace the drawListRow of ListFieldCallback, but I don't know how to upgrade the line when the user click to change the disabled with the checked image image.

    Any help is welcome, thanks a lot!

    Thanks a lot to them both.

    Simon, I had already looked at the example but I ddidn´t see the most important line: invalidate()

    This call to repaint the selected line

    Dsheel, geSelectedIndex() is not a good condition because when the focus is on the line, this real return and I wanted to only change the image when the line is pressed. You must create a class such as the example, the ChecklistData class.

    To sum up, apologize for my veye English and thanks a lot!

    Kind regards.

  • Problem update Listfield using two screens

    Hi there, hoping you can help me with this

    I have two screens which extends the screen. In the first, I display a listfield with some elements, and when I click it, I'm going to the second screen where I show some details about the selected item. In this screen, I can delete this element (which incidentally, is an element of a vector). How can I return to the screen first, and see the listfield "updated" (in other words, without the deleted item)?

    Thanks in advance

    You have to pop the first screen, where (just before), you push the second screen, is not in there...

    And in onClose(), push a new instance of the first screen... but make sure you save the changes in the vector before that...

  • invalid field, paint problem

    Hello

    the following happens on a simulator of the storm and on the real device:

    I created a customfield which replaces the paint method. Inside the paint method, I get the display width ("Display.getWidth () ' ') 'RoundRect' for the entire width of the screen to draw.

    I also overrided method sublayout, inside I call "invalidate()" to make sure, every change display (portrait to landscape view and vice versa) is noticed.

    When debugging, I see that my variable, which is used by the "drawRoundRect" inside my "painting" method has the correct value of 360 (PORTRAIT mode) and 480 (LANDSCAPE view).

    But he's not painting in all width, only about 80%, no matter what display I flip.

    Only when you turn the device several times, she draws finally all the width once and then when to turn the view once again he painted only about 80% of the width again.

    I also tried to call 'invalidateLayout()' inside my overloaded 'sublayout', but that ends only with "IllegalStateException.

    I also tried to use "updateLayout()' inside the 'sublayout' method, but it fails with a"provision required during page layout"- Exception. Where should I call 'updateLayout' or "invalidateLayout" instead?

    Any idea on how to draw a field to the width of the current view?

    Thank you.

    More info.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

  • Background thread which problems refreshing ListField!

    I created a screen that uses a listfield to display the contents of a persistent vector object.

    And now I have an application when the condition is appropriate to remove a vector object. The vector is belong to the lisfield.

    It's my code.

    public class LittleAlarmBackgroundApp extends Application implements
            RealtimeClockListener {
    
        private Vector _alarms;
        private RuntimeStore rs;
        private AlarmListField alf;
    
        public LittleAlarmBackgroundApp() {
    
                     ...                 _alarms = (Vector)_database.getContents();        rs = RuntimeStore.getRuntimeStore();  }
    
      public static void main(String[] args) {
    
                LittleAlarmBackgroundApp bg = new LittleAlarmBackgroundApp();         bg.enterEventDispatcher();
    
        }
    
      public void clockUpdated() {
    
                   ...
    
        if(am.getHour()==hour && am.getMinute() == minute)          {                 if(am.get_type()==1) {    _alarms.removeElementAt(i);//_alarms is a vector that is belong to listfield  alf = (AlarmListField)rs.get(list_key);//alf is a listfield   if(alf != null) {                                  alf.updateList();//this method called setSize() of ListFild                  //AlarmListField(Field).assertHaveEventLock() line: 6067                 //  there is a exception that called IlleaglStateException
    
                      }             }         }     }     am = null;        c = null; }
    
        }}
    

    I want my background thread removes the element of the vector persistent and updating of the size of ListFied so that ListField can update!

    Please help me!

    Instead of

    alf.updateList ();

    follow these steps:

    Application.getApplication (.invokeLater)

    new Runnable() {}

    public void run() {}

    alf.updateList ();

    }

    }

    );

    A slight efficiency would be to declare the executable as a member of LittleAlarmBackgroundApp and then pass the object to invokeLater():

    private AlarmListField alf;

    private Runnable Updater = new Runnable() {}

    public void run() {}

    alf.updateList ();

    }

    }

    - - -

    Application.getApplication () .invokeLater (updater).

  • Lazy Line Painter problem (Animation online)

    Hi guys, I recently discovered a great program on the internet called lazy line painter that converts your SVG files in online entertainment. I want to do this for my assignment major webdesign but we use Adobe Muse and so I have no knowledge on this at all. My question is what do I do with the code generated by the site to obtain the final product. I imported my Dreamweaver Jquery document and all others and glued to the code, but I still don't know how to get the final product.

    I tried looking for a tutorial and they all did it that I made but I still do not seem to be able to get the animation online will. If any of you guys could give me a tutorial on how to get that going it will be greatly appreciated.

    Thank you

    The link to the site: Lazy Line Painter

    All the instructions are on this site.

    You must download jquery.lazylinepainter - GitHub 1.7.0.min.js. Then link to jQuery, jquery.lazylinepainter - 1.7.0.min.js and paste in the code generated by the lazy line painter. The generated code should go between the script tags:

    The code that is generated by the lazy painter line contains the following line:

    () $('#undefined').lazylinepainter

    Change is not set to the name of an ID in your web page. For example, I downloaded an SVG of a squirrel, so I changed this line to this:

    () $('#squirrel').lazylinepainter

    Then in the page web, I created a div and it gave the squirrel ID:

    To make it work, read instructions on GitHub. The SVG have no fill, and there must not be any closed paths. If your SVG is not suitable, the page of the lazy painter line will display your SVG under development. If it is not, it appears a mistake, but nor it will show you the SVG that you downloaded.

  • Unknown cursor/drawing and painting problem

    bandicam 2016-02-17 18-31-47-913.jpg

    (In the photo) appeared earlier today and I cannot yet understand how get rid of it. I can't draw, paint or select options on my picture - I can - with her even if I click on my different tools. I want that it to go, but I don't know what it is, or even to figure out how it got there. Can someone explain what it is and how to get rid of?

    It appears on objects that have the locked layer? And you try to use a tool, you can not.

Maybe you are looking for

  • P1102w printer: have new router and can not figure out how to print wireless at P1102w printer - he sees old router

    I installed a new router (Netgear R6220) and cannot figure out how to get the P1102w printer to recognize the new router. It shows the former name of the router (Belkin.833) on the test page and displays the IP address configured by AutoIP rather tha

  • How to get a reference to the delivery of the program (not at base of LV)?

    Hello I need to create a LV application which will be: -Run external executable and not on LV. It has a window of the UI which will open -Open PS (no title, menus, etc.) and position it under the user interface -If the user moves main UI, LV app FP f

  • Find the Windows product key (Acer Aspire 54T 1-471 T - R3)

    I had Windows 8 when I bought this laptop. I have upgraded to Windows 10 later. Recently, the laptop gave trouble when installing an update Windows 10 (specifically KB3172729). Right now, it does boot to Windows at all and I'm looking to do a clean i

  • Hash codes for x 64?

    Hey there, I was meet the "A required CD/DVD drive driver is missing" error for x 64 bit Windows 7, and the most common concerns were written poor disk and downloaded .iso, not the RAID / ATA real. Someone at - it x 64 hash codes Professional Windows

  • FontManager; CustomFonts

    Hey,. I try to use my own custom fonts and reading the documentation, it indicates that the .ttf file cannot be larger than 60 KB. However my file true-type fonts is 63.3 KB ... That someone knows or can suggest a way I can lower the size of this fil