如何自定义JDialog,JOptionPane的TitleBar?

时间:2018-11-30 15:17:00

标签: java swing paint titlebar

有什么方法可以删除白色标题栏并将其更改为黑色吗?我正在努力使自己的外观和感觉变化,我们如何更改其颜色,以便所有带有标题栏的衍生产品都应标题栏为黑色而不是白色。

enter image description here

1 个答案:

答案 0 :(得分:0)

class MyJDialog extends JDialog{

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

}