> what i want to know is, how can i restrict the frame from resizing when it reaches 800 x 600?
presume you mean resize smaller
the only way I've seen possible do do what you want is to add this line
(prior to creating the frame)
JFrame.setDefaultLookAndFeelDecorated(true);
then
frame.setMinimumSize(new Dimension(800,600));
problem is
java's default L&F is not the best looking.
a hack is to add a windowListener which snaps it back to 800,600 if smaller,
then, when snapped-back, you could add code to make it not resizable