You are here: Wiki>AGGeom Web>JavaView>JVOwnProject (27 Apr 2017, ezimmermann)Edit

JVOwnProject

You will find here information to create a new JavaView project

Structure of the project

A JavaView project is composed of at least three core class : Pa[Project name], Pj[Project name] and Pj[Project name]_IP.

- Pa[Project name] : It contains main, and start the whole thing using the two other core classes.

- Pj[Project name] : This class contains the main fields : geometry and settings. It also contains the main methods, which define what the project does, and also the methods called when the user changes something (by the IP class).

- Pj[Project name]_IP : This class contains all the panel things (buttons, checkboxes, ...) except the sliders (for the sliders see the corresponding page on the Wiki). This class should also explain deeply what does your project do and how to use the control panel. This class should contain the Action Handler, which calls public method from Pj[Project name]. IP means Info Panel.

Run configuration

You will find in the attachment a template you can use to start easily a new project. Once you have downloaded it, put the three files in a new Package. Before to personalize it, you can just run it to check if it works. In Eclipse, go in Run Configurations and add a new launch configuration. There you will find several tabs.

- Main : in "Project", select the folder "DevelopContrib". In Main class, select the main class from PaTemplateProject.

- Arguments : In working directory, select the Workspace : "srcBase".

- Classpath : Make sure you have these projects in "Use Entries" : "srcBase (default classpath)", "Develop", "DevelopContrib", "ThirdsLibs", "OpenGL_JOGL2". If you don´t, add them by clicking on "add projects".

- This other tabs don´t need other things.

Comments

 
Topic attachments
I Attachment Action Size Date Who Comment
PaTemplateProject.javajava PaTemplateProject.java manage 4.7 K 22 Mar 2016 - 14:41 UnknownUser TemplateProject main class
PjTemplateProject.javajava PjTemplateProject.java manage 5.0 K 22 Mar 2016 - 14:42 UnknownUser  
PjTemplateProject_IP.javajava PjTemplateProject_IP.java manage 5.2 K 22 Mar 2016 - 14:42 UnknownUser  
Topic revision: r5 - 27 Apr 2017, ezimmermann
 
  • Printable version of this topic (p) Printable version of this topic (p)