• Post Reply Bookmark Topic Watch Topic
  • New Topic

viewing images,text,providing editing features  RSS feed

 
bhagavatula indu sekhar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what should be used to provide features like editiing

text and images on the same component using Java.
example : Microsoft Word

editing implies deletion and insertion of images,deletion and insertion of text and other operations.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start with a JTextPane and StyledDocument. You can use a JFileChooser to allow the user to select image files and load them with the ImageIO class read methods. The Java tutorial has examples of using both of these components:
How to Use Editor Panes and Text Panes
How to Use File Choosers
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!