wenzheng.yang
2023-07-21 6d21439572df94aa8bda088708d9725abdfbb7cc
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);
        
    }
    
    
 
}