Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • heevtont/ohj2
  • ojmannex/ohj2
  • veosvuol/ohj2
  • teoilalo/ohj2
  • pakakata/ohj2
  • tie/ohj2/2023k/ohj2
  • jupesate/ohj2
  • olrutane/ohj2
  • vesal/ohj-2-k-23
  • alejarta/ohj2
  • romaasun/ohj2
  • maxvitik/ohj2
  • jatakarj/ohj2
  • forsheal/harjoitustyo
  • paemhiet/ohj2
  • onhuhtal/ohj2
  • peukteni/ohj2
  • kallvaxu/ohj-2-ht-kasityorekisteri
  • piipjuhe/ohj2
  • alanenee/ohj2
  • osterava/ohj2
  • savolpet/ohj2
  • jaalsiik/ohj2
  • jbpalola/ohj2
  • khakarpp/ohj2
  • sokapalo/ohj2
  • luomkohe/ohj2
  • ltahonex/ohj2
  • hejojurv/ohj-2-sukupuu
  • karkhkxy/ohj2
  • vewaheik/ohj2
  • tejumeri/ohj2
  • erkkjjyv/ohj2
  • kkautio/ohj2
  • jaeianro/ohj2
  • olmisalo/ohj2
  • ukkolaaa/ohj2
  • esbrunil/ohj2
  • pjsavola/ohj2
  • mosaluht/jasenrekisteri
  • nviianen/ohj2
  • eetpatsu/ohj2
  • iinelipi/ohj2
  • kaupkama/ohj2
  • myyryejk/ohj-2-ht-myyry
  • mnjtiili/ohj2
  • leppanm/ohj2
  • malineps/ohj2
  • antulepp/ohj-2-b
  • helatukk/ohj2
  • aaahalom/ohj2
  • juvonevi/ruokanaattori
  • atkaanhe/ohj2
  • jypemiko/ohj2-23
  • anuemiko/ohj2
  • lvvuolle/ohj2
  • valkeiti/ohj-2
  • suvileos/ohj2
  • mikpekpu/ohj2
  • savevalo/ohj2
  • martiksm/ohj2
  • enlejuhe/ohj2
  • eealhakk/ohj-2-ht
  • savomaaa/ohj2
  • elkrleht/ohj2
  • maospelt/ohj2
  • tufiras/ohj2
  • lihavavy/ohj2
  • pepihlaj/ohj2
  • urpiteju/ohj2
  • aetakala/ohj-2-ht
  • tjkajant/ohj2
  • remoneve/ohj2
  • jeismont/ohj2
  • mietanai/ohj2
  • inkilaka/ohj2
  • pmruusu/ohj2
  • pykakimp/reseptirekisteriprojekti
  • mielarju/ohj2
  • jmjleixu/ohj2
  • kalakoiv/ohj2
  • meamalxv/ohj2
  • heinota/ohj2
  • majauusi/ohj2
  • tusakki/ohj2
  • jjpahkin/ohj2
  • nurmimk/ohj2
  • mieemalo/ohj2
  • idmahako/ohj2
  • ajrautia/ohj2
  • evaltaiv/ohj2
  • vevajoki/ohj2
  • vijumato/ohj2
  • nikrantt/ohj2
  • kupialnx/ohj2
  • jujukest/ohj2ht
  • aojuntun/ohj2
  • jhthorxu/ohj2
  • aaaalto/ohj2
  • haggpoo/ohj2
  • mialniem/ohj2
  • marteevi/ohj2
  • amslappi/ohj2
  • jiheikzt/ohj2
  • elbeeltv/ohj2
  • virommss/ohj2
  • tootuoka/ohj2
  • hasultxt/ohj-2
  • laanmaat/ohj-2-2023
  • laueerjo/ohj2
  • jutakoir/osrsprocesspal
  • alalojap/ohj2
  • joaahirv/ohj2
  • venmaamo/ohj2
  • jejaolpa/ohj2
  • anbudano/ohj2
  • peolkyll/ohj2
  • blomerjo/ohj2
  • aasahonk/ohj2
  • lapahama/ohj2
  • karpot/ohj2
  • psbroman/ohj2
  • vemakael/ohj2
  • alninybe/harkkatyo
  • tosakorh/ohj-2-k-23
  • ntkumpul/ntkumpul
  • riiijoko/ohj-2-2023
