“Console” output on Installation screen?

筅森魡賤 提交于 2019-12-13 19:13:17

问题


at the moment we use the Installation screen to display the installation progress and the currently running action (e.g. "Installing step 4").

As an additional information we would like to present the user informations, what happend before, e.g.:

Installed step 1 - ok

Installed step 2 - ok

Installed step 3 - ok

To do this we would need some kind of console (e.g. a text field / area) on the Installation screen below the progress bar. Is there a chance to do this?

Thanks! Frank


回答1:


Currently that's not easily possible. You could extend com.install4j.runtime.beans.screens.InstallationScreen and override the method protected void addScreenContent(JPanel panel, GridBagConstraints gc) to add more visual elements.


Update:

As Frank pointed out, you can just use a customizable form screen and add a "Progress display" component to it. In the "Post-activation script" property you would have to switch to the next screen automatically by calling

context.goForward(1, true, true);



来源:https://stackoverflow.com/questions/13068395/console-output-on-installation-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!