Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

cardlayout


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
conick
Asked:
conick
  • 2
1 Solution
 
msmolyakCommented:
Try calling card.isShowing().
0
 
conickAuthor Commented:

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
 
msmolyakCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now