Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 11
Registered: ‎12-01-2009
My Device: Not Specified

BrowserField doesn't show in EyelidFieldManager

I try to add BrowserField (field2) to EyelidFieldManager or any Field Manager. The BrowserField doesn't show up on the screen. My guess is that I have to set the size of the BrowserField. However, I don't find any way to set the size of the BrowserField. Does anyone know how to fix this issue?

New Developer
Posts: 11
Registered: ‎12-01-2009
My Device: Not Specified

Re: BrowserField doesn't show in EyelidFieldManager

this is the code i use:

 

        HorizontalFieldManager linkManager = new HorizontalFieldManager();
        link1 = new ButtonField("Link1", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE);
        link2 = new ButtonField("Link2", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE);
        link3 = new ButtonField("Link3", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE);
        link4 = new ButtonField("Link4", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE);
        link1.setChangeListener(this);
        link2.setChangeListener(this);
        link3.setChangeListener(this);
        link4.setChangeListener(this);
        linkManager.add(link1);
        linkManager.add(link2);
        linkManager.add(link3);
        linkManager.add(link4);
 
        mainBrowser = new BrowserField();
       
        EyelidFieldManager eyelid = new EyelidFieldManager();
        eyelid.setEyelidDisplayTime(1000);
        eyelid.addTop(new ButtonField("Link5", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE));
        eyelid.add(new ButtonField("Link6", ButtonField.CONSUME_CLICK | ButtonField.NON_FOCUSABLE),0,185);
        eyelid.addBottom(linkManager);
        eyelid.add(mainBrowser,1,1);
        add(eyelid);
       
        mainBrowser.requestContent(homeURL);

 

=======

 

I can see every button I added, but I can't see the browserField