C
clusardi2k
The following code produced results which sometimes looked bad. I.E.: Resizing the window did not stop at my preferred width or the window had an unrealistic jerkly look to it. It's hard to discribe.
Is there some way other than the below code which will prevent resizing beyond a certain limit. I'm typed this in from a piece of paper!
myframe.addComponentListener(new ComponentAdapter()
{
@Override
public void componentResized (ComponentEvent e)
{
setSize (new Dimension (myPreferredWidth, getHeight()));
//super.coponentResized (e);
}
});
Thanks,
Is there some way other than the below code which will prevent resizing beyond a certain limit. I'm typed this in from a piece of paper!
myframe.addComponentListener(new ComponentAdapter()
{
@Override
public void componentResized (ComponentEvent e)
{
setSize (new Dimension (myPreferredWidth, getHeight()));
//super.coponentResized (e);
}
});
Thanks,