简体   繁体   English

在UIDefaults中更改JFrame边框

[英]Change JFrame border in UIDefaults

显示蓝色边界的整个窗口的图象。

Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else? 我应该更改UIDefaults中的哪个键以将应用程序中所有JFrame的边框颜色从蓝色更改为其他内容?

I know there is no code here but it is a very terse question. 我知道这里没有代码,但这是一个非常简洁的问题。

EDIT 编辑

Attached below is the image showing the JFrames which are not main windows, but are inside a layout. 下面是显示JFrame的图像,这些JFrame不是主窗口,而是在布局中。 I reckon the main window is pained by the Native environment, but if the JFrames are inside the main window, then shouldn't I be able to customize the borders ? 我认为主窗口受Native环境的影响,但如果JFrames在主窗口内,那么我不能自定义边框吗?

显示蓝色边界的图象

Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else? 我应该更改UIDefaults中的哪个键以将应用程序中所有JFrame的边框颜色从蓝色更改为其他内容?

  • there isn't any key for JFrame (ei) on Java side 在Java端没有JFrame(ei)的任何键

  • borders and tittle bar is decorated by Native OS, current color (font, sizing) theme is applied to all windows, border和tittle bar由Native OS修饰,当前颜色(字体,大小)主题应用于所有窗口,

  • you can to get 1st component from JFrame and to change color, font, but for title bar only, borders stays unchanged 您可以从JFrame获取第一个组件并更改颜色,字体,但仅对于标题栏,边框保持不变

  • result is to use some of custom L&F can do that , eg Substance (I tried), there is created own Borders, titlebar and buttons as replacement 结果是使用一些自定义L&F可以做到这一点 ,例如Substance(我试过),创建了自己的Borders,titlebar和按钮作为替换

Try the "windowBorder"-Key. 试试“windowBorder”-Key。 Source: http://nadeausoftware.com/node/85#Systemcolors 资料来源: http//nadeausoftware.com/node/85#Systemcolors

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM