Results 1 to 2 of 2
  1. #1
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Question cardlayout question

    I have a pretty simple question regarding the cardlayout, but I can't find an answer from the Java Tutorials ... or any of the lame books I have!

    Is there a way of returning a string telling me which card in the cardlayout I am on? Cardlayout obviously keeps track of this given the API for this class (e.e.g, next, previous, etc.).

    On the subject of books, can someone recommend authoritative books on Java and, more specifically, Swing and AWT?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by newbie123 View Post
    Is there a way of returning a string telling me which card in the cardlayout I am on? Cardlayout obviously keeps track of this given the API for this class (e.e.g, next, previous, etc.).
    I've not seen this functionality, but I'm not the Swing expert here. You might have to wait to see if camickr or Darryl know of anything more.

    On the subject of books, can someone recommend authoritative books on Java and, more specifically, Swing and AWT?
    I think that most of us have learned this from the Sun Swing tutorials and the forums. Also I recommend a book called Filthy Rich Components by Haase and Guy
    Last edited by Fubarable; 04-06-2010 at 01:31 AM.

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. Populating CardLayout JPanels with External classes
    By fred2482 in forum New To Java
    Replies: 5
    Last Post: 12-21-2009, 07:08 AM
  3. Replies: 3
    Last Post: 06-28-2009, 08:18 PM
  4. Regarding CardLayout
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-07-2008, 08:52 PM
  5. Using previous with CardLayout
    By uncopywritable in forum New To Java
    Replies: 2
    Last Post: 08-05-2007, 10:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •