Solved

cardlayout

Posted on 1998-07-13
3
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

688 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