127 results
Show changes
Commits on Source (10)
Showing
with 417 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">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/ohj2"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ht</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="ASCII"?>
<anttasks:AntTask xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:anttasks="http://org.eclipse.fx.ide.jdt/1.0" buildDirectory="${project}/build">
<deploy>
<application name="ht"/>
<info/>
</deploy>
<signjar/>
</anttasks:AntTask>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project ht">
<!--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="C:/TIETOTEKNIIKKA/ohj2/ws"/>
<property name="dir.jarfile" value="${dir.buildfile}"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/ralli.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="rekisteri.RalliMain"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${dir.jarfile}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="C:/devel/jar/Ali.jar"/>
<zipfileset excludes="META-INF/*.SF" src="C:/devel/jar/fxgui.jar"/>
<zipfileset excludes="META-INF/*.SF" src="C:/devel/jar/Graphics.jar"/>
<zipfileset excludes="META-INF/*.SF" src="C:/devel/jar/Music.jar"/>
</jar>
</target>
</project>
kuvat/aloitusikkuna.png

11.4 KiB

kuvat/eihakutuloksia.png

9.98 KiB

kuvat/henkhakutulos.png

32.7 KiB

kuvat/paaikkuna.png

38.8 KiB

kuvat/rallihakutulos.png

55.9 KiB

kuvat/tarkastele.png

44.6 KiB

kuvat/uusihenk.png

19.3 KiB

kuvat/uusiralli.png

53.6 KiB

package rekisteri;
import java.net.URL;
import java.util.ResourceBundle;
import fi.jyu.mit.fxgui.Dialogs;
import javafx.application.Application.Parameters;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextField;
/**
* @author idamk
* @version 16.2.2023
*
*/
public class RalliGUIController implements Initializable {
@FXML private TextField textHaettava; //haettava aloitusikkunasta
@FXML void handleHae() {
hae();
}
@FXML void handleTarkasteluun() {
Dialogs.showMessageDialog("Tässä siirryttäisiin suoraan hakuun, ei toimi vielä");
}
@FXML void handleUusi() {
Dialogs.showMessageDialog("Tästä päästäisiin lisäämään uusia tietoja, ei toimi vielä");
}
private void hae() {
Dialogs.showMessageDialog("Tästä avautuisi haku, ei toimi vielä");
}
@Override
public void initialize(URL location, ResourceBundle resources) {
hae();
}
//TODO
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?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.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.text.Font?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="rekisteri.RalliGUIController">
<top>
<MenuBar BorderPane.alignment="CENTER">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Muokkkaa">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Apua">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<center>
<Label text="Rallirekisteri" BorderPane.alignment="CENTER_LEFT">
<font>
<Font size="55.0" />
</font>
</Label>
</center>
<bottom>
<HBox spacing="10.0" BorderPane.alignment="CENTER">
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</BorderPane.margin>
<children>
<Button mnemonicParsing="false" onAction="#handleUusi" text="Lisää Uusi" />
<TextField fx:id="hakukentta" />
<Button alignment="CENTER" mnemonicParsing="false" onAction="#handleHae" text="Hae">
<HBox.margin>
<Insets />
</HBox.margin>
</Button>
</children>
</HBox>
</bottom>
<left>
<BorderPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<top>
<Button mnemonicParsing="false" onAction="#handleTarkasteluun" text="Tarkasteluun" BorderPane.alignment="TOP_LEFT">
<BorderPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</BorderPane.margin>
</Button>
</top>
</BorderPane>
</left>
</BorderPane>
package rekisteri;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;
import javafx.fxml.FXMLLoader;
/**
* @author idamk
* @version 16.2.2023
*
*/
public class RalliMain extends Application {
@Override
public void start(Stage primaryStage) {
try {
BorderPane root = (BorderPane)FXMLLoader.load(getClass().getResource("RalliGUIView.fxml"));
//FXMLLoader ldr = new FXMLLoader(getClass().getResource("RalliGUIView.fxml"));
//final Pane root = ldr.load();
//final RalliGUIController ralliCtrl = (RalliGUIController) ldr.getController();
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("ralli.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.setTitle("Ralli");
primaryStage.show();
//ralliCtrl.jotain(getParameters()); ///KORJAA
} catch(Exception e) {
e.printStackTrace();
}
}
/**
* @param args Ei kaytossa
*/
public static void main(String[] args) {
launch(args);
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?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.TextField?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<MenuBar layoutY="2.0" prefHeight="26.0" prefWidth="600.0">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
<Button layoutX="15.0" layoutY="37.0" mnemonicParsing="false" onAction="#handleAvaaSuora" text="Suoraan hakuun" />
<Button layoutX="549.0" layoutY="361.0" mnemonicParsing="false" onAction="#handleHae" text="Hae" />
<Button layoutX="14.0" layoutY="361.0" mnemonicParsing="false" onAction="#handleSuljeOhjelma" text="Poistu" />
<Label layoutX="172.0" layoutY="165.0" text="Rallirekisteri">
<font>
<Font size="48.0" />
</font>
</Label>
<Label layoutX="214.0" layoutY="293.0" text="Hae henkilöitä" />
<TextField fx:id="henkilohaku" layoutX="300.0" layoutY="289.0" onAction="#haeHenkilo" prefHeight="25.0" prefWidth="287.0" />
<TextField fx:id="ralliHaku" layoutX="300.0" layoutY="324.0" onAction="#haeRalli" prefHeight="25.0" prefWidth="287.0" />
<Label layoutX="234.0" layoutY="328.0" text="Hae ralleja" />
</children>
</Pane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="200.0" prefWidth="525.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label layoutX="190.0" layoutY="83.0" text="Ei hakutuloksia">
<font>
<Font size="24.0" />
</font>
</Label>
<Button layoutX="460.0" layoutY="161.0" mnemonicParsing="false" onAction="#handleSulje" text="Sulje" />
<Button layoutX="24.0" layoutY="161.0" mnemonicParsing="false" onAction="#handleLisaaUusi" text="Lisää uusi" />
</children>
</Pane>
<?xml version="1.0" encoding="UTF-8"?>
<?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.layout.Pane?>
<?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<MenuBar layoutY="2.0" prefHeight="26.0" prefWidth="600.0">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
<Button layoutX="478.0" layoutY="361.0" mnemonicParsing="false" onAction="#handlePoistu" text="Takaisin hakuun" />
<Button layoutX="14.0" layoutY="361.0" mnemonicParsing="false" onAction="#handlePoista" text="Poista" />
<Button layoutX="113.0" layoutY="361.0" mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa tietoja" />
<Label layoutX="14.0" layoutY="35.0" text="Hakutulos: Nimi Sukunimi">
<font>
<Font size="14.0" />
</font>
</Label>
<Label layoutX="14.0" layoutY="79.0" text="Nimi: Nimi Sukunimi" />
<Label layoutX="14.0" layoutY="102.0" text="Syntymäpäivä: 01.01.1999" />
<Label layoutX="14.0" layoutY="142.0" text="Seura: UUA" />
<Label layoutX="187.0" layoutY="102.0" text="Ikä: 24" />
<Label layoutX="465.0" layoutY="79.0" text="KULJETTAJA" />
<Label layoutX="14.0" layoutY="192.0" text="Rallit:">
<font>
<Font size="13.0" />
</font>
</Label>
<Label layoutX="14.0" layoutY="219.0" text="Ralli1" textFill="#2904ff" />
<Label layoutX="14.0" layoutY="248.0" text="Ralli2" textFill="#0400ff" />
<Label layoutX="159.0" layoutY="192.0" text="päivämäärä">
<font>
<Font size="13.0" />
</font>
</Label>
<Label layoutX="159.0" layoutY="219.0" text="10.10.2021" />
<Label layoutX="159.0" layoutY="248.0" text="9.9.2014" />
<Label layoutX="256.0" layoutY="192.0" text="Auto">
<font>
<Font size="13.0" />
</font>
</Label>
<Label layoutX="256.0" layoutY="219.0" text="Toyota Starlett" />
<Label layoutX="256.0" layoutY="248.0" text="Toyota Starlett" />
<Label layoutX="469.0" layoutY="192.0" text="Sijoitus">
<font>
<Font size="13.0" />
</font>
</Label>
<Label layoutX="469.0" layoutY="219.0" text="1." />
<Label layoutX="469.0" layoutY="248.0" text="5." />
</children>
</Pane>
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?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.layout.Pane?>
<?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Button layoutX="14.0" layoutY="361.0" mnemonicParsing="false" onAction="#handlePoista" text="Poista" />
<Button layoutX="90.0" layoutY="361.0" mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa tietoja" />
<Button layoutX="477.0" layoutY="361.0" mnemonicParsing="false" onAction="#handlePoistu" text="Takaisin hakuun" />
<Label layoutX="14.0" layoutY="36.0" text="Hakutulos: Ralli1">
<font>
<Font size="14.0" />
</font>
</Label>
<MenuBar layoutY="2.0" prefHeight="26.0" prefWidth="600.0">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
<Label layoutX="14.0" layoutY="75.0" text="Nimi: Ralli1" />
<Label layoutX="14.0" layoutY="99.0" text="Paikkakunta: Rallinpaikkakunta" />
<Label layoutX="14.0" layoutY="127.0" text="Päivämäärä: 14.12.2016" />
<Label layoutX="14.0" layoutY="192.0" text="Osallistujalista" textFill="#1a00ff" />
<Label layoutX="14.0" layoutY="224.0" text="Tuloslista" textFill="#1100ff" />
<Label layoutX="14.0" layoutY="253.0" text="Linkki tapahtuman sivuille" textFill="#0011ff" />
<Label layoutX="14.0" layoutY="153.0" text="Järjestäjä: Rallipaikkakunnan rallimartat" />
</children>
</Pane>