>>I'm currently successfully drawing a graph and strings onto a Graphics2D
>>object. However, the strings contain indices, like w1(x) or TA1, where
[quoted text clipped - 9 lines]
> paint JLabel with HTML to your Graphics2D.
> --
Yep, that's what I thought of. But how do I use it? Which method do I
use? I looked in the docs, but I couldn't find anything like
Graphics2D.drawComponent(label) or such.
Karsten
ak - 01 Mar 2004 16:02 GMT
> Yep, that's what I thought of. But how do I use it? Which method do I
> use? I looked in the docs, but I couldn't find anything like
> Graphics2D.drawComponent(label) or such.
>
> Karsten
lol,
not Graphics2D.drawComponent(label),
but
JLabel.paintComponent(Graphics g); //preferred method
or JLabel.paint(Graphics g); // if you really know what you doing
--
____________
http://reader.imagero.com the best java image reader.