import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
import java.awt.event.*;
import javax.swing.border.*;
public class ChangeButtonShape {
public stati
I think it might be possible using AWTUtilities.setWindowShape
. Take a look at this article: http://today.java.net/pub/a/today/2008/03/18/translucent-and-shaped-swing-windows.html
However, AWTUtilities
is not public yet as it is in the com.sun.awt
package, so you shouldn't be using it. I believe it will be released in Java 7.