swing - Java: when calling repaint() on a JPanel, the components in the same JFrame redraw themselves in the top left corner -
I have a graph class that increases the JPanel, it gets republished on mouseMoved when this happens, Basically any other component was added to layout (whether it is the same JPN or different JFrame) will be pain in the top left corner. I have a screen shot to go with the following code if you are close to the top left See, a small Texter is visible. It will be with any component.
The expansion of the public class GUI JFrame (Private JTextArea txtPoints = New JTextArea (20, 40); GUI () {setSize (800, 1000); Set Layout (New Migrateout); Addition (New graphs), "wrap"); add (TxtPoints); setVisible (true);}}
Wonderful of broken paint series Welcome to the world.
Without further evidence, you have overridden some code PaintXX
method and supe R.paintXxx failed to call
which means that the first ever graphics
was featured for reference ...
For more information See more
Comments
Post a Comment