Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:firstapp_step-by-step [2018/01/30 08:27] admin |
jvx:firstapp_step-by-step [2018/01/30 10:24] admin |
||
---|---|---|---|
Line 20: | Line 20: | ||
* Client | * Client | ||
* Server | * Server | ||
- | * [[#workscreen|Creation of a work screen]] | + | * [[#create_a_work_screen|Creation of a work screen]] |
- | * [[#hypersql|Use of a HyperSQL database]] | + | * [[#create_database|Use of a HyperSQL database]] |
== Folder structure == | == Folder structure == | ||
Line 39: | Line 39: | ||
|apps|Contains all available applications. Only one application is contained in this concrete example.| | |apps|Contains all available applications. Only one application is contained in this concrete example.| | ||
|firstapp|Contains the application with project configuration, sources, libraries.| | |firstapp|Contains the application with project configuration, sources, libraries.| | ||
- | |help|Contains the client (GWT) for the online help and help pages.| | + | |help|Contains the client for the online help and help pages.| |
|libs|Contains all libraries which are necessary both on the client and the server.| | |libs|Contains all libraries which are necessary both on the client and the server.| | ||
|libs/client|Contains all libraries which are only necessary for the client.| | |libs/client|Contains all libraries which are only necessary for the client.| | ||
Line 47: | Line 47: | ||
|test|Contains unit tests for the client and server or the libraries.| | |test|Contains unit tests for the client and server or the libraries.| | ||
- | Once the folder structure has been created, copy the library jvxclient.jar to the folder libs/client and the library jvx.jar to the folder libs/server. Both libraries are contained in the JVx binary package. | + | Once the folder structure has been created, copy the library ''jvxclient.jar'' to the folder ''libs/client'' and the library ''jvx.jar'' to the folder ''libs/server''. Both libraries are contained in the JVx binary package. |
== Project configuration == | == Project configuration == | ||
Line 54: | Line 54: | ||
* **File / New / Java Project** | * **File / New / Java Project** | ||
- | * Note that the project has to be set up in the application folder firstapp \\ {{:jvx:newproject.png?nolink|}} | + | * Note that the project has to be set up in the application folder ''firstapp'' \\ {{:jvx:newproject.png?nolink|}} |
- | * **Remove** the src folder from the **Source Folders** \\ **Set** the folders ''src.client'', ''src.server'' and ''test'' as **Source Folder** \\ {{:jvx:newproject_folders.png?nolink|}} | + | * **Remove** the ''src'' folder from the **Source Folders** \\ **Set** the folders ''src.client'', ''src.server'' and ''test'' as **Source Folder** \\ {{:jvx:newproject_folders.png?nolink|}} |
* **Add** the ''jvx.jar'' library, from the project directory ''JVxFirstApp/libs/server'' \\ {{:jvx:newproject_libs.png?nolink|}} | * **Add** the ''jvx.jar'' library, from the project directory ''JVxFirstApp/libs/server'' \\ {{:jvx:newproject_libs.png?nolink|}} | ||
* The project can now be created | * The project can now be created | ||
Line 62: | Line 62: | ||
{{:jvx:project_eclipse.png?nolink|}} | {{:jvx:project_eclipse.png?nolink|}} | ||
+ | |||
+ | The ''src'' folder can be deleted for consistency, as it is not needed in our application. | ||
== Application development == | == Application development == | ||
Line 331: | Line 333: | ||
We now create the client class for our work screen: | We now create the client class for our work screen: | ||
- | * **File** / **New** / **Class** \\ ''src.client'' \\ ''apps.firstapp.frames.DBEditFrame''\\ {{:jvx:dbedit_new.png?nolink|}} | + | * **File** / **New** / **Class** \\ ''src.client'', ''apps.firstapp.frames.DBEditFrame''\\ {{:jvx:dbedit_new.png?nolink|}} |
and use the following Source Code: | and use the following Source Code: |