Using the ComponentEvent example from the
Java Docs, I added some code that validates the frame size to prevent it being sized too small.
The is designed so that the width can't be smaller than 200 and the height can't be shorter than 350 (these values can be changed while the application is running).
When compiled and executed using jdk 1.6.0_45 it works fine but there is some flicker which am curious to know if normal or if the code isn't utilizing the painting functionality properly.
When compiled and executed using jdk 1.7.0_25 there is erratic behavior. The scroll bar on the right appears and disappears and the resizing doesn't work properly when attempting to make too short.
Not certain if a 1.7 issue or the newer version is more critical of the code being used and it is an issue with the implementation of the painting functionality.