I've read on this list that the Blackdown port of 1.3 is expected
around first quarter next year, so in the meantime I thought I'd
have a quick shot at trying to merge the Swing fixes in 1.3 over
to the Blackdown 1.2 pre-v2.  I've been developing on NT the past
few months, and the bugs with JTextPanes and printing in 1.2 were
agonising until they were blessedly removed in 1.3.  I know nothing
about the implementation of java and one person on this list did
say that it wouldn't be simple, but I thought it wouldn't hurt to
give it a go.

By compiling just the 1.3 source for JTextPanes and the look-and-
feel stuff I've got a sort of 'hybrid' system which seems to have
fixed the JTextPane bugs and I can now print, where I couldn't
before.  However my 'print preview' application code (which printed
to
an extended JComponent) doesn't work, because it expects a Graphics2D
object to be presented to its paint() method, but my 1.3 hybrid
passes it just a Graphics object instead.  Since the preview function
also failed under the normal Blackdown 1.2 as well (reference to
a null pointer (by the way it *does* work properly with 1.3 on NT!))
I
guess I'm still ahead, but I thought I'd ask this
list for any quick pointers on how/where a component derives its
Graphics object for painting.  I've had a look through the Swing and
AWT code but it's totally beyond me; hopefully those who have ported
java might be able to give me some hints.

In the Blackdown 1.2 pre-v2 a JComponent gets passed a
BufferedImageGraphics2D object when its paint() object is called;
with my 1.3 Swing mixture my paint() method gets a SwingGraphics
object instead!  Anyone out there have any idea of why this is so,
or give me an idea as to where I can look?  I know this is beyond
the 'responsibility' of the Blackdown porters, but since there are
people on this list who know lots about the mechanics of java's
implementation I didn't think it would hurt to ask.

Thanks,



Brad Rosser
[EMAIL PROTECTED]


=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to