This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes JTextPane through the mouse to select image problem 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 » Databases » JDBC
Bookmark "JTextPane through the mouse to select image problem" Watch "JTextPane through the mouse to select image problem" New topic
Author

JTextPane through the mouse to select image problem

chen zhikai
Greenhorn

Joined: Jun 09, 2011
Posts: 2
I want to do a similar QQ add custom image function, such as the mouse cursor selected by graph and access, this incident of the triggers is: right mouse, select the popup menu "add custom image" option trigger...
Can someone help me?

the following method is realized, but not good control, also very bad to use, I look forward to a better solution, thanks!

 
Consider Paul's rocket mass heater.
 
subject: JTextPane through the mouse to select image problem
 
Similar Threads
Help with Event handling
How to display ghost image of JTable multiple row selection
JEditorPane html getCaretPosition
StyleAttributes not applying when called in quick succession
TextArea and events