I'm happy to be of some help somewhere ; )

-bill ensley
Bear printing

-----Original Message-----
From: "Jim Rootham" <[EMAIL PROTECTED]>
To: itext-questions@lists.sourceforge.net
Sent: 7/8/06 10:47 PM
Subject: Re: [iText-questions] iText and z-order

Hi Bill

I found this message that had code to redirect from a JTextPane to 
iText.  I didn't see any z-order in it.

From: Bill Ensley <bill <at> bearprinting.com>
Subject: RE: text editor and itext
Newsgroups: gmane.comp.java.lib.itext.general
Date: 2005-12-11 17:47:46 GMT (29 weeks, 6 days, 10 hours and 52 minutes 
ago)

This is the critical snippet.

     // a JTextComponent makes a copy of any graphics you pass to it 
and     then paints itself last.

      // this fix makes the JTextComponent paint when you want it to, 
not when it wants to.


      Rectangle alloc = getVisibleEditorRect(ta);
      ta.getUI().getRootView(ta).paint(g2, alloc);

Thanks very much for that piece of code.  It rescued me big time.

However, we seem to be operating with different values of trivial :)



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to