Paul Clapham wrote:There are problems which arise when you mix Swing and AWT components in the same application, most of which involve components not displaying correctly. Looks like you might be encountering that. Just use the Swing components already.
Well, that turned out to be the problem. However, that's strange: as I know, Swing is based on AWT, moreover, it is actually just a bunch of (complex) utilities added to AWT; shouldn't it be backwards-compatible, especially if, IMHO, I do not use any of those utilities?
Anyway, thank you for helping. I'll be more careful with mixing libraries next time.