Validation « Graphics « Java Swing Q&A





1. Swing Painting issue?     stackoverflow.com

I have a JPanel extension called TPanel, which paints the word Tetris on the right hand side of the JFrame. The curr() method returns the current piece that is moving, ...

2. Whats the exact difference between paint, repaint, validate, update & updateUI ?    coderanch.com

Hi Shivaji, The following can be used as a guide: 1. paint method should be overridden if you have a custom component that requires unique drawing functionality. It is not wise to call this function directly. 2. repaint method should be used to invoke any components paint method. The repaint method actually starts a new thread that calls update instead of ...

3. Validate and repaint probelm    coderanch.com