?? password.java
字號(hào):
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
/*
<APPLET
CODE=password.class
WIDTH=200
HEIGHT=200 >
</APPLET>
*/
public class password extends Applet implements ActionListener
{
public TextField text1;
public TextField text2;
public void init()
{
text1 = new TextField(30);
add(text1);
text2 = new TextField(30);
add(text2);
text1.setEchoChar('*');
text1.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == text1){
text2.setText(text1.getText());
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -