File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTextPane through the mouse to select image problem
 
Similar Threads
Help with Event handling
StyleAttributes not applying when called in quick succession
JEditorPane html getCaretPosition
How to display ghost image of JTable multiple row selection
TextArea and events