2
Contributors
1
Reply
9
Views
5 Years
Discussion Span
Last Post by JamesCherrill
2
  1. Make them buttons (or JLabels) in a JPanel and move them as required (use a null layout manager, set the button attributes to hide the usual borders etc)
  2. Just draw them on a JPanel and have code that checks the mouse click coordinates against the position/size/boundaries of each element to see which one (if any) the click was in

Without more info on your game its hard to say which would be a better choice for you.

Votes + Comments
Thanks :) I'll give that a try
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.