Bring Component to Front

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thesti
    New Member
    • Nov 2007
    • 144

    Bring Component to Front

    hello,

    how can i bring a component to front? so it's visible on top of any other components.

    i need to design a card game. each of user's card will only visible half of it, with the rest is covered by another card (the card to its left). the user can click one of his card to see its full view.


    now, i can create a manual layout and use jlabel and implements actionListener to bring the card forward.

    or i can override the paint method of a jpanel, to draw the card using ImageIcon.but the hard thing would be, checking user coordinate, to determine which card is clicked.



    any advice would be very appreciated,
    Thank you.
Working...