记录精彩的程序人生
1.项目右键打包为Zip分发 2.将上个步骤生成的zip文件(D:\GitHub\acuistock\dist\acuistock.zip)解压到硬盘如d:\acuistock 3.参考http://acuilab.com/articles/2020/02/04/1580814691515.html,设置jdk(区分32位/64位) 4.将FTAPIChannel.dll(区分32位/64位)拷贝到运行目录(d:\acuistock) 5.可执行文件在D:\acuistock\bin目录下 6.将d:\acuistock目录重新压缩为zip包
使用Netbeans 6.8 创建了一个Netbeans Platform 工程,以Zip形式发布后, 按照以下操作,可 以在客户端免安装JDK: 从已安装JDK的计算机中,提取JDK:eg. C:\Program Files\Java\jdk1.6.0_19; 复制到<运行目录>下,重命名为jdk; 编辑<运行目录>/etc下的conf文件: jdkhome="./jdk"。 OK了^O^
以下内容来自《NetBeans富客户端编程权威教程》P342 在首次创建新的应用程序时,"工具"菜单下是没有"更新中心"菜单项的。 "更新中心"菜单项没有出现,是因为在建立独立的应用程序套件项目时,把IDE的模块都排除了——自动更新模块也被排除了。所以,开发者必须让应用程序将提供NetBeans IDE "更新中心"向导的模块包含进来,当然还有它的支持功能——对应的菜单项以及"模块管理器"。 以下为Netbeans 7.1截图
仅仅在 @Override public void componentOpened() { syncBtn.requestFocus(); } 中指定还不够,还需要重载 @Override public void requestFocus() { super.requestFocus(); syncBtn.requestFocus(); } 才行。。。
Since the resolution of issue 92570, it is possible to show a modal dialog after the appearance of an application's splash screen, but before the appearance of an application's main window. And what would one want to put there? A login screen, of course. With this enhancement, it is possible to integrate some level of authentication into your NetBeans Platform application. The specific method in question here is DialogDisplayer.notifyLater, which can now also be called before the main window is ....
NetBeans Platform Login Tutorial This tutorial demonstrates how to create a login form for a NetBeans Platform application with very simple user and password management. The login will be implemented with the DialogDisplayer class of the NetBeans APIs. The dialog that you create in this tutorial will be visible whenever the user starts the application. The passwords and usernames will be stored in a preferences file, which is not very safe. Therefore, this tutorial will provide a solution to enc....
Customize Netbeans Platform Splash Screen and About Dialog October 18th, 2007 | by Tonny Kohar | During development of our product Sketsa SVG Editor, we need to customize the default Netbeans Platform About Dialog and splash screen as part our product branding. Note: this is tested on Netbeans IDE 6-beta1 Customize the Splash Screen Create the image using any image editor application to suit your particular branding. If you want to have single image for both splash and about dialog, please mak....
https://dzone.com/articles/secrets-netbeans-window-system
When you have no more than this dependency in the application module of your NetBeans Platform application, you have all you need for the simplest imaginable NetBeans Platform application. <dependencies> <dependency> <groupId>org.netbeans.modules</groupId> <artifactId>org-netbeans-core-startup</artifactId> <version>${netbeans.version}</version> <type>jar</type> </dependency> </dependencies> The above results in one direct d....
Attach source code to a Netbeans Library Wrapper Module I’m new in NetBeans and today I’ve been struggling a couple of hours with the simple task of attaching the source code for an external JAR (NetBean Library Wrapper Module). I’ve been trying to find in google how to do it without success until I reached this post in the netbeans-users mailing list. Then I realized that I should been looking into the NetBeans Help first. The entry at Help -> Help contents -> Java Applications -> Deb....
Lookups are one of the most important parts of the NetBeans Platform. They're used almost everywhere and most of the time when you ask something on a mailing list the answer is "Use Lookups!". Many times when the use of Lookups is explained it's in a very specific context, e.g. selection management or ServiceLoaders. That makes Lookups look complicated and hard to understand, while actually they are very simple and extremely powerful. That's why I guess it's time to write an article that explain....
// 设置主窗口标题 WindowManager.getDefault().invokeWhenUIReady(new Runnable() { @Override public void run() { WindowManager.getDefault().getMainWindow().setTitle("xxx系统"); } });
参考 https://stackoverflow.com/questions/2257344/integrated-terminal-window-in-netbeans?r=SearchResults http://wiki.netbeans.org/TerminalEmulator http://wiki.netbeans.org/AJourneyThroughTheVirtualTerminal 首先下载Netbeans源码,我这里是Netbeans8.2的,将其中的lib.terminalemulator模块源码解压出来 将src目录下的org.netbeans.lib.terminalemulator包下的源码和examples\TermApp\src目录下的nbterm包下的源码拷贝到工程中 修改nbterm.Main中的static Mode mode = Mode.NONE // 因为Windows下不支持REGULAR,所以此处改为NONE // static Mode mode = Mode.REGULAR static Mode mode = Mode.NONE....
There are several new classes that relate to the Output window, resulting in cool enhancements, such as the Output window in Test Runner. New classes include IOColorLines, IOColors, and IOContainer. Here's IOColorLines: try { InputOutput io = IOProvider.getDefault().getIO("Colorful Output", null); IOColorLines.println(io, "Hello....", Color.GREEN); IOColorLines.println(io, "how....", Color.RED); IOColorLines.println(io, "are....", Color.BLUE); IOColorLines.println(io, "you...?", Color.MAGENTA); ....
Antonio's $HOME NetBeans is 10 today!! Cooking with the NetBeans Platform v 5.5 Practical API Design Confessions of a Java Framework Architect.rar 1. About these notes 1.1. Why NetBeans Platform? I have always wanted to take a deep look at the NetBeans Platform as a mechanism for building large complex Swing applications. During this summer I have allocated some time to do so and the fact is that it's just fantastic! NetBeans is between six and eight years old. Sun adquired NetBeans on 2000, bu....
Introducing NetBeans Platform basic concepts to Swing developers. ——Antonio Vieiro
warning: had to upgrade dependencies for module org.chartsy.stockscanpro: added = [module org.netbeans.api.progress.compat8 > 1.40, module org.netbeans.api.templates > 1.0, module org.netbeans.modules.editor.deprecated.pre65formatting/0 > 1.0, module org.openide.filesystems.nb, module org.openide.filesystems.compat8, module org.netbeans.modules.editor.document > 1.0] removed = []; details: [Separation of desktop and cleanup, Swing dependencies split away, Templates API has been separ....
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/mxdxm8899/article/details/83813712 Netbeans Platform: 注册与发现的机制 Netbeans Platform是模块化的设计。我们看一下最基本的开发思路: 例如,我们想要写一个XML验证器模块。我们会做以下几个事情: 设计Validator接口, 定义一些验证所需的方法。方便以后提供Manifest验证器,html验证器等。 设计实现Validation类,这个类维护一个Validator的Map, 允许添加和删除Validatior,如果需要验证的话,这个类会遍历Validator找出响应的Validator实现。 设计实现XMLValidator类,实现Validator接口 实现XMLModuleInstall类,继承ModuleInstall类。这个类维护一个静态的Validation类,完成XMLValidator的注册和反注册任务 这里有个问题,就....
在TopComponent的实现类中覆盖getActions方法并返回null /** * 去掉tab标签上的右键菜单 * @return */ @Override public Action[] getActions() { return null; }
Creating the Editor Component 以下部分截取自http://platform.netbeans.org/tutorials/nbm-selection-1.html 使用向导创建的TopComponent都是singleton的。以下步骤可以创建非singleton的TopComponent。 Now you need something to actually provide instances of APIObject, for this code to be of any use. Fortunately this is quite simple. You will create another TopComponent, this time, one that opens in the editor area and offers an instance of APIObject from its Lookup. You could use the Window template again, but that template is designe....