简体   繁体   English

BrowserComponent无法在代号为One的桌面版本中显示

[英]BrowserComponent fails to show in a Codename One desktop build

My Codename One app features an embedded browser component using the following code: 我的代号一个应用程序具有使用以下代码的嵌入式浏览器组件:

Form notesForm = new Form(subjectName);
this.currentSubject = subjectName;
notesForm.setLayout(new BorderLayout());
WebBrowser wb = new WebBrowser();
wb.setURL("jar:///alevelhtmlnotes/" + subjectName.toLowerCase()          +   ".html");notesForm.addComponent(BorderLayout.CENTER, wb);
 notesForm.show();
 startTime = System.currentTimeMillis();
 NotesProgressChecker time = new NotesProgressChecker();
 time.recordTimesAccessedValues(subjectName);
 notesForm.setBackCommand(com);

This works well in the simulator and device builds but when I build a native Windows Desktop app the browser component disappears. 这在模拟器和设备构建中效果很好,但是当我构建本机Windows Desktop应用程序时,浏览器组件消失了。

This is a bug in the packaging process that packages a broken VM for some reason: https://github.com/codenameone/CodenameOne/issues/1606 这是打包过程中的错误,由于某种原因打包了损坏的VM: https : //github.com/codenameone/CodenameOne/issues/1606

Its assigned to me so I guess I'm the one to blame for it not working. 它分配给了我,所以我想我应该责怪它不起作用。 I'll try to get it working soon. 我会尽力使它尽快工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM