对齐文本的权利的JOptionPane [英] Align text to the right in JOptionPane
本文介绍了对齐文本的权利的JOptionPane的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能调整文本的权利的JOptionPane? (我不希望使用的JDialog),因为我想写一些句子在阿拉伯语
Is it possible to align the text to the right in JOptionPane? (I don't want to use JDialog) because I want to write some sentences in Arabic
推荐答案
创建一个JPanel,在你的JPanel对齐文本,然后添加的JPanel作为JOptionPane的对象参数。或者使用一个JDialog(为什么欲望不使用其中的一个?)。
Create a JPanel, align your text in your JPanel and then add the JPanel as the Object parameter of the JOptionPane. Or use a JDialog (why the desire not to use one of these?).
这篇关于对齐文本的权利的JOptionPane的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文