Link to home
Start Free TrialLog in
Avatar of DanFlyBoy
DanFlyBoy

asked on

How to Create popup in Jtable?

I need to create a popup in a Jtable, when the mouse is clicked on a cell in a jtable, a popup needs to be displayed.  I am unfamilar with creating a popup.
Avatar of zzynx
zzynx
Flag of Belgium image

You can use JOptionPane.showMessageDialog()
Different examples at http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

But
 
     JOptionPane.showMessageDialog(new JFrame(), "Hello world!");

just works
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)