如何更改 JFrame 中标题栏的颜色?

问题描述:

我正在使用以下代码,

UIManager.put("JFrame.activeTitleBackground", Color.red);

用于更改 JFrame 中的工具栏颜色.但是没有用.

for change the toolbar color in JFrame. But it didn't work.

是否可以更改 JFrame 中标题栏的颜色?

Is it possible to change the color of titlebar in JFrame?

这不可能.顶层 JFrame 由外观控制底层操作系统的感觉.

Its not possible. The top level JFrame is controlled by the look & feel of the underlying OS.

您可以更改 InternalFrame 的颜色.

You CAN change the color of an InternalFrame.