Skip to content
Snippets Groups Projects
Commit 2d17c971 authored by Matilainen Jaakko's avatar Matilainen Jaakko
Browse files

lisää tehtävä ikkuna

parent 74c5d005
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.text.Text?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="199.0" prefWidth="443.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1">
<center>
<TitledPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<content>
<TextField prefHeight="25.0" prefWidth="262.0" />
</content>
<graphic>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Lisää tehtävä" />
</graphic>
</TitledPane>
</center>
</BorderPane>
......@@ -94,26 +94,6 @@ public class Tehtavat {
* @param args ei käytössä
*/
public static void main(String args[]) {
Tehtavat tehtavat = new Tehtavat();
Tehtava labratyo1 = new Tehtava();
Tehtava luento1 = new Tehtava();
try {
tehtavat.lisaaTehtava(labratyo1);
tehtavat.lisaaTehtava(luento1);
tehtavat.poistaTehtava(luento1);
System.out.println("============= Tehtävät testi =================");
for (int i = 0; i < tehtavat.getMaara(); i++) {
Tehtava tehtava = tehtavat.anna(i);
System.out.println("Tehtävä numero: " + i);
}
} catch (Exception e) {
System.out.println("jasen olio ei palauta alkiota" + e.getMessage());
}
}
......
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