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);//È¥µôÐéÏß
|
|
}
|
|
}
|