GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 21 of 921    Print  
Which method of the Component class is used to set the position andsize of a component
setBounds()


  
Total Answers and Comments: 4 Last Update: October 27, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 07, 2005 12:42:48   #1  
tulasi        

RE: Which method of the Component class is used to set the position andsize of a component
setSize(x,y)
 
Is this answer useful? Yes | No
October 01, 2005 03:33:02   #2  
satheesh        

RE: Which method of the Component class is used to set...
first of all set the Layout to null then apply setBounds();setLayout(null); Component.setLayout(x, y, width,height);
 
Is this answer useful? Yes | No
October 02, 2005 07:38:17   #3  
kanniappan        

RE: Which method of the Component class is used to set...

setBounds(int x, int y, ing width, int height):

        It is a method of a component to location and size a component.  But it will work only when the container doesn't have any one of default managers. 

        If a component already has any one of default layouts then the size and location of the component is desided by the layout manager.             


 
Is this answer useful? Yes | No
October 27, 2005 09:20:33   #4  
Bobby Member Since: October 2005   Contribution: 1    

RE: Which method of the Component class is used to set...
component.setBounds(-,-,-,-);
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape