On page 403 of Hardy's book is an example for a recessed shadow that starts
off like this:
Font labelFont = new Font("Verdana", Font.BOLD, 36);
Shape labelShape = TextLayer.makeTextBlock("TEST", labelFont); // Works
well
I would like to use a shape that I've defined this way:
RoundRectangle2D rect2 = new RoundRectangle2D.Double(0.0, 0.0, 70.0, 16.0,
14.0, 14.0);
I want a recessed shadow inside this shape just like it's inside the text in
the font. However, when I do the following, the shadow is for the bounding
box, not for the rounded rectangle. I think I'm missing something simple,
but what is it?
Shape labelShape = rect2; // Does not work
I'd be glad to supply the entire code to anyone who can help with this.
David Anderson
User Interface Design Engineer
A picture is worth a thousand words...
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".