Do you only need the setVisible when you don't have a layout manager. Same with setBounds and setSize. Does the layout manager take care of that stuff for you? Do yo have to setBounds and setSize or one is enought? What purpose does te method show() have. do you use it instead of setvisible. My book uses it in its code but doesn't have any kind of definition or anything. thanks is advance Kourosh
setVisible, setBounds and setSize are all methods inherited from the Component Class. They will get default settings if you don't set them (false for setVisible and 0,0 for setBounds). I am not sure if setSize can replace setBounds. If you are running an Applet the size can be set in the HTML. show() is deprecated but also from component.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Hi, One more addition... setBounds(int x,int y, int width, int height) is used for Moving as well as Resizing a component setSize(int width, int height) is only for resizing the component So, setSize cannot replace setBounds in some cases. Aparna