KR F
Posts: 10
Nickname: kr
Registered: Jul, 2003
|
|
Re: buttons help
|
Posted: Jul 29, 2003 12:13 AM
|
|
You can set the current drawing to drawOval() and fillOval() which work similarly, but you might want to enlarge the button so that it becomes a circle rather than an oval, such as
Dimension size = getPreferredSize(); size.width = size.height = Math.max(size.width, size.height); setPreferredSize(size);
try Oval with specific coordinates add(newJButton("send"),newOval(2,0,2,1));
Look at http://developer.java.sun.com/developer/TechTips/txtarchive/1999/Aug99_PatrickC.txt This tutorial is ok, but you would have to adapt the file to be an applet
|
|