Add roundRect & Fix bug

Fix don't disappear resize panel
remove warnings

suit for jdk7