473,503 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<html> inside JTextarea

184 New Member
Hi,
can anyone please say me how to add <html> tags inside JTextarea?
Thanks in Advance.

-Thanks & Regards,
Hamsa
Apr 3 '08 #1
3 8824
r035198x
13,262 MVP
Hi,
can anyone please say me how to add <html> tags inside JTextarea?
Thanks in Advance.

-Thanks & Regards,
Hamsa
Use an editor pane instead.
Apr 3 '08 #2
gaya3
184 New Member
Use an editor pane instead.

Thank you.. if u dont mind can u please clear my following question..
In JTextarea,I need to change the font colour for particular word or first word in that textarea.How is that possible? if i use as textarae.setFont() means whole text in that textarea gets change rite?


-Thanks & Regards,
Hamsa
Apr 3 '08 #3
JosAH
11,448 Recognized Expert MVP
Thank you.. if u dont mind can u please clear my following question..
In JTextarea,I need to change the font colour for particular word or first word in that textarea.How is that possible? if i use as textarae.setFont() means whole text in that textarea gets change rite?


-Thanks & Regards,
Hamsa
Yep right; a JTextArea is a simple widget: it uses one back/foreground colour
for everything. As was suggested already you need a component that can handle
StyledDocuments, in particular an HTML document. Read the API documentation.

kind regards,

Jos
Apr 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3468
by: Xah Lee | last post by:
with strict HTML spec, can one have <p> tags inside table's <td> tag? also, in strict XHTML, can one have <p> tages inside <div>? Thanks. Xah xah@xahlee.org ∑ http://xahlee.org/
3
84567
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
9
3121
by: Julia Briggs | last post by:
How do I construct a <iframe> or equivalent for FireFox/NS browsers, inside a screen centered <div> tag? Can it be done?
4
1700
by: bunch92 | last post by:
Hi, I am stuck with ideas guys .... Can someone please tell me what I did wrong in the code below ? I think it might be the <script> tag inside the function ? Thank you <SCRIPT...
2
2562
by: Andrew Donaldson | last post by:
I'd welcome some help in understanding what's going on with graphical browsers in the navigation list at: http://www.bounceandtickle.org.uk/index.html (This site is not about what it might...
1
2233
by: John | last post by:
Hi var poster="<html><head..... etc .... </html>"; var animal='dog'; The string contains images and text that changes. Originally I wanted to do something like print "<a href=" +...
10
14128
by: neverquit | last post by:
hi , Iam Nagesh,Begineer in using Ajax,well i have been using ajax in application, i have faced a problem while placing the responseTEXT into the <div> tag positioned inside the <form> tag iam...
5
5245
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will...
7
2531
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I'm trying to use the W3C Markup Validator to validate my HTML and I'm getting some errors: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del",...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.