*
The moose likes Swing / AWT / SWT and the fly likes How do we add Mouselistener to JOptionPane.showInputDialog() popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do we add Mouselistener to JOptionPane.showInputDialog() popup" Watch "How do we add Mouselistener to JOptionPane.showInputDialog() popup" New topic
Author

How do we add Mouselistener to JOptionPane.showInputDialog() popup

Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
Hello all,
I am trying to add Mouselistener to JOptionPane.showInputDialog() dialog box to listen to the mouse right click and to pop up a menu for cutting or pasting the text
like this
JOptionpane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)

Thanks for reading this post
Have a nice weekend
Harsha
[ January 24, 2004: Message edited by: Harsha Jay ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

You should probably use a JDialog instead of a JOptionPane. Easier to work with if there is any customization that needs to be done.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do we add Mouselistener to JOptionPane.showInputDialog() popup
 
Similar Threads
Tooltips
JSlider and "mouse click"
Selection of Panel
How to add JtextField to JOptionPane
close JTabbedPane