package?chap;
import?java.awt.BorderLayout;
import?java.awt.Color;
import?java.awt.FlowLayout;
import?java.awt.GridLayout;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionList...
分类:
编程语言 时间:
2015-09-09 09:56:31
阅读次数:
178
1.引言在Swing窗口中,我们时常会点击按钮进行计数,例如点击按钮A,第一次弹出窗口1,第二次弹出窗口2....以及按钮的快捷键设置。import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java...
分类:
其他好文 时间:
2015-09-08 22:07:49
阅读次数:
148
1、错误描述严重: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown...
分类:
编程语言 时间:
2015-09-08 18:38:49
阅读次数:
342
node.js出现错误:events.js:85 throw er; // Unhandled 'error' event ^Error: listen EADDRINUSE最后查出来,是其他地方一个tomcat占用了端口。本地开发如果用了太多server,容易引起端口冲突。
分类:
Web程序 时间:
2015-09-08 15:15:45
阅读次数:
169
1 package 2 { 3 import flash.display.MovieClip; 4 import flash.display.Sprite; 5 import flash.events.Event; 6 import flash.geom.Point...
分类:
其他好文 时间:
2015-09-08 13:50:57
阅读次数:
180
相关api:1.// 启动libeventevent_base* m_base=NULL;m_base = event_base_new();2.创建http服务evhttp* m_httpServer=NULL;m_httpServer = evhttp_new(m_base);3.绑定http服...
分类:
其他好文 时间:
2015-09-08 12:28:07
阅读次数:
178
写页面事件的时候,有的时候需要用event.preventDefault取消原有的事件后进行重写,这个大家应该都知道。那么怎么在取消默认事件后再恢复呢。解绑我们自定义的事件就好了。以Jquery为例我们用$(“body”).bind(“touchmove”,function(event){e...
分类:
移动开发 时间:
2015-09-08 12:23:47
阅读次数:
141
让键盘下去总的来说就是结束编辑或让键盘失去第一响应,我一般用这3种方法:第一种:点击屏幕让键盘结束编辑。-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.view endEditing:YES];}第二...
分类:
移动开发 时间:
2015-09-08 12:21:30
阅读次数:
403
Actions contain no functionality, but rather describe an event in our application. In this lesson we will describe our Actions as they relate to our a...
分类:
其他好文 时间:
2015-09-08 00:01:55
阅读次数:
181
What is the RxJS equivalent of Array reduce? What if I want to emit my reduced or aggregated value at each event? This brief tutorial covers Observabl...
分类:
Web程序 时间:
2015-09-07 20:57:09
阅读次数:
250