简体   繁体   English

Install4j-按钮外观

[英]Install4j - buttons appearance

Is there any way how to change size of ' Finish ' button in Install4j . 有什么办法可以更改Install4j中“ Finish ”按钮的Install4j In style definition, there is a control button and in its initialization script I'm trying: 在样式定义中,有一个控制按钮,我正在尝试其初始化脚本:

configurationObject.setSize(150,80);
configurationObject.setToolTipText("Install application");

SetSize do nothing. SetSize什么也不做。 But tooltip is set correctly. 但是工具提示设置正确。 Is any problem with my code? 我的代码有问题吗? Or are there any attributes which cannot be set by code? 还是有一些代码无法设置的属性?

There is a layout manager at work, so calling setSize only has a temporary effect. 有一个布局管理器在工作,因此调用setSize仅具有临时效果。

Try 尝试

configurationObject.setMinimumSize(new java.awt.Dimension(150, 200));

instead. 代替。

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

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