Skip to content

Commit

Permalink
Final algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
averroes96 committed Aug 31, 2020
1 parent bd827a6 commit 5c2f1f1
Show file tree
Hide file tree
Showing 56 changed files with 12,362 additions and 152 deletions.
2 changes: 1 addition & 1 deletion build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Thu, 27 Aug 2020 19:21:43 +0200
#Mon, 31 Aug 2020 19:56:55 +0200


C\:\\Users\\user\\Documents\\NetBeansProjects\\WDP=
Binary file modified build/classes/Modal/MNTSearch.class
Binary file not shown.
16 changes: 14 additions & 2 deletions build/classes/wdp/Main.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

<?import com.jfoenix.controls.JFXButton?>
<?import com.jfoenix.controls.JFXComboBox?>
<?import com.jfoenix.controls.JFXDialog?>
<?import com.jfoenix.controls.JFXTextArea?>
<?import com.jfoenix.controls.JFXToggleButton?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>

<AnchorPane id="AnchorPane" prefHeight="650.0" prefWidth="800.0" style="-fx-background-color: #eee;" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="wdp.MainController">
<AnchorPane id="AnchorPane" prefHeight="650.0" prefWidth="800.0" style="-fx-background-color: #eee;" stylesheets="@custom.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="wdp.MainController">
<children>
<JFXTextArea fx:id="resultArea" editable="false" focusColor="#ff9a8d" focusTraversable="false" layoutX="25.0" layoutY="286.0" prefHeight="350.0" prefWidth="750.0" promptText="Solution results will be printed out here..." style="-fx-background-color: #ccc;" unFocusColor="#4a536b" AnchorPane.leftAnchor="25.0" AnchorPane.rightAnchor="25.0">
<font>
Expand All @@ -32,7 +34,7 @@
<Cursor fx:constant="HAND" />
</cursor>
</JFXComboBox>
<JFXButton fx:id="findBtn" alignment="CENTER" buttonType="RAISED" defaultButton="true" prefHeight="40.0" prefWidth="200.0" style="-fx-background-color: #ff9a8d;" text="Find" textFill="#4a536b">
<JFXButton fx:id="findBtn" alignment="CENTER" buttonType="RAISED" prefHeight="40.0" prefWidth="200.0" style="-fx-background-color: #ff9a8d;" text="Find" textFill="#4a536b">
<font>
<Font name="Consolas Bold" size="18.0" />
</font>
Expand All @@ -47,5 +49,15 @@
</JFXToggleButton>
</children>
</VBox>
<StackPane fx:id="stackPane" layoutX="300.0" layoutY="211.0" prefHeight="150.0" prefWidth="200.0" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<JFXDialog fx:id="dialog" />
</children>
</StackPane>
<StackPane fx:id="stackPane1" layoutX="10.0" layoutY="10.0" prefHeight="150.0" prefWidth="200.0" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<JFXDialog fx:id="dialog1" />
</children>
</StackPane>
</children>
</AnchorPane>
Binary file modified build/classes/wdp/MainController.class
Binary file not shown.
5 changes: 5 additions & 0 deletions build/classes/wdp/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.jfx-combo-box{

-fx-text-fill: #FFF;

}
4 changes: 2 additions & 2 deletions dist/WDP.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
function launchApplication(jnlpfile) {
dtjava.launch( {
url : 'WDP.jnlp',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iV0RQLmpubHAiPg0KICA8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gY2hlY2s9ImFsd2F5cyIvPg0KPC9qbmxwPg0K'
},
{
javafx : '8.0+'
Expand All @@ -24,7 +24,7 @@
placeholder : 'javafx-app-placeholder',
width : '800',
height : '600',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iV0RQLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPldEUDwvdGl0bGU+DQogICAgPHZlbmRvcj51c2VyPC92ZW5kb3I+DQogICAgPGRlc2NyaXB0aW9uPm51bGw8L2Rlc2NyaXB0aW9uPg0KICAgIDxvZmZsaW5lLWFsbG93ZWQvPg0KICA8L2luZm9ybWF0aW9uPg0KICA8cmVzb3VyY2VzPg0KICAgIDxqMnNlIHZlcnNpb249IjEuNisiIGhyZWY9Imh0dHA6Ly9qYXZhLnN1bi5jb20vcHJvZHVjdHMvYXV0b2RsL2oyc2UiLz4NCiAgICA8amFyIGhyZWY9IldEUC5qYXIiIHNpemU9IjIwNDQxNDI5IiBkb3dubG9hZD0iZWFnZXIiIC8+DQogICAgPGphciBocmVmPSJsaWJcamZvZW5peC04LjAuOC5qYXIiIHNpemU9IjI3MDg3NzIiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYlxteXNxbC1jb25uZWN0b3ItamF2YS01LjEuMjMtYmluLmphciIgc2l6ZT0iODM0MTI2IiBkb3dubG9hZD0iZWFnZXIiIC8+DQogIDwvcmVzb3VyY2VzPg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBtYWluLWNsYXNzPSJjb20uamF2YWZ4Lm1haW4uTm9KYXZhRlhGYWxsYmFjayIgIG5hbWU9IldEUCIgPg0KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmF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uTm9KYXZhRlhGYWxsYmFjayIgIG5hbWU9IldEUCIgPg0KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4NCiAgPC9hcHBsZXQtZGVzYz4NCiAgPGpmeDpqYXZhZngtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9IndkcC5XRFAiICBuYW1lPSJXRFAiIC8+DQogIDx1cGRhdGUgY2hlY2s9ImFsd2F5cyIvPg0KPC9qbmxwPg0K'
},
{
javafx : '8.0+'
Expand Down
Binary file modified dist/WDP.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/WDP.jnlp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="WDP.jar" size="20441429" download="eager" />
<jar href="WDP.jar" size="20218909" download="eager" />
<jar href="lib\jfoenix-8.0.8.jar" size="2708772" download="eager" />
<jar href="lib\mysql-connector-java-5.1.23-bin.jar" size="834126" download="eager" />
</resources>
Expand Down
45 changes: 45 additions & 0 deletions dist/run1394592866/WDP.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html><head>
<SCRIPT src="./web-files/dtjava.js"></SCRIPT>
<script>
function launchApplication(jnlpfile) {
dtjava.launch( {
url : 'WDP.jnlp',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iV0RQLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPldEUDwvdGl0bGU+DQogICAgPHZlbmRvcj51c2VyPC92ZW5kb3I+DQogICAgPGRlc2NyaXB0aW9uPm51bGw8L2Rlc2NyaXB0aW9uPg0KICAgIDxvZmZsaW5lLWFsbG93ZWQvPg0KICA8L2luZm9ybWF0aW9uPg0KICA8cmVzb3VyY2VzPg0KICAgIDxqMnNlIHZlcnNpb249IjEuNisiIGhyZWY9Imh0dHA6Ly9qYXZhLnN1bi5jb20vcHJvZHVjdHMvYXV0b2RsL2oyc2UiLz4NCiAgICA8amFyIGhyZWY9IldEUC5qYXIiIHNpemU9IjIwMjE4OTA5IiBkb3dubG9hZD0iZWFnZXIiIC8+DQogICAgPGphciBocmVmPSJsaWJcamZvZW5peC04LjAuOC5qYXIiIHNpemU9IjI3MDg3NzIiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYlxteXNxbC1jb25uZWN0b3ItamF2YS01LjEuMjMtYmluLmphciIgc2l6ZT0iODM0MTI2IiBkb3dubG9hZD0iZWFnZXIiIC8+DQogIDwvcmVzb3VyY2VzPg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBtYWluLWNsYXNzPSJjb20uamF2YWZ4Lm1haW4uTm9KYXZhRlhGYWxsYmFjayIgIG5hbWU9IldEUCIgPg0KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4NCiAgPC9hcHBsZXQtZGVzYz4NCiAgPGpmeDpqYXZhZngtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9IndkcC5XRFAiICBuYW1lPSJXRFAiIC8+DQogIDx1cGRhdGUgY2hlY2s9ImFsd2F5cyIvPg0KPC9qbmxwPg0K'
},
{
javafx : '8.0+'
},
{}
);
return false;
}
</script>

<script>
function javafxEmbedwdp() {
dtjava.embed(
{
id : 'wdp',
url : 'WDP.jnlp',
placeholder : 'javafx-app-placeholder',
width : '800',
height : '600',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sb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Pg0K'
},
{
javafx : '8.0+'
},
{}
);
}
<!-- Embed FX application into web page once page is loaded -->
dtjava.addOnloadCallback(javafxEmbedwdp);
</script>

</head><body>
<h2>Test page for <b>WDP</b></h2>
<b>Webstart:</b> <a href='WDP.jnlp' onclick="return launchApplication('WDP.jnlp');">click to launch this app as webstart</a><br><hr><br>

<!-- Applet will be inserted here -->
<div id='javafx-app-placeholder'></div>
</body></html>
Binary file added dist/run1394592866/WDP.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions dist/run1394592866/WDP.jnlp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="WDP.jnlp">
<information>
<title>WDP</title>
<vendor>user</vendor>
<description>null</description>
<offline-allowed/>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="WDP.jar" size="20218909" download="eager" />
<jar href="lib\jfoenix-8.0.8.jar" size="2708772" download="eager" />
<jar href="lib\mysql-connector-java-5.1.23-bin.jar" size="834126" download="eager" />
</resources>
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="WDP" >
<param name="requiredFXVersion" value="8.0+"/>
</applet-desc>
<jfx:javafx-desc width="800" height="600" main-class="wdp.WDP" name="WDP" />
<update check="always"/>
</jnlp>
Binary file added dist/run1394592866/lib/jfoenix-8.0.8.jar
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5c2f1f1

Please sign in to comment.