如何自定义JDialog,JOptionPane的TitleBar?

问题描述 投票:-1回答:1

有什么方法可以删除白色标题栏并将其更改为黑色吗?我正在制作自己的外观和感觉,我们怎样才能改变它的颜色,以便所有带标题栏的衍生品都应该有黑色标题栏而不是白色。

enter image description here

java swing paint titlebar
1个回答
0
投票
class MyJDialog extends JDialog{

  public MyJDialog(){
     super()
     // add the text and button here including positioning
  }

}
© www.soinside.com 2019 - 2024. All rights reserved.