File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: How do we add Mouselistener to JOptionPane.showInputDialog() popup