Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Solaris SWING Middle Mouse Button  RSS feed

 
Rayudu addagarla
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Any one know whats the operation that is invoked when we click the middle mouse buttom.
if select some text and click on middle mouse button the selected Text is pasted in a JTextPane.
*** I want to disable the paste operation.
i override the paste method but still its getting pasted, even after a setEditable(false) for that JTextPane component.
any help will be apprciated.
thanks
 
Bhagya Tangutur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this looks like bug...what i expect is it must not paste if u make it editable flase.try setEnabled(false)....may be this works...
 
Chantal Ackermann
Ranch Hand
Posts: 508
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!