开发者

The support for the development of java swing in Netbeans 6.7 and 6.8 isn't good?

when design

The support for the development of java swing in Netbeans 6.7 and 6.8 isn't good?

when run

The support for the development of java swing in Netbeans 6.7 and 6.8 isn't good?

whe开发者_如何学Pythonn design and run in netbeans 6.5 they are the same, but int 6.7 and 6.8, as you see, they are different!


The two images are each showing a different font. (Note the descender on the 'j' in "Java". In the first image it descends below the baseline. In the second it does not.)

In Java, "monospace" is a "virtual" font that is substituted at runtime with a fixed width font. Your development environment is resolving a different font than your execution environment.

Try explicitly setting the cont to "Courier New".


Looks like your bottom component is JTextArea which is NOT set inside the scroll pane. Since the font is different in the second sample, last line of text wraps.

This can be mitigated in 2 different ways. Either set you JTextArea inside the scroll pane ( size of the scroll pane will not change and text area will scroll ) or set original font to your text area.

I'd suggest the first one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