What is CardLayout?



What is CardLayout?..

Answer / modi[achir communication]

A CardLayout object is a layout manager for a container. It
treats each component in the container as a card. Only one
card is visible at a time, and the container acts as a stack
of cards. The first component added to a CardLayout object
is the visible component when the container is first displayed.

The ordering of cards is determined by the container's own
internal ordering of its component objects. CardLayout
defines a set of methods that allow an application to flip
through these cards sequentially, or to show a specified
card. The addLayoutComponent(java.awt.Component,
java.lang.Object) method can be used to associate a string
identifier with a given card for fast random access.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a nonetype?

0 Answers  


What is nextline method in java?

0 Answers  


What is meant by Session? Explain something about HTTP Session Class?

1 Answers  


Difference between Application and Applet ?

4 Answers   Wipro,


What are the differences between abstract class and interface?

0 Answers  






What are data types in programming?

0 Answers  


Why do we override tostring method in java?

0 Answers  


can we override the main() method in java????

3 Answers   Vimukti Technologies,


When is the finalize() called? What is the purpose of finalization?

0 Answers  


What are streams?

0 Answers  


Which is better ascii or unicode?

0 Answers  


What are namespaces in java?

0 Answers  


Categories