views:

262

answers:

1

Hi there! here is the cod:

public class MyHttp extends MainScreen{ public static final String HTTP_FILE = "local:///sources"; public MyHttp(String fileName){ BrowserField browserField = new BrowserField(); add(browserField); try{ browserField.requestContent(HTTP_FILE + fileName); } catch (Exception ex) { ex.printStackTrace(); } } }

how can I change the font size in this browserField?
Any ideas? Thanks in advance.

A: 

as the BrowserField is an extension of type Field, it inherits the setFont method:

browserField.setFont(myFont);

I don't have 5.0 running on my local box so I couldn't test it but according to the api it should work.

Hope this helps

Glen Morgan
Thunks, but it doesn't, I've already tried it many times.Any help???
Yuriy