Skip to content
Snippets Groups Projects
Commit 76f774db authored by Kiljala Renne Lauri Olavi's avatar Kiljala Renne Lauri Olavi
Browse files

lisätty controller

parent 74c5d005
No related branches found
No related tags found
No related merge requests found
package fxHarakka;
import fi.jyu.mit.fxgui.Dialogs;
import fi.jyu.mit.fxgui.ModalController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.MenuItem;
import javafx.scene.layout.Pane;
public class OksaController {
}
......@@ -14,6 +14,8 @@ public class Harakka {
projekti1.rekisteroiProjekti();
projekti2.rekisteroiProjekti();
projekti1.setKesto(5);
projekti1.setSuoritettu(2);
harakka.lisaaProjekti(projekti1);
......
......@@ -97,11 +97,26 @@ public class Projekti {
public String getAihe() {
return aihe;
}
public void setAihe(String aihe){
this.aihe = aihe;
}
public void setNimi(String nimi){
this.nimi = nimi;
}
public void setKesto(int kesto){
this.kesto = kesto;
}
public void setSuoritettu(int suoritettu){
this.suoritettu = suoritettu;
}
@Override
public String toString(){
String strg = this.nimi + " | " + this.aihe + " | " + this.id;
String strg = this.nimi + " | " + this.aihe + " | " + this.id + " | " + this.kesto + " | " + this.suoritettu;
return strg;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment