简体   繁体   中英

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?

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. 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 ?

显示蓝色边界的图象

Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else?

  • there isn't any key for JFrame (ei) on Java side

  • borders and tittle bar is decorated by Native OS, current color (font, sizing) theme is applied to all windows,

  • you can to get 1st component from JFrame and to change color, font, but for title bar only, borders stays unchanged

  • 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

Try the "windowBorder"-Key. Source: http://nadeausoftware.com/node/85#Systemcolors

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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