General help/advice with buttons and popups

Hi and thanks in advance!

I've been working on a game project and no I'm looking into making a basic GUI. To put it short this is what I'm trying to achieve:

The primary component is a J(Scroll)panel that houses moving in-game objects. I want the players to be able to hover the mouse over an object and get some kind of information popup that is tied to the location of the object hovered over. Secondly I want the user to be able to click on an object with the left mouse button in order to "select" the object and also to be able click with the right mouse button to open a popup menu next to the object.


You should add a mouse listener to your panel. Like this:

panel.addMouseListener(new MouseAdapter() { 
  public void mousePressed(MouseEvent me) { 

Need Your Help

Objective-c, AVPlayer stops/pauses playing automatically sometimes and don't resume itself

ios objective-c iphone audio avplayer

I am trying to implement AVPlayer for play audio file from URL. It is working fine. But sometimes AVPlayer stops/pauses playing and do not resume again. If I click on play button then it works fine...

HTML5 load a png buffer into a canvas (for streaming purpose)

javascript html5 streaming html5-canvas buffer

Through a websocket, I retrieve a binary buffer of an image in a PNG format (something like that).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.