- 浏览: 144098 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (110)
- CoreJava (18)
- 待解决 (1)
- 数据结构 (3)
- 科普 (2)
- 网站 (1)
- DataBase (8)
- Access (1)
- Asp (1)
- JSP (1)
- 操作系统 (8)
- Tech (1)
- Linux (11)
- Career (5)
- MongoDB (1)
- Embedded (1)
- JavaScript (1)
- UltraIso (1)
- Linux命令 (1)
- DesignPattern (1)
- Ruby (13)
- Vim (1)
- 自考 (2)
- Github (5)
- zrProject (1)
- Emacs (4)
- Math (3)
- Ajax (1)
- 没看懂 (1)
- HTML (1)
- Philosophy (1)
- 软件 (1)
- 面试 (1)
- 考试报名 (3)
- Regex (1)
- 日语 (1)
- 生活 (1)
最新评论
一个对象实例化之后,在它的方法体中出现的this就是指自身。
addItem(menu1,"跑步",this)在MenuWindow类的方法中,
因此这个this为MenuWindow对象,
使用自身对象是因为MenuWindow对象实现了ActionListener接口,
所以可以作为监视器注册给菜单项。
这个程序中getsource()不是获得数据源,
而是获得产生某个ActionEvent事件的对象的引用,
具体来说就是当鼠标点击的为button对象时e.getSource()==button才为真。
发表评论
-
利用反射实现ORM
2012-03-28 13:37 942http://royzhou1985.iteye.com ... -
Eclipse插件安装
2012-03-28 09:29 863装载:http://gooss.org/are-two- ... -
Date & Calendar 类的使用
2012-03-27 14:19 625Java 语言的Calendar(日历),Date(日期 ... -
Java文件流 编码问题 - 读取文件时指定字符编码
2012-03-25 22:04 11492折磨了一天的问题,终于在黄昏的时候解决了,现在一吐为 ... -
打jar包
2012-02-04 17:12 712其实JAR文件的格式是ZIP ... -
JavaBean - Bound属性
2012-02-04 15:54 9654.4.3 Bound属性 Bound属性表示当该种 ... -
怎样在程序里获得一个空指针?
2012-01-28 15:56 6326.2 怎样在程序里获 ... -
制作可执行的Jar包
2012-01-22 16:35 695通常有两种,一种是制 ... -
Thread Local
2012-01-22 10:28 697What is Thread Local? Threa ... -
Jni介绍
2011-10-26 19:33 557http://baike.baidu.com/view/127 ... -
获取外网IP地址
2011-10-26 18:47 853访问 http://checkip.dyndns.org/ -
static变量生存周期
2011-10-13 22:38 874标准规定static变量保证在第一次使用前初始化,但是并不保证 ... -
String 引用类型与基本类型区别
2011-10-13 22:20 778String a="A"; Stri ... -
为什么会有serialVersionUID
2011-10-13 21:17 589java文件中为什么会有s ... -
抽象类与接口的区别
2011-10-09 11:30 507首先,我们来看一下抽象类的概念,java编程思想中说“万物皆对 ... -
transient用法
2011-09-19 11:16 774Java的serialization提供了一种持久化对象实例的 ... -
例1.1 TextFileTest
2011-07-06 23:19 625package SectionIO; import java ...
相关推荐
Flashget的linux源码 支持多线程,使用了开源的pthread! 仅供学习!
get android source code
java解决405 - HTTP method GET is not supported by this URL
if e getSource ok || e getSource c || e getSource a { BigInteger ia new BigInteger a getText ; BigInteger ic new BigInteger c getText ; String ib b getText ; 判断是用加法 还是减法 还是...
||(mItemFlowCenter == aEvt.getSource()) ||(tBtnCenter == aEvt.getSource())){ panelCompent.setLayout(new FlowLayout(FlowLayout.CENTER)); labHit.setText("流式布局管理器中靠齐"); } else { if(...
this is about how to get psnr
This example uses the Inet control to 下载 the HTML source from ... This could easily be used in conjunction with the Get Web Links example to make a full fledged web-spider and search engine program...
IE插件直接观察http协议执行细节捕获POST和GET方法.rar
w_x mi_ni app source get
node-get-source-map-consumer-源码.rar
knowledge you will need to be successful, it is, hopefully, enough to get you started. The second audience is experienced digital forensics practitioners new to open source tools. This is a fairly ...
if (e.getSource() == SetHouseNum) { new GetHouseInfo(); } } public int getID() { return ID; } public void setID(int id) { ID = id; } //保存到本地 public void Write() { try { ...
} if(e.getSource().equals(btn4)) { Graphics g = this.getGraphics(); g.clearRect(0, 0, this.getWidth(), this.getHeight()); } if(e.getSource().equals(btn5)) { a='4'; } if(e.getSource().equals(btn6)) { ...
} if<e.getSource<>.equals<btn4>> { Graphics g = this.getGraphics; g.clearRect, 0, this.getWidth, this.getHeight<>>; } if<e.getSource<>.equals<btn5>> { a='4'; } if<e.getSource<>.equals<btn6>> { a='5';...
else if(e.getSource()==threeGradeItem){ amountOfDisc=5; tower.setAmountOfDisc(amountOfDisc); tower.putDiscOnTower(); } else if(e.getSource()==renew){ tower.setAmountOfDisc(amountOfDisc); tower...
配合我的博客文章使用【Python与R协同完成【中国裁判文书网】文书内容爬取】
This source demonstrate how to get the active doc
file = getSource ( './scripts/index.min.js' ) 将同步读取文件(通过XHR或通过文件系统API,具体取决于环境),并返回其缓存的表示形式。 结果将包含以下字段: file . path // normalized file path
free or have a simple sign-up process make it a lot easier to get started. Broad coverage Quite a few startups build infrastructure and then hope that users will populate it with data. Most of the ...
得到这个 此扩展名在浏览器呈现的文本中找到的每个“和”之后都放置“(获取此)” 支持语言:English (United States)