The moose likes Swing / AWT / SWT and the fly likes Browsing HTML and XML files in text area Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Browsing HTML and XML files in text area" Watch "Browsing HTML and XML files in text area" New topic

Browsing HTML and XML files in text area

ola farouk gharably

Joined: Jan 11, 2005
Posts: 5
I want to browse the text in a html or xml file in a text area, so i'll make a button that will use file chooser and then i want a way to show the html or xml file i choosed..

I may do the following, modify the text of these files and remove all tags and keep the text and then read the text and write it in the text field...
This is a view so can anyone help giving me better ideas or supporting mine
of even suggest other way than using text area ..

Gr8 Thx

Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
using JTextPane instead.

Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: Browsing HTML and XML files in text area
Similar Threads
saving data in JavaScript
Associating 1 XSL file with many XML files
Reading a textarea as a stream
Using UTF-8 encoding for jsp textarea field instead HTML encoding
Restricting access to file types in file input tag