HeadlessException in HtmlValues
Status: Beta
Brought to you by:
trainhappy
In org.lobobrowser.html.style.HtmlValues#getPixelSize(String, RenderState, int) a HeadlessException is thrown when trying to determine the screenresolution.
Instead of
int dpi = Toolkit.getDefaultToolkit().getScreenResolution();
I would propose to use:
int dpi = GraphicsEnvironment.isHeadless()? 72 : Toolkit.getDefaultToolkit().getScreenResolution();
Logged In: YES
user_id=1837185
Originator: NO
Thanks. This is fixed (as suggested) in CVS, and should appear in 0.98.