This is the look when launched in eclipse
while below is what I opened from a jar (but same code)
And here is the setting. The systemLookAndFeel in this case is winXP.
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception ex) {
Log.toConsole(ex.getMessage());
}
After some research, I found that the default font of JTextArea is MonoSpaced and it is a logical font which means the realization depends on system. But whenever I changed to another font, the line-distance become very small looking not good.
What can you think about? I have tried font and font size which turned out to be useless. If you need other infomations just comment. Thank you.
(I delete the last post because the website I uploaded my pictures forbids links from other sites)
我建议您对正在使用的组件使用.setFont()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.