Exemple - SEPProject/MissionLibrary GitHub Wiki

Welcome to the MissionLibrary wiki!

How to use the library ? Nothing less easy !

This few lines will create the new mission panel :

MissionPanel mp = new MissionPanel("SQL Mission"); Mission mission = new Mission("Premier mission","Premiere description"); mission.addSubmission(new Submission("Premier sub","Premiere sub desc")); mission.addSubmission(new Submission("Deux sub","Deux sub desc")); mission.addSubmission(new Submission("Trois sub","Trois sub desc")); mission.addSubmission(new Submission("Quatre sub","Quatre sub desc"));

    `Mission mission2 = new Mission("Premier mission","Premiere description");`
    `mission2.addSubmission(new Submission("Premier sub","Premiere sub desc mega longue descirptioo ntout las rd"));`
    `mission2.addSubmission(new Submission("Deux sub","Deux sub desc"));`
    `mission2.addSubmission(new Submission("Trois sub","Trois sub desc"));`
    `mission2.addSubmission(new Submission("Quatre sub","Quatre sub desc"));`

    `mp.addMission(mission);`
    `mp.addMission(mission2);`
    `mp.addMission(mission2);`

And to get only the panel : mp.getPannelFrame();

This function return the pannel that you can add to your frame.