Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


To set the position and size of a component, which methods
are used?

Answers were Sorted based on User's Feedback



To set the position and size of a component, which methods are used?..

Answer / ranjith

setBounds

Set the size and location relative to the parent's upper
left corner, in pixels, of the component. The four int
arguments specify x, y, width, and height, in that order.
Use these methods to position and size a component when you
are not using a layout manager.

Is This Answer Correct ?    8 Yes 1 No

To set the position and size of a component, which methods are used?..

Answer / ravikiran

setBounds

Is This Answer Correct ?    8 Yes 3 No

To set the position and size of a component, which methods are used?..

Answer / pkr_reddy

to set the position is used setLayout accepting the argument
as layout object.

ex:setLayout(layout lobject);

in order to set the component sze there is no method that is
default set the size by layout manazer .

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More Core Java Interview Questions

Is java pass by value or pass by reference?

0 Answers  


How do you compare objects in java?

0 Answers  


what is meant by encapsulation?

0 Answers   Aspire,


How many types of java are there?

0 Answers  


What is an iterator interface in java programming?

0 Answers  


what is daemon thread and which method is used to create the daemon thread? : Java thread

0 Answers  


Define linked list and its features with signature?

0 Answers  


explain how many oops concepts available in java with realtime scenarios?

1 Answers   TCS,


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

0 Answers  


where do you place after you did code in java

2 Answers  


What is the use of arraylist in java?

0 Answers  


What are the advantages of defining packages in java?

0 Answers  


Categories