?? person.java
字號:
import java.awt.*;
import java.awt.event.*;
public class Person extends Button implements FocusListener
{ int number;
Color c=new Color(255,245,170);
Person(int number,String s)
{ super(s);
setBackground(c);
this.number=number;
c=getBackground();
addFocusListener(this);
}
public void focusGained(FocusEvent e)
{ setBackground(Color.blue);
}
public void focusLost(FocusEvent e)
{ setBackground(c);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -