有什么方法可以从 JOptionPane
中删除标题栏吗?
我需要创建一个没有选项标题栏的选项 Pane 。
最佳答案
必须使用 JOptionPane 吗?
您也可以使用 J(内部)框架或不带窗口装饰的启动屏幕!
JInternalFrame inFrame = new JInternalFrame();
BasicInternalFrameTitlePane titlePane =
(BasicInternalFrameTitlePane) ((BasicInternalFrameUI) inFrame.getUI()).
getNorthPane();
inFrame.remove(titlePane);
关于java - 从 JOptionPane 中删除标题栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17656289/