826220679@qq.com
2023-07-22 674747e1ccde2707bf4d4c02d52b7ef5af5a97dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package publicclass;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
 
/**°´Å¥Ä£ÐÍ*/
public class JButtonModel2 extends JButton{
 
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    public JButtonModel2(String title) {
        Font f=new Font("΢ÈíÑźÚ",Font.PLAIN,15);//°´Å¥×ÖÌåÉèÖÃ
        this.setText(title);
        this.setFont(f);    
        this.setForeground(Color.red);
        this.setBackground(Color.white);
        
    }
    
    
 
}