• Post Reply Bookmark Topic Watch Topic
  • New Topic

mouseListener problem in a cardGame  RSS feed

 
burcu bayhan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have cards displayed on the contentPane and each of card has mouseListener. The problem part is, when I click one of the cards, my contentPane is also gotten clicked. I`m specifically adding the mouseListener to the card object, how come the contentPane affects from it?
I`m using JBuilderX Foundation.
I appreciated your time,
best regards,
burcu bayhan
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Burco,
I have code that directs the mouse events only to those widgets that have mouselisteners so the basic mechanism works ok.
If you post your code we can perhaps better help you. Make sure you start your code with [ CODE] and finish with [ /CODE] (omit spaces when you enter them).
[ March 23, 2004: Message edited by: Eddie Vanda ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!