This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Game Canvus

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a Card Game using Swing. As it is right now, the Playing Field is a JLabel and I have my mouse events listening on the JLabel for changes etc. But I know that a JLabel is not a good one to use. Does anyone know of a component that I should use instead?
 
John M. Gabriele
Ranch Hand
Posts: 232
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What makes you say that a JLabel isn't a good idea here?..
You might find more help on this at http://www.javagaming.org
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I thought it was the JLabel that was causing me problems. Maybe not. The problem is when I lay other components on top of the label, they lay strange. For instance, when I place a card on the label and then place another card, it puts the second one behind the first one instead of on top. Maybe just a programming error??
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic