AWT/Swing Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 782 Page Views: 

Which method of the Component class is used to set the position and size of a component?



Posted By: Avi Date: 9 November 2010 04:55:04 AM
 Answer:

setBounds() method


Posted By: avibtech


Date: 9 November 2010 04:55:04 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image zvZmRm
Related Questions
AWT/Swing : When should the method invokeLater() be used?

When should the method invokeLater() be used?

It is used to ensure that Swing components are updated through the event-dispatching thread.
Category: AWT/Swing Date: 11/5/2010 4:25:06 AM
AWT/Swing : What is the difference between JFC & WFC?

What is the difference between JFC & WFC?

JFC supports robust and portable user interfaces. The Swing classes are robust, compatible with AWT,....
Category: AWT/Swing Date: 11/5/2010 3:52:06 AM
AWT/Swing : Which containers use a border Layout as their default layout?

Which containers use a border Layout as their default layout?

The window, Frame and Dialog classes use a border layout as their default layout.
Category: AWT/Swing Date: 11/5/2010 2:47:04 AM
AWT/Swing : What is the SimpleTimeZone class?

What is the SimpleTimeZone class?

The SimpleTimeZone class provides support for a Gregorian calendar.
Category: AWT/Swing Date: 11/4/2010 10:35:07 PM
AWT/Swing : What is the diffrence between Jcomponent and Component classes?

What is the diffrence between Jcomponent and Component classes?

Jcomponent class have add() and remove() methods but Component class does not; where JComponent is a....
Category: AWT/Swing Date: 11/4/2010 6:35:06 PM