• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Html tag

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,
Colud u pl.. help me out in finding a invisible tag.I have set of text that should be placed in JTextPane which if formatted using html tags.But i need a tag or some special charaters that should be present but invisible.
Is there any such tag in html or any other solution.
Excepting u'r replies
Sonara
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you looking for this -

HTH,
- Manish
 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Manish,

Thanks for u'r response.But What i need is this.
I'm using JTextpane in which the content is set with html tags.I use highlighter to highlight a particular text.
For eg: @asdfghh@
So when mouse is dragged i use a color(yellow) to highlight the text BACKGROUND.But the Foreground of text remains black .U c'uld see @ symbol in the text which is given white color with help of html tag.Since textpane is in white color its not visible. But when i highlight the text with yellow color this symbol gets its visiblity.So i need any special symbol or tag which is present but not visible in html if possible.(b'coz i need some tags which won't cause any effect to alignment of text or property of text at the end of text).
Or c'lud u pl.. help me out in different way.
Excepting u'r reply,
Sonara.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use & #160
theat is the code for a non-breaking space
& nbsp is supposed to work to but it doesnt seem to work right in netscape
(Marilyn added spaces after the & so you could see Randall's notations)
[ April 06, 2002: Message edited by: Marilyn deQueiroz ]
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
arg...it says html is disables so why did that not print?
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
grr....
& # 160
leave out the spaces
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh wait java will just print that wont it...hmmm
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this sounds more like an applet question. it has been a long time since i wrote any java.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you are trying to delimit text that is shown in the JTextPane, but without showing the delimiters?

Have you considered using a <div> tag?

It is a non-displaying tag that can take an 'id' attribute. I've faked out an example below, there are two ways to use it. One is 'proper' HTML, the other is still proper HTML, but it mirrors the delimiters in case you need to search for them.

<div id="@">asdfghh</div>
<div id="@"/>asdfghh<div id="@"/>

Try that.
[ April 06, 2002: Message edited by: Mike Curwen ]
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I can help but maybe I mis-understand what you are trying to do.
You can put your content in a inline container, <span> stuff </span>
If you want to make things invisible then use css properties,position and visibility.
Take a look at the tic tac toe example at my web site.
If I missed your question maybe an example would help me understand better.
 
reply
    Bookmark Topic Watch Topic
  • New Topic