On Sat, 25 Sep 1999, berry wrote:
> Hi,
>
> I was wondering if anyone knows what this following
> code means?
>
> public Rectangle getBounds() {
> return JFrame.this.getBounds();
> }
Hmm... I would say it's getting the bounds of the frame containing the
rectangle. It doesn't look like a recursive call, cause JFrame.this would
not be a reference to Rectangle, but rather a reference to a JFrame.
Might be a more efficient way of getting the parent frame than doing
SwingUtilities.findParent.
> With Swing classes, at what point is native code actually
> called to do drwing . If you could tell me, I am wondering what classes it
> happens in and what is specifically happening. In 1.1 it would be
> the peer classes.
It's in the pluggable look and feel that is registered for the component.
If you want an example, I have written a PLAF modification for tabbed pane
that renders the tabs with verticaly text instead of horizontally. The
algorithm for calculating tabs izes and doing the drawing isn't perfect,
as it was done just ot figure out how to modify swing components ... if
you would like it let me know and I'll post it.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]