How can i create a frame with round edges in Java..I have already created round edge button

后端 未结 1 524
感动是毒
感动是毒 2021-01-19 06:35
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
import java.awt.event.*;
import javax.swing.border.*;

public class ChangeButtonShape {
public stati         


        
相关标签:
1条回答
  • 2021-01-19 07:15

    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.

    0 讨论(0)
提交回复
热议问题