Drawing with graphics and with widgets in JApplet/Swing?
问题 Basically I have a JApplet that tries to draw with the graphics (ie, g.drawOval(10,10,100,100) and also include JCompotents (ie. JButton). What happens is that the repaint can get really wacky. Sometimes the graphics will draw over widgets or vis-versa. It's not reliable and leads to unpredictable behavior. (Button also always be on top of those graphics) I've played around with it trying to override or manually draw components, changing orders, etc, but think I'm missing something very