Solved

cardlayout

Posted on 1998-07-13
3
187 Views
Last Modified: 2010-03-30

I cant seem to find a method that allows the program to know what "card" is currently being displayed.
Is there a trick for this or is there a method that i didnt find in the documentation?

0
Comment
Question by:conick
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1226003
Try calling card.isShowing().
0
 
LVL 7

Author Comment

by:conick
ID: 1226004

works great! thanks...

i didnt even look in the Component class
I was looking in the cardlayout, layoutmanager(2)
as always once I get the answer it seems to make sense

 
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1226005
Look at your question. You are asking whether the card is currently being displayed. That is you are trying to probe the propery of a card. Think object-oriented.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now