如何在Java中将Align设置为JDialog的标题 [英] how to set align to title of JDialog in java
本文介绍了如何在Java中将Align设置为JDialog的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在Java中遇到有关JDialog的问题,希望能对您有所帮助.
我想在Java中设置左对齐并将粗体设置为JDialog的标题,但是我找不到执行此操作的方法.
如果您知道解决方法,请帮助我
Hi all,
I have a problem about JDialog in java, I hope that will have your help.
I want set left align and set bold to title of JDialog in java but I can not find method to do this.
if you know solution, please help me,
Thank you very much!
推荐答案
JDialog的标题应该已经是粗体了,对了-不是吗??
否则,使用JOptionPane可能会更好: http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html [ ^ ]
The title of a JDialog should already be bold and left - isn''t it!?
Otherwise - might be better to work with JOptionPane: http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html[^]
这篇关于如何在Java中将Align设置为JDialog的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文