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

前端 未结 3 509
渐次进展
渐次进展 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:51

    Here is a library which will automaticaly change the look and feel. I am not sure it this will done for every component in a different way, but you should take a look at it. pbjar.org

    This book should be useful if you want to go deep into look and feel /java-look-and-feel-design-guidelines-second-edition

    I would be glad to see some code example, if someone can write it, feel free to get starting.

    EDIT:

    In this forum thread Thread i found the following description

    Swing uses a Look & Feel (a PLAF). PLAFs aren't attached on a per-JFrame level. They are attached on a per-VM level. It is almost impossible to mix PLAFs within one application. I have seen a few attempts, all failed.

提交回复
热议问题