This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do we add Mouselistener to JOptionPane.showInputDialog() popup