Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Harsha Jay
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should probably use a JDialog instead of a JOptionPane. Easier to work with if there is any customization that needs to be done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic