0

I am trying to build some very basic interactive GUI for a chess-game. The idea is to help players by allowing them to get "help" by allowing them to click on each chess-piece and see suggestions about what moves to make and such. The only requirement I have is that I after a player has clicked (right-clicked with a mouse) on the chess piece, that a popup appears on both sides of the piece. The left piece contains some information about the piece, the right piece what moves to make.

As far as I can work out, in order to do that I must use JPopUpmenu as I can use the show method which accepts x and y coordinates as input. However, I am not able to use two jpopups it seems. Is there a way around this or is there an alternative way to accomplish the same?

Thanks in advance

mKorbel
  • 109,525
  • 20
  • 134
  • 319
user1938803
  • 189
  • 2
  • 10

1 Answers1

1
  • not possible to show() more than one JPopup, maybe bug maybe decision

  • could be possible by using JWindow, better could be un_decorated JDialog (modality, setAlwaysOnTop, toFront)

Community
  • 1
  • 1
mKorbel
  • 109,525
  • 20
  • 134
  • 319
  • Thanks for the idea, but as far as I can work out it is not possible to "popup" these at specific x-y locations? – user1938803 May 17 '13 at 06:01