How can I change font color and specification of additional informations of installation directory chooser

Falko Fahnauer :

How can I change the disk space information font color and specification of installation directory chooser?

Installation directory chooser

Ingo Kegel :

If you set the "Initialization script" property of the "Installation directory chooser" form component to

JComponent container = formEnvironment.getComponentTuple(component).getCenterComponent();
for (int i = 0; i < container.getComponentCount(); i++) {
    JComponent c = (JComponent)container.getComponent(i);
    if (c instanceof JLabel) {
        c.setFont(c.getFont().deriveFont(java.awt.Font.BOLD));
    }
} 

both labels will be shown in bold font.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=162788&siteId=1