更新时间:2023-10-05 10:02:46
您可以提供自己的 UI实现并将其附加到正常的组件实例,而不是对Swing组件进行子类化以修改它们的外观和感觉。
Instead of subclassing Swing components to modify how they «look and feel», you can provide your own UI implementation and attach it to a normal component instance.
查看以下方法:
paintButtonPressed
或其他 paint
- 方法来创建自己的按钮外观。paintButtonPressed
or the other paint
-methods to create your own button look.