setting contents of frame in the center even after max and minimize help!!!
well i made a frame and created all buttons,text fields,labels etc....
the size of the frame is done as setSize(500,500); and i used setbounds like below
now when i click Restore or resize button on window[which is right to minimize button and left to close button] the frame is on full screen,fine...,but the contents[components] of the frame are are remaining in same position..but i dont want like that..i want like,if i click resize button..the content of the frame shuld come to center of frame.. please help me for that...
Re: setting contents of frame in the center even after max and minimize help!!!
Learn to use a layout manager ( http://docs.oracle.com/javase/tutori...out/index.html ), and learn to post in the correct section of the forum.
Moving from New to Java to AWT/Swing