I am doing on WYSIWYG Html Editor using Java Program. I need When I click mouse on Paragraph element, It should be displays
tag in JOption dialog. Please advice me How can i do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See for example this one http://java-sl.com/JEditorPaneStructureTool.html
In simple words you can get your
HTMLDocumentand get paragraph usinggetParagraphElement()method. UseviewToModel()method ofJEditorPaneto get caret offet for the clicked point.