when i execute this program A frame wid two buttons appear but when i click on next button this exception is displayed as output...
Exception in thread "AWT-EventQueue-0"...
Type: Posts; User: shashi87
when i execute this program A frame wid two buttons appear but when i click on next button this exception is displayed as output...
Exception in thread "AWT-EventQueue-0"...
and this is very humble request to u if possible correct my code that i posted earlier....
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CardLayoutDemo implements ItemListener {
JPanel cards; //a panel that uses CardLayout
final static String...
sir actually I am unable to understand the concept of card layout
whether a frame should have card layout or a panel should have card layout and how it works
and in the above code i tried according...
package swing1;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class card1
{
JFrame f;
JButton b1,b2;
JPanel p,p1,p2,p3;