views:

778

answers:

2

Does anyone know how to work with the Card Layout in the NetBeans GUI builder tool? I want to show panels as per the JRadioButton selection, so I want to lay this out using the Card Layout.

+1  A: 

The Sun tutorial seems a good place to start to learn about Card Layouts.

Concerning NetBeans per se, simply assign the card layout to the component you wish to assign to (example a JPanel), give it a name, and then for the JPanel child components (other JPanels for example), specify their cardName property. To switch from one to another, you code it in an event.

JRL
Hi JRL .. i know how to work with card layout as independent ..but here i want to know from Netbeans GUI builder ..
Sidharth
+2  A: 

Here is a very simple tutorial that might start you off in the right direction. I hope it is helpful.

Vincent Ramdhanie
thanks Vincent Ramdhanie , this is what i expect ..
Sidharth