class NumberListener implements ActionListener{ public void actionPerformed(ActionEvent e){ if (!append) { tf.setText("") append=true } String s=tf.getText() s+=e.getActionCommand() tf.setText(s) if (!btn[10].isEnabled()){ for(int i=10 i<=14 i++) btn[i].setEnabled(true) } }
资源简介:class NumberListener implements ActionListener{ public void actionPerformed(ActionEvent e){ if (!append) { tf.setText("") append=true } String s=tf.getText() s+=e.getActionCommand() tf.setText(s) if (!btn[10].isEnable...
上传时间: 2013-12-05
上传用户:wys0120
资源简介:java 100例子 import javax.swing.JOptionPane //调用method class c { //定义名字 public static void main(String[] args) { //开始method JOptionPane.showMessageDialog( null, "错误" ) //显示一条信息 System.exit(0) // 结束程序...
上传时间: 2015-05-18
上传用户:gengxiaochao
资源简介:package youxiangtu import java.io.* public class YXTu{ static public void main(String[] args){
上传时间: 2014-01-10
上传用户:zjf3110
资源简介:The enclosed VB project includes a VB class that implements the Rijndael AES block encryption algorithm. The form in the project runs some test data through the class.
上传时间: 2015-01-30
上传用户:JIUSHICHEN
资源简介:A wrapper class that implements the TableModel interface, given both TreeTableModel and a JTree.
上传时间: 2013-12-23
上传用户:Miyuki
资源简介:if(e.getActionCommand()=="参数法画圆"){ p=11 } } //actionPerformed //实现接口WindowListener的所有方法,用于处理发生在窗口上的事件 public void windowClosing(WindowEvent e)
上传时间: 2016-02-27
上传用户:busterman
资源简介:public void playerUpdate(final Player p, final String event, final Object eventData) { // queue a call to updateEvent in the user interface event queue Display display = Display.getDisplay(midlet) display.callSerially(new Runnable...
上传时间: 2013-12-18
上传用户:1109003457
资源简介:ublic class DropMidlet extends MIDlet { public static DropMidlet midlet private static MainCanvas m_MainCanvas //定义MainCanvas的引用 public DropMidlet() { super() //初始化,继承MIDlet类的构造 midlet = this }
上传时间: 2016-11-26
上传用户:cc1
资源简介:Java Class, which implements Rational Numbers. Includes a simple test.
上传时间: 2017-03-11
上传用户:标点符号
资源简介:Awt extends Applet implements ActionListener,ItemListener,AdjustmentListener,MouseMotionListene
上传时间: 2014-01-25
上传用户:wl9454