- 博客(14)
- 收藏
- 关注
原创 javascript随笔
1、作用域定义变量使用var语句。当变量在函数内部定义时,var有着函数范围(function-scope)级别,这个变量不能在函数外被访问。JavaScript中没有其他的范围域粒度了,更具体的说,JavaScript中没有块域(block-scope)。任何在函数中使用但没有用var明确定义的变量,都会被假定属于全局对象。任何没有被明确初始化的变量都会被赋值于undefin...
2009-04-04 17:29:22
124
netbeans中生成updates.xml
在编译netbeans平台时,生成nbm后,竟然没有updates.xml,看了下代码,找到了这个ant命令,在netbeans build system模块中,在build.xml中添加如下target。[code="java"] ...
2009-03-12 11:05:43
233
如何编译netbeans平台
第一步下载平台源码,我只下载platform的,每日构建的下载地址为http://bits.netbeans.org/dev/nightly,选择最新的日期,在页面选择zip格式文档,再选择*platform-src.zip,下载后,解压,在nebeans中打开项目,选择nbbuid模块,打开后为Netbeans Buid System,在其根目录下建立user.build.properties文...
2009-02-24 21:40:50
462
netbeans rcp中如何编程设置主窗口标题
[code="java"] public static void setTitle(final String title) { WindowManager.getDefault().invokeWhenUIReady(new Runnable() { public void run() { WindowManager...
2008-10-14 15:37:07
746
netbenas中查找中文字符
查找内容[\u4e00-\u9fa5]选择正则表达式测试中,找到部分中文,不知道是不是都可以找得出来。修正:[\u4E00-\u9FA5]|[\uFE30-\uFFA0]
2008-09-22 16:33:30
172
原创 Swing中的线程(摘录)
As we discussed earlier, Swing relies on the older AWT GUI toolkit for top-levelwindow support and event dispatching. Whenever you run a Swing application,three threads are automatically created. ...
2008-09-22 10:27:09
103
netbeans显示错误信息
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, exception);
2008-08-20 14:20:53
752
NotifyDescriptor经典用法
[code="java"]private static boolean showDialog(URL whereTo) { String msg = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Message"); String tit = NbBundle.getMessage(F...
2008-08-20 14:00:30
230
how to add development plugin centers
* To install the development update center Select to Tools | Plug-ins from the menu and go to the Settings tab. click Add. Enter the following: Name: dev (or any name of your choic...
2008-05-18 10:01:01
120
netbeans log
You can use:File udir = new File(System.getProperty("netbeans.user"));or you can use:FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();File udir = FileUtil.toFile(ro...
2008-04-11 23:46:24
288
Autoupdate EVERY_STARTUP
The core snippet is here:public class Installer extends ModuleInstall { public void restored() { modifyAutoupdateSettings(); } private void modifyAutoupdateSettings (...
2008-04-11 23:41:01
163
Replacing the default Exception dialog
1、adding a META-INF/services for java.util.logging.Handler2、#-org.netbeans.core.NbErrorManagermy.company.MyErrorHandler
2008-04-11 23:36:37
107
推荐netbeans的两个小插件
1、Run Terminalhttp://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=2876打开操作系统的shell,windows下就是cmd了,直接在项目目录打开,用途不多说了,有时候挺管用。2、Explore From Herehttp://sourceforge.net/pro...
2008-01-02 10:13:18
688
编译netbeans6
1、下载netbeans源代码,解压,例如:e:/netbeans/source。2、用netbeans打开源码路径中的nbbuild3、修改defaults-properties.xml中的为4、编译nbbuild,如果安装的是jdk1.6,需要安装jdk1.5,在nbbuild项目中新建user.build.properties文件,加入:nbjdk.home=d:...
2007-12-05 10:17:46
163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人