I am using Java CardLayout to switch between cards and JPanel. When activity starts in android I can use onLoad, or similar to check if the activity is now open. What is the equivalent to this in swing? How can I know if the JPanel (Card) is now in front?
public class FirstScreen extends JPanel
{
//am I visible now?
}