简体   繁体   中英

Cutomize of finish button in Install4j

I'm making installer in Install4j and I need to customize 'Finish' button on 'Finish screen'. To customize I mean - to change its title and color. Is there any way how to do it? Thanks.

Just changing the text of the button is done by executing

context.getWizardContext().setControlButtonText(ControlButtonType.NEXT, "My text");

in the "Post-activation script" property of the screen.

For changing the style of the button, go to the Installer->Styles step, copy the "Banner" style and the "Standard footer" style and select the copied footer style in the "Nested style" form component of the copied banner style.

In the copied footer style, select the "Next button" form component and edit the "Initialization script" property to customize the button, for example:

import java.awt.Color;
configurationObject.setBackground(Color.GREEN)

Finally, go back to Installer->Screens & Actions, select the "Finish" screen and set the "Style" property to the copied banner style.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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