when design
when run
when design and run in netbeans 6.5 they are the same, but int 6.7 and 6.8, as you see, they are different!
when design
when run
when design and run in netbeans 6.5 they are the same, but int 6.7 and 6.8, as you see, they are different!
You might examine the generated code for a call to setUndecorated() in the top one.
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.
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".