Skip to content
Snippets Groups Projects
Commit a933455a authored by Vesa Lappalainen's avatar Vesa Lappalainen :bicyclist:
Browse files

loputkin

parent db7919d6
No related branches found
No related tags found
No related merge requests found
Showing with 600 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/FXGui"/>
<classpathentry kind="output" path="bin"/>
</classpath>
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
##############################
## Maven
##############################
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
##############################
## Gradle
##############################
bin/
build/
.gradle
.gradletasknamecache
gradle-app.setting
!gradle-wrapper.jar
##############################
## IntelliJ
##############################
out/
.idea/
.idea_modules/
*.iml
*.ipr
*.iws
##############################
## Eclipse
##############################
.settings/
bin/
tmp/
.metadata
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
##############################
## NetBeans
##############################
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
##############################
## OS X
##############################
.DS_Store
\ No newline at end of file
.project 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>vaihe2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project trunk">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="E:/kurssit/ws/19"/>
<property name="dir.jarfile" value="${dir.buildfile}"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/kerho.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="fxKerho.KerhoMain"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${dir.jarfile}/bin"/>
<fileset dir="E:/kurssit/ohj2/FXExamples/FXGui/bin"/>
</jar>
</target>
</project>
kuvat/avaa.png

9.23 KiB

kuvat/eiaukea.png

6.09 KiB

kuvat/haku.png

32.6 KiB

kuvat/harrastusDialog.png

5.44 KiB

kuvat/jasenDialog.png

14.5 KiB

kuvat/paaikkuna.png

29.5 KiB

kuvat/poisto.png

6.71 KiB

kuvat/tietoja.png

7.12 KiB

kuvat/tulostus.png

17.1 KiB

kuvat/virhe.png

13.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.text.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.layout.BorderPane?>
<BorderPane prefHeight="281.0" prefWidth="409.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8.0.40">
<bottom>
<BorderPane BorderPane.alignment="CENTER">
<right>
<Button defaultButton="true" minWidth="70.0" mnemonicParsing="false" text="OK" BorderPane.alignment="CENTER" />
</right>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</BorderPane>
</bottom>
<center>
<VBox alignment="CENTER" style="-fx-background-color: #ffff99;" BorderPane.alignment="CENTER">
<children>
<Label alignment="TOP_CENTER" maxWidth="1.7976931348623157E308" prefHeight="50.0" text="JÄSENREKISTERI">
<font>
<Font name="Arial Bold" size="24.0" />
</font>
</Label>
<Label alignment="CENTER" maxWidth="1.7976931348623157E308" text="Versio 2.2" />
<Label alignment="BOTTOM_CENTER" maxWidth="1.7976931348623157E308" prefHeight="40.0" text="Vesa Lappalainen">
<font>
<Font name="System Bold Italic" size="20.0" />
</font>
</Label>
</children>
</VBox>
</center>
</BorderPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<BorderPane xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1">
<bottom>
<VBox BorderPane.alignment="CENTER">
<children>
<Label maxWidth="1000.0" />
<HBox />
<ButtonBar prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button defaultButton="true" mnemonicParsing="false" text="OK" />
<Button cancelButton="true" mnemonicParsing="false" text="Cancel" />
</buttons>
<padding>
<Insets right="10.0" />
</padding>
</ButtonBar>
</children>
</VBox>
</bottom>
<center>
<ScrollPane fitToWidth="true" pannable="true" BorderPane.alignment="CENTER">
<content>
<GridPane hgap="10.0">
<columnConstraints>
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="ala" />
<Label text="aloitusvuosi" GridPane.rowIndex="1" />
<Label text="h/vko" GridPane.rowIndex="2" />
<TextField text="kalastus" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" />
<TextField text="1955" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" />
<TextField text="20" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="2" />
</children>
<opaqueInsets>
<Insets left="10.0" top="10.0" />
</opaqueInsets>
<padding>
<Insets left="10.0" right="10.0" top="10.0" />
</padding>
</GridPane>
</content>
</ScrollPane>
</center>
</BorderPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<?import javafx.scene.layout.BorderPane?>
<BorderPane xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1">
<bottom>
<VBox BorderPane.alignment="CENTER">
<children>
<Label maxWidth="1000.0" />
<HBox />
<ButtonBar prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button defaultButton="true" mnemonicParsing="false" text="OK" />
<Button cancelButton="true" mnemonicParsing="false" text="Cancel" />
</buttons>
<padding>
<Insets right="10.0" />
</padding>
</ButtonBar>
</children>
</VBox>
</bottom>
<center>
<ScrollPane fitToWidth="true" pannable="true" BorderPane.alignment="CENTER">
<content>
<GridPane hgap="10.0">
<columnConstraints>
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="nimi" />
<Label text="hetu" GridPane.rowIndex="1" />
<Label text="katuosoite" GridPane.rowIndex="2" />
<Label text="postinumero" GridPane.rowIndex="3" />
<Label text="postiosoite" GridPane.rowIndex="4" />
<Label text="kotipuhelin" GridPane.rowIndex="5" />
<Label text="työpuhelin" GridPane.rowIndex="6" />
<Label text="autopuhelin" GridPane.rowIndex="7" />
<Label text="liittymisvuosi" GridPane.rowIndex="8" />
<Label text="jäsenmaksu" GridPane.rowIndex="9" />
<Label text="maksettu maksu" GridPane.rowIndex="10" />
<Label text="lisätietoja" GridPane.rowIndex="11" />
<TextField text="Ankka Aku" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" />
<TextField text="010245-123U" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" />
<TextField text="Paratiisitie 13" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="2" />
<TextField text="12345" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="3" />
<TextField text="ANKKALINNA" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="4" />
<TextField text="12-12345" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="5" />
<TextField text="2" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="6" />
<TextField GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="7" />
<TextField text="1996" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="8" />
<TextField text="50.00" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="9" />
<TextField text="0.00" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="10" />
<TextField text="Velkaa Roopelle" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="11" />
</children>
<opaqueInsets>
<Insets left="10.0" top="10.0" />
</opaqueInsets>
<padding>
<Insets left="10.0" right="10.0" top="10.0" />
</padding>
</GridPane>
</content>
</ScrollPane>
</center>
</BorderPane>
package fxKerho;
import fi.jyu.mit.fxgui.Dialogs;
import javafx.fxml.FXML;
/**
* @author vesal
* @version 31.12.2015
* Luokka kyttliittymn tapahtumien hoitamiseksi
*/
public class KerhoGUIController {
/**
* Ksitelln uuden jsenen lisminen
*/
@FXML private void handleUusiJasen() {
// Dialogs.showMessageDialog("Ei osata viel list");
// Dialogs.showMessageDialog("Tiedosto kelmit/nimet.dat ei aukea");
Dialogs.showQuestionDialog("Poisto?", "Poistetaanko jsen: Hopo Hessu", "Kyll", "Ei");
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import fi.jyu.mit.fxgui.ComboBoxChooser?>
<?import fi.jyu.mit.fxgui.ListChooser?>
<?import fi.jyu.mit.fxgui.StringGrid?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.input.KeyCodeCombination?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<BorderPane prefHeight="439.0" prefWidth="698.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fxKerho.KerhoGUIController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu text="_Tiedosto">
<items>
<MenuItem text="_Tallenna">
<accelerator>
<KeyCodeCombination alt="UP" code="S" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem text="Avaa...">
</MenuItem>
<MenuItem mnemonicParsing="false" text="Tulosta...">
<accelerator>
<KeyCodeCombination alt="UP" code="T" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem mnemonicParsing="true" text="L_opeta">
<accelerator>
<KeyCodeCombination alt="UP" code="Q" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
</items>
</Menu>
<Menu mnemonicParsing="true" text="_Muokkaa">
<items>
<MenuItem mnemonicParsing="true" text="Uusi jäsen">
<accelerator>
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem mnemonicParsing="true" text="Muokkaa jäsentä...">
<accelerator>
<KeyCodeCombination alt="UP" code="E" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem mnemonicParsing="true" text="Lisää harrastus">
<accelerator>
<KeyCodeCombination alt="UP" code="H" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem mnemonicParsing="true" text="Muokkaa harrastusta...">
<accelerator>
<KeyCodeCombination alt="UP" code="U" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator>
</MenuItem>
<MenuItem mnemonicParsing="false" text="Poista jäsen...">
</MenuItem>
<MenuItem mnemonicParsing="false" text="Poista harrastus">
</MenuItem>
</items>
</Menu>
<Menu mnemonicParsing="true" text="_Apua">
<items>
<MenuItem mnemonicParsing="false" text="Apua">
</MenuItem>
<MenuItem mnemonicParsing="false" text="Tietoja..." />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<center>
<SplitPane dividerPositions="0.27, 0.66" BorderPane.alignment="CENTER">
<items>
<BorderPane maxWidth="150.0" minWidth="100.0" prefWidth="138.0">
<center>
<ListChooser maxHeight="1.7976931348623157E308" prefHeight="100.0" rivit="Ankka Aku&#10;Ankka Iines&#10;Ankka Roope&#10;Ponteva Veli&#10;Susi Sepe&#10;" BorderPane.alignment="CENTER" />
</center>
<top>
<VBox BorderPane.alignment="CENTER">
<children>
<Label alignment="CENTER" maxWidth="300.0" text="Hakuehto" />
<TextField />
<ComboBoxChooser maxWidth="200.0" rivit="nimi&#10;hetu&#10;katuosoite&#10;postinumero&#10;kotipuhelin&#10;työpuhelin&#10;autopuhelin&#10;liittymisvuosi&#10;jäsenmaksu&#10;maksettu maksu&#10;lisätietoja" />
<Label alignment="CENTER" maxWidth="300.0" text="Jäsenet" />
</children>
</VBox>
</top>
</BorderPane>
<BorderPane prefWidth="200.0">
<top>
<Label text="Jäsenen tiedot" BorderPane.alignment="CENTER" />
</top>
<center>
<ScrollPane fitToWidth="true" pannable="true" BorderPane.alignment="CENTER">
<content>
<GridPane hgap="10.0">
<columnConstraints>
<ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" minWidth="10.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="nimi" />
<Label text="hetu" GridPane.rowIndex="1" />
<Label text="katuosoite" GridPane.rowIndex="2" />
<Label text="postinumero" GridPane.rowIndex="3" />
<Label text="postiosoite" GridPane.rowIndex="4" />
<Label text="kotipuhelin" GridPane.rowIndex="5" />
<Label text="työpuhelin" GridPane.rowIndex="6" />
<Label text="autopuhelin" GridPane.rowIndex="7" />
<Label text="liittymisvuosi" GridPane.rowIndex="8" />
<Label text="jäsenmaksu" GridPane.rowIndex="9" />
<Label text="maksettu maksu" GridPane.rowIndex="10" />
<Label text="lisätietoja" GridPane.rowIndex="11" />
<TextField text="Ankka Aku" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" />
<TextField text="010245-123U" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" />
<TextField text="Paratiisitie 13" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="2" />
<TextField text="12345" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="3" />
<TextField text="ANKKALINNA" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="4" />
<TextField text="12-12345" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="5" />
<TextField text="2" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="6" />
<TextField GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="7" />
<TextField text="1996" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="8" />
<TextField text="50.00" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="9" />
<TextField text="0.00" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="10" />
<TextField text="Velkaa Roopelle" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="11" />
</children>
<opaqueInsets>
<Insets left="10.0" top="10.0" />
</opaqueInsets>
<padding>
<Insets left="10.0" right="10.0" top="10.0" />
</padding>
</GridPane>
</content>
</ScrollPane>
</center>
<bottom>
<Label alignment="CENTER" maxWidth="1.7976931348623157E308" BorderPane.alignment="CENTER" />
</bottom>
</BorderPane>
<BorderPane>
<top>
<Label text="Jäsenen harrastukset" BorderPane.alignment="CENTER" />
</top>
<center>
<StringGrid editable="true" rivit="ala|aloitusvuosi|h/vko&#10;kalastus|1955|20&#10;laiskottelu|1950|20&#10;työn pakoilu|1952|40" BorderPane.alignment="CENTER" />
</center>
</BorderPane>
</items>
<padding>
<Insets left="5.0" right="5.0" />
</padding>
</SplitPane>
</center>
<bottom>
<BorderPane BorderPane.alignment="CENTER">
<left>
<HBox spacing="10.0" BorderPane.alignment="CENTER">
<children>
<Button onAction="#handleUusiJasen" text="_Uusi jäsen">
<tooltip>
<Tooltip text="Lisää uuden jäsenen kerhoon" />
</tooltip>
</Button>
<Button mnemonicParsing="false" text="Tallenna">
<tooltip>
<Tooltip text="Tallentaa kerhon tiedot" />
</tooltip></Button>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
</left>
<right>
<HBox spacing="10.0" BorderPane.alignment="CENTER">
<children>
<Button mnemonicParsing="true" text="Lisää _harrastus">
<tooltip>
<Tooltip text="Lisää jäsenelle uuden harrastuksen" />
</tooltip></Button>
<Button mnemonicParsing="false" text="Poista harrastus">
<tooltip>
<Tooltip text="Poistetaan kohdalla oleva harrastus" />
</tooltip></Button>
</children>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
</right>
</BorderPane>
</bottom>
</BorderPane>
package fxKerho;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.fxml.FXMLLoader;
/**
* @author vesal
* @version 31.12.2015
*
* Pohjelma Kerho-ohjelman kynnistmiseksi
*/
public class KerhoMain extends Application {
@Override
public void start(Stage primaryStage) {
try {
BorderPane root = (BorderPane)FXMLLoader.load(getClass().getResource("KerhoGUIView.fxml"));
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("kerho.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.setTitle("Kerho");
primaryStage.show();
} catch(Exception e) {
e.printStackTrace();
}
}
/**
* Kynnistetn kyttliittym
* @param args komentorivin parametrit
*/
public static void main(String[] args) {
launch(args);
}
}
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