Skip to content
Snippets Groups Projects
Commit 170bfa3e authored by Genas Petrus Joonatan's avatar Genas Petrus Joonatan
Browse files

laitettu petruksen ht kansio

parents
No related branches found
No related tags found
No related merge requests found
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
\ No newline at end of file
# Default ignored files
/shelf/
/workspace.xml
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Annotator" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AutoTupling" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="CaseClassParam" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="CheckDtdRefs" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="CheckEmptyScriptTag" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="CheckTagEmptyBody" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="CheckValidXmlInScriptTagBody" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="CheckXmlFileWithXercesValidator" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="ConvertibleToMethodValue" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="DeprecatedClassUsageInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="FunctionTupleSyntacticSugar" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="HtmlExtraClosingTag" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="HtmlMissingClosingTag" enabled="false" level="INFORMATION" enabled_by_default="false" />
<inspection_tool class="HtmlUnknownAnchorTarget" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="HtmlUnknownAttribute" enabled="false" level="WARNING" enabled_by_default="false">
<option name="myValues">
<value>
<list size="0" />
</value>
</option>
<option name="myCustomValuesEnabled" value="true" />
</inspection_tool>
<inspection_tool class="HtmlUnknownBooleanAttribute" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="HtmlUnknownTag" enabled="false" level="WARNING" enabled_by_default="false">
<option name="myValues">
<value>
<list size="6">
<item index="0" class="java.lang.String" itemvalue="nobr" />
<item index="1" class="java.lang.String" itemvalue="noembed" />
<item index="2" class="java.lang.String" itemvalue="comment" />
<item index="3" class="java.lang.String" itemvalue="noscript" />
<item index="4" class="java.lang.String" itemvalue="embed" />
<item index="5" class="java.lang.String" itemvalue="script" />
</list>
</value>
</option>
<option name="myCustomValuesEnabled" value="true" />
</inspection_tool>
<inspection_tool class="HtmlUnknownTarget" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="IfElseToFilterdOption" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="Json5StandardCompliance" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="JsonDuplicatePropertyKeys" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="JsonSchemaCompliance" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="JsonSchemaDeprecation" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="JsonSchemaRefReference" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="JsonStandardCompliance" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="LossyEncoding" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="MutatorLikeMethodIsParameterless" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NameBooleanParameters" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NoTailRecursionAnnotation" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NonAsciiCharacters" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="NotImplementedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="OptionEqualsSome" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RedundantBlock" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RedundantCollectionConversion" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RedundantDefaultArgument" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="RedundantNewCaseClass" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="ReferenceMustBePrefixed" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RegExpRedundantEscape" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RegExpRepeatedSpace" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="RegExpSingleCharAlternation" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="ReplaceToWithUntil" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="RequiredAttributes" enabled="false" level="WARNING" enabled_by_default="false">
<option name="myAdditionalRequiredHtmlAttributes" value="" />
</inspection_tool>
<inspection_tool class="ScalaDocParserErrorInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="ScalaDocUnclosedTagWithoutParser" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="ScalaFileName" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="ScalaUnnecessaryParentheses" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="ScalaUnusedExpression" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ScalaUnusedSymbol" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="ScalaWeakerAccess" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
<inspection_tool class="SyntaxError" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="TypeAnnotation" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="TypeParameterShadow" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="VarCouldBeVal" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlDefaultAttributeValue" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlDeprecatedElement" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlDuplicatedId" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="XmlHighlighting" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="XmlInvalidId" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="XmlPathReference" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="XmlUnboundNsPrefix" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlUnusedNamespaceDeclaration" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="XmlWrongRootElement" enabled="false" level="ERROR" enabled_by_default="false" />
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="23" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/ohj2harkkatyo.iml" filepath="$PROJECT_DIR$/ohj2harkkatyo.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
ohj2 @ 3cce3df6
Subproject commit 3cce3df68831dc107ddf19a68d7e78c3779471e7
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
import javafx.fxml.FXML;
import javafx.scene.control.Button;
public class Avausnakyma {
@FXML
public Button laskeVetoNappi;
@FXML
private void initialize() {
laskeVetoNappi.setOnAction(event -> kasitteleLaskeVeto());
}
private void kasitteleLaskeVeto() {
System.out.println("Laske 1X2 Veto painettu!");
}
}
public class Laskettukerroin {
}
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
import java.util.Objects;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws IOException {
Parent avausNakyma = FXMLLoader.load(Objects.requireNonNull(getClass().getResource("avausnakyma.fxml")));
primaryStage.setTitle("Vedonlyöntilaskuri");
primaryStage.setScene(new Scene(avausNakyma, 600, 400));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Avausnakyma">
<children>
<AnchorPane layoutX="-1.0" layoutY="-2.0" prefHeight="400.0" prefWidth="600.0">
<children>
<Button fx:id="laskeVetoNappi" layoutX="172.0" layoutY="175.0" mnemonicParsing="false" prefHeight="91.0" prefWidth="256.0" style="-fx-background-color: lightgreen;" text="LASKE 1X2 VETO" textFill="#022006" />
<Button layoutX="193.0" layoutY="317.0" mnemonicParsing="false" prefHeight="38.0" prefWidth="213.0" style="-fx-background-color: RED;" text="POISTU" />
<Label alignment="CENTER" layoutX="172.0" layoutY="62.0" prefHeight="51.0" prefWidth="256.0" text="VEDONLYÖNTILASKURI" textAlignment="CENTER">
<font>
<Font name="Calibri" size="24.0" />
</font>
</Label>
<MenuBar layoutY="2.0">
<menus>
<Menu mnemonicParsing="false" text="Käyttöohje">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</children>
</AnchorPane>
</children>
</AnchorPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Button layoutX="60.0" layoutY="113.0" mnemonicParsing="false" prefHeight="86.0" prefWidth="134.0" text="BUNDESLIIGA" />
<Button layoutX="60.0" layoutY="218.0" mnemonicParsing="false" prefHeight="86.0" prefWidth="134.0" text="VALIOLIIGA" />
<Label layoutX="60.0" layoutY="60.0" text="VALITSE LIIGA" textFill="#2233cc">
<font>
<Font name="System Bold" size="20.0" />
</font>
</Label>
<TextField layoutX="300.0" layoutY="143.0" prefHeight="26.0" prefWidth="230.0" promptText="1X2 kertoimista pienin kerroin" />
<TextField layoutX="300.0" layoutY="248.0" prefHeight="26.0" prefWidth="230.0" promptText="1X2 kertoimista keskimmäinen kerroin" />
<Label layoutX="327.0" layoutY="60.0" text="ANNA KERTOIMET" textFill="#2233cc">
<font>
<Font name="System Bold" size="20.0" />
</font>
</Label>
<Button layoutX="248.0" layoutY="330.0" mnemonicParsing="false" prefHeight="48.0" prefWidth="104.0" style="-fx-background-color: lightgreen;" text="LASKE" />
<MenuBar layoutY="1.0">
<menus>
<Menu mnemonicParsing="false" text="Käyttöohje">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</children>
</AnchorPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Laskettukerroin">
<children>
<AnchorPane prefHeight="400.0" prefWidth="600.0">
<children>
<Label alignment="CENTER" layoutX="88.0" layoutY="154.0" prefHeight="45.0" prefWidth="424.0" text="TODENNÄKÖISYYS TAPAHTUMALLE ON:">
<font>
<Font size="14.0" />
</font>
</Label>
<Label alignment="CENTER" layoutX="162.0" layoutY="79.0" prefHeight="33.0" prefWidth="276.0" text="KERTOIMIEN PERUSTEELLA...">
<font>
<Font size="20.0" />
</font>
</Label>
<MenuBar layoutY="1.0">
<menus>
<Menu mnemonicParsing="false" text="Käyttöohje">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
<Label layoutX="90.0" layoutY="339.0" text="LASKE UUSI TODENNÄKÖISYYS?" />
<Button layoutX="287.0" layoutY="336.0" mnemonicParsing="false" style="-fx-background-color: LIGHTGREEN;" text="KYLLÄ, AVAA LASKURI" />
<Button layoutX="446.0" layoutY="335.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="79.0" style="-fx-background-color: red;" text="SULJE" />
</children>
</AnchorPane>
</children>
</AnchorPane>
ui pictures/kerroinvalinta.png

20.2 KiB

ui pictures/laskettukerroin.png

16.8 KiB

ui pictures/paavalikko.png

13 KiB

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