这些类被设计为在安装相应的LookAndFeel类时使用( UIManager.setLookAndFeel(new XXXLookAndFeel()) )。 在安装不同的LookAndFeel时使用它们可能会产生意外的结果,包括异常。 此外,改变LookAndFeel由保持UIManager而不更新对应ComponentUI任何的JComponent S还可能会产生意想不到的效果,如颜色错误显示出来,并且通常不鼓励。
注意:大多数Swing API 不是线程安全的。 有关详细信息,请参阅Threads and Swing ,在部分The Java Tutorial 。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.