zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
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
26
package IDcardManage;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import javax.swing.JButton;
 
public class JButtonImage extends JButton {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    public JButtonImage(String title) {
        Font f=new Font("΢ÈíÑźÚ",Font.PLAIN,15);//°´Å¥×ÖÌåÉèÖÃ
        this.setText("  "+title+"  ");
        this.setFont(f);
        this.setContentAreaFilled(false); //ÉèÖð´Å¥±³¾°Í¸Ã÷
        this.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//Êó±êÖ¸ÔÚ°´Å¥ÉϱäÊÖÐÍ
        this.setSize(102,126);
        this.setForeground(Color.white);
        this.setBackground(Color.gray);
        this.setFocusPainted(false);//È¥µôÐéÏß
        
    }
 
}