aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes which layout can position components at exact location Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "which layout can position components at exact location " Watch "which layout can position components at exact location " New topic
Author

which layout can position components at exact location

josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216
which layout can position components at exact location
null layout
cardlayout
setlayout
borderlayout
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Borderlayout is the right choice in the list. I think Gridlayout and Gridbaglayout also right answer if it would have been in the list.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
null layout // I assume it means we are doing this container.setLayout(null); This means there is no LayoutManager assigned for this container. So whereever you place a comp it stays there itself and when you resize the container the components are not rearranged. You have to do the HARD WORK of the Layout Manager yourself. So this is the ANSWER
cardlayout // same as the reason given for borderlayout
setlayout //Not a valid layout
borderlayout // does not anchor a component in the same pos at all times. When the container is resized all the comp are relocated according to the layout policy.
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3215
The null layout is used for this.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
 
subject: which layout can position components at exact location
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com