Drawing HTML JLabels on Graphics

From: Karsten Wutzke (kwutzke-blahblah_at_emporis.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 14:07:26 +0100

Hi all!

I'm currently successfully drawing a graph and strings onto a Graphics2D
object. However, the strings contain indices, like w1(x) or TA1, where
the numbers are displayed as subscipts (HTML <sub> tag). I use this sub
tag for creating JLabels, so in any other GUI, the indices appear lowered.

Now the question is:

How do I create the same effect for a Graphics2D object?

Is there any way to make use of the JLabels HTML rendering code?

Thanks for helping!

Karsten Wutzke



Relevant Pages

  • Re: How to retrieve a text string information
    ... Users can place any number of such text strings at will. ... May I tag ... The default aspect ratio is 1:1.. ... I do not use the Tk command "rescale" as it does not result in a canvas ...
    (comp.lang.tcl)
  • Re: tag, tag_end in parser
    ... Iam in process of creating pull parser. ... parsing only with strings. ... starting of tag and end of tag. ... properly parsing XML would require writing an LL ...
    (comp.lang.ruby)
  • Re: Stack-based behaviour of Regexes
    ... These are relatively short strings ... and the DOM seems overkill and costly in terms of cycles ... this begins and where the corresponding tag ends (so the index ... If regular expressions can be used to do nested parenthesis then can't a ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Stack-based behaviour of Regexes
    ... These are relatively short strings ... and the DOM seems overkill and costly in terms of cycles ... this begins and where the corresponding tag ends (so the index ... If regular expressions can be used to do nested parenthesis then can't a ...
    (microsoft.public.vb.general.discussion)
  • Re: Stack-based behaviour of Regexes
    ... These are relatively short strings ... and the DOM seems overkill and costly in terms of cycles ... this begins and where the corresponding tag ends (so the index ... If regular expressions can be used to do nested parenthesis then can't a ...
    (microsoft.public.dotnet.languages.csharp)