Vote count:
0
Folks,
I have read several threads on stackoverflow and googled some(http://ift.tt/1jLou8p) and asked around all Swing experts at work before deciding to post a question. I have basic understanding of Swing and this complicates things terribly.
Please see this link - http://ift.tt/1jLou8q - I have attached a picture of a button...this is a button with nearly 3 borders (as much my eyes can tell). The rectangle on the right is the Digital Colormeter application on a Mac. The mouse is sitting between the black border and the grayish border that you see on the button image.
Based on what we see on the pixelated image of the border, it appears the border has a tail or a shadow that covers many pixels. Take the Blac for instance, it has atleast 3 pixels(internal border). The external border is grayish - and it spans nearly 6 pixels.
Here is what I have done: I experiemented with several versions of Strokes and with BasicStroke(3.0F), I could produce 2 pixels of information for both the intenal and external border.
Here is my question: 1. Is such a "high touch" rendering possible using Swing in Java 7? 2. If so, can you please point me in the right direction?
thank you
Aucun commentaire:
Enregistrer un commentaire