原创 Drag and Drop in a Tree

public class TreeDragDropTest { private static Display display; private static Shell shell; public static void

原创 Fully Qualified Domain Names

Fully Qualified Domain Names (Create an alias for localhost)1) Go to C:\WIN

原创 StyledText sample

StyledText text1 = new StyledText(parent, SWT.V_SCROLL | SWT.BORDER);String msg = "Hello";text1.append(msg);StyleRange

原创 To show a custom area for toolbar.

To show a custom area for toolbar.public void postWindowOpen() { //...}/

原创 SSO(Single Sign on)(ZT)

SSO(Single Sign on)-單點登錄 目前的企業應用環境中,往往有很多的應用系統,如辦公自動化(OA)系統,財務管理系統,檔案管理

原创 DEV Sites

[b]Flex:[/b]http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2S

原创 Build Web Service using CXF

[b]Build Web Service by CXF[/b]CXF(http://cxf.apache.org/)Apache CXF is an

原创 Build Simple Restful Web App with Maven and Jersey

1) Create a New Project Layoutcd/d C:\tmp\restfulmvn archetype:create -Dgro

原创 Deploy

1)xcopy /E /Y /Q /I META-INF web\WEB-INF\classes\META-INFjar cvf StockServi

原创 Start web container(Jetty) using code

1) Dependenciesrequired:-------------------------------------------------ge

原创 SSO 原理淺談(ZT)

SSO 是一個非常大的主題,我對這個主題有着深深的感受,自從廣州 UserGroup 的論壇成立以來,無數網友都在嘗試使用開源的 CAS , Kerb

原创 SWT Menu background

invoke("setBackground", menuBar, new Class[] { Color.class }, new Color[] { bg });invoke("setBackground", menu1, new Cl

原创 mvn install:install-file

mvn install:install-file -DgeneratePom=true -DgroupId=jep -DartifactId=jep -Dversion=3.3.0 -Dpackaging=jar -Dfile=E:\li

原创 Spring 2.5 Annotation

[b]Spring 2.5 Annotation[/b][b]Reference:[/b] http://www.ibm.com/developerworks/cn/java/j-lo-spring2

原创 Ant 遞歸刪除文件夾

發現用 Ant 1.7 刪除文件夾的時候,必須先刪除裏面的文件,再刪除文件夾。不能直接刪除非空文件夾,記錄一下。<project name="MyProject" default="deleteDirs"