-
Notifications
You must be signed in to change notification settings - Fork 6
Implement your own Shark ASAP application (5 of 5)
Thomas Schwotzer edited this page Jan 4, 2022
·
4 revisions
You tested your application and you are going to implement a user interface. Congratulations.
We strongly suggest to follow the mode-view-control idea. You implemented and tested a control and most probably (parts of) a model. It is a pure Java program until now. That’s brilliant. It is easier to test and very portable.
You should handle your code as a library that is used in your GUI environment. Create a jar for that reason. Most IDE will help. The follow lines in a command line interface would do the same, though.
cd target/classes
jar -cf YourComponent.jar net
move YourComponent.jar <yourArtficatFolder>/YourComponent.jar
Go to your class folder. Create a jar with all your classes. Use this jar as a library e.g. in Android.
Now, you chose an environment to implement a user interface. We work mostly with Android, see section Go Android.