Java/Swing programming question

Miscellaneous Forums/General Discussion/Java/Swing programming question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Reading up on repaint(), it looks like it only marks an area for re-drawing the next time a call to paint() rolls around. Unfortunately, I've now tried calling paint() (using the getGraphics() method to supply the necessary Graphics object - is that the right way to do it?), and while it seems to make the tile in question flicker briefly, it doesn't actually draw the overlaid component that it's supposed to draw. (similarly, calling paint() on the frame itself does nothing).

As of right now, I don't even have any threads running at all (outside of the main program thread and whatever voodoo Java uses to keep track of its GUI components). Should I have a thread calling paint() on the frame on a regular interval? This is besides the point, though, because paint() doesn't seem to be what Java is doing when I move to resize the frame - everything updates correctly then, and I have no clue why.