Professional Documents
Culture Documents
Ans:
GridLayout GridBagLayout
Program:
Program to create a two level card deck that allows the user to select an
operating system.
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==bt1)
{
cl.show(pl1,"Open source OS");
}
else
{
cl.show(pl2,"Closed source OS");
}
}
}
/*<applet code="cardlayoutcards"width="500"height="500">
</applet>*/
Output: