2012年1月22日 星期日

Migrating Web Service to JAVA Applet (1)

     As for the requirement to implement a data search engine for my customers. I first implement a prototype tool by using python + django. 

     Thanks to the online resource and strong community of python and django. The development is blazing fast. It took me no longer than three days to complete the task.

    However, as the installation of all components on others' computer is kind of complicated as for I mixed some of the elements from Java. Therefore, the only way to deliver the product is has it installed on VM. Though it sounds like a stupid idea (this whole idea is not initiated by me, but as an employee, what can I decide). Thus, I am now trying to migrate whole thing from python + django to Java Applet.

     Since it has been quite for a long time for me not writing java applet. I did do some research on this topic.

Here comes the implementation recipe: 

Target: A JDBC interface to search sensitive data within target DB.

Regimentation Notice:
     1. A menu to access different page.
     2. An asynchronous access method.
     3. Multiple DB access interface
     4. Backend repository
     5. Statistical report

In phase 1, the implementation of menu structure is as described as follows:

1. Create A JFrame container
     a. Create JMenuBar for menulist
        i. Create JMenu under JMenubar 

2. Create JPanel
     a. Create JScrollPane under panel
        i. Create JEditorPane under JScrollPane

To enable the clicking of menu will trigger different page displayed withinin JMenu, a mouse clicked event is added for the purpose.

沒有留言:

張貼留言