Millions saw the apple fall, but Newton asked why.
Mandar Khire wrote:For any container/component we can use following 4 settings
setPreferredSize(), setMaximizedBounds(),setMaximumSize(),setMinimumSize().
Mandar Khire wrote:My question is
...
...
Question :-
1. Is there any easy way to do this all things...
2. By setting all 4(setPreferredSize(), setMaximizedBounds(),setMaximumSize(),setMinimumSize()) same values then...is it right or wrongly i am doing?
luck, db
There are no new questions, but there may be new answers.
Learn to use Layout Managers.
Let the components and their containers compute their own sizes.
Millions saw the apple fall, but Newton asked why.
Frame getbounds =java.awt.Rectangle[x=0,y=0,width=450,height=300]
Frame getLayeredPane() getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
Frame getContentPane() getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
tabbedPane getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
panel getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
panel_1 getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
Frame getbounds =java.awt.Rectangle[x=0,y=0,width=450,height=300]
Frame getLayeredPane() getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
Frame getContentPane() getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
tabbedPane getbounds =java.awt.Rectangle[x=0,y=0,width=0,height=0]
panel getbounds =java.awt.Rectangle[x=1,y=67,width=-2,height=-68]
panel_1 getbounds =java.awt.Rectangle[x=1,y=67,width=-2,height=-68]
Frame getbounds =java.awt.Rectangle[x=0,y=0,width=450,height=300]
Frame getLayeredPane() getbounds =java.awt.Rectangle[x=5,y=5,width=440,height=290]
Frame getContentPane() getbounds =java.awt.Rectangle[x=0,y=22,width=440,height=268]
tabbedPane getbounds =java.awt.Rectangle[x=0,y=0,width=440,height=268]
panel getbounds =java.awt.Rectangle[x=1,y=31,width=438,height=236]
panel_1 getbounds =java.awt.Rectangle[x=1,y=31,width=438,height=236]
Millions saw the apple fall, but Newton asked why.