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

New Developer
Posts: 1
Registered: ‎09-18-2008
My Device: Not Specified

Sample BrowserFieldDemo question



I am using JDE 4.5.0 with the BlackBerry 8300 simulator.

The sample code for the BrowserFieldDemo shows two methods:

getAvailableHeight() and getAvailableWidth()

which should tell the RenderingSession where it can render.


I put breakpoints in these methods and they don't seem to be called at all.

Is there some flag that needs to be set on initialization that will tell the framework to use these methods?







BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Sample BrowserFieldDemo question

These are helper methods that can be called by the rendering engine to assist in the layout of the page.  They are not used to control the size of a browser field.  You can control the size of the field by customizing the manager that holds the field by overriding its sublayout method.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker