How to create a custom border as follows:
I want to use Polygon at the top of the border, but I don't know how to do this :(
You need to create a custom Decorator . See the following link for an example of how to do this: http://blog.pixelingene.com/2007/06/balloondecorator-source-code/
Decorator