Actually thats a good point, I couldnt get it to load properly, so I had to pass html as a string, that could be the issue?
InputStream in;
try
{
in = FileSystemStorage.getInstance().openInputStream(FileSystemStorage.getInstance().getAppHomePath()+path);
String html = Util.readToString(in);
_("html loaded is ->");
_("\n"+html);
//fire up the html in middle
browser.setPage(html, FileSystemStorage.getInstance().getAppHomePath());
form.add(BorderLayout.CENTER, browser);
Button back = new Button("Back");
back.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent evt) {
_("back hit z");
createMainForm();//show main form again
}
});
form.add(BorderLayout.SOUTH, back);
form.show();
} catch (IOException ex) {
//Logger.getLogger(Outlier.class.getName()).log(Level.SEVERE, null, ex);
_("WARNING! error loading html "+ex.getMessage());
ToastBar.showErrorMessage("can't find "+path);