[Logo]
Forums Register Login
Resizing a frame
Suppose I had a frame of some size say(400,300). If I drag the frame and made some operations on it and when I move to the next frame by doing some action say by clicking a button the next frame should be in the latest size but not of (400,300). How it can be done. I am getting a frame of same dimension after performing an action and moves to next frame.
private void jButton1_actionPerformed(ActionEvent e)
{
nextframe.setSize(frame1.getSize());
}
Create symphonies in seed and soil. For this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 540 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 21, 2018 00:13:51.