Posted on 1998-07-13
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?

Question by:conick
  • 2

Accepted Solution

msmolyak earned 50 total points
ID: 1226003
Try calling card.isShowing().

Author Comment

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


Expert Comment

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.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 68
Java and GPO 11 68
HSSFWorkbook cannot be resolved error 10 50
fibonacci ten numbers 4 26
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

911 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

18 Experts available now in Live!

Get 1:1 Help Now