Can I use two different look and feels in the same Swing application?

前端 未结 3 508
渐次进展
渐次进展 2020-12-09 12:57

I\'m using the Flamingo ribbon and the Substance Office 2007 look and feel.

Of course now every control has this look and feel, even those on dialog

3条回答
  •  离开以前
    2020-12-09 13:29

    I just discovered: Since Substance 5.0 the SKIN_PROPERTY is available.

    It allows assigning different skins to different JRootPanes (i.e. JDialog, JFrame, JInternalFrame)

    A little trick: I override JInternalFrame to remove the extra border and the title pane so that it looks just like a borderless panel. That way it is possible to create the impression, that different parts of a form/dialog have different looks.

提交回复
热议问题