0

Hi. I have an issue. That's given a snippet of class.

public constructor () // the start of constructor
{
 JPanel courseChooserPanel = new JPanel(card);  
        box.add(courseChooserPanel);

 CardLayout card = new CardLayout();  
 Department comp = Department.get("COMP");                               // refers to another class
        CourseChooser compPanel = new CourseChooser(this,comp); // refers to another class
        courseChooserPanel.add(compPanel, COMP); 
         card.show(courseChooserPanel,"compPanel");
}// the end of constructor

Why " card.show(courseChooserPanel,"compPanel"); " does not work; it does not produce any output. There is no error too.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Phaelax
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.