Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
Swing / AWT / SWT
html inside JTextarea
Hamsagayathri Palanisamy
Ranch Hand
Posts: 44
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
can anyone please say me how to add html tags inside JTextarea?
Thanks in Advance.
-Thanks & Regards,
Hamsa
Rob Spoor
Sheriff
Posts: 22665
127
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use JEditorPane or JTextPane to display HTML. You might want to call setEditable(false) on the JEditorPane to make it look better, but users won't be able to edit it.
JTextArea is much less capable of using different styles.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Hide a URL: Example (Download THIS File)
Reducing the thickness of scroll bars?
HTML Content in a JPanel
JPanel and JTextArea problem
How to scroll to top of JScrollPane
More...