Skip to content

Commit

Permalink
Alpha2.0
Browse files Browse the repository at this point in the history
nice now theres a theme i guess....
  • Loading branch information
ProgrammerIn-wonderland committed Nov 17, 2019
1 parent 2430051 commit af94222
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 20 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 @@
#Sat, 16 Nov 2019 15:20:06 -0500
#Sat, 16 Nov 2019 22:08:49 -0500


C\:\\Users\\niris\\OneDrive\\Documents\\NetBeansProjects\\AutofastForward(alpha1)=
Binary file modified build/classes/autofastforward/alpha1/AutofastForwardAlpha1.class
Binary file not shown.
16 changes: 12 additions & 4 deletions build/classes/autofastforward/alpha1/FXMLDocument.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/11.0.1" fx:controller="autofastforward.alpha1.FXMLDocumentController">

<AnchorPane id="AnchorPane" maxHeight="194" maxWidth="310" minHeight="194" minWidth="310" prefHeight="194" prefWidth="310" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="autofastforward.alpha1.FXMLDocumentController">
<children>
<ImageView fitHeight="206.0" fitWidth="320.0" layoutY="-2.0">
<image>
<Image url="@theme_1.png" />
</image>
</ImageView>
<Button fx:id="button" layoutX="55.0" layoutY="88.0" onAction="#handleButtonAction" text="Open Port" />
<Label fx:id="label" layoutX="126" layoutY="120" minHeight="16" minWidth="69" />
<Button fx:id="button1" layoutX="195.0" layoutY="88.0" onAction="#handleButtonAction2" text="Close Port" />
<TextField fx:id="portbox" layoutX="71.0" layoutY="48.0" prefHeight="25.0" prefWidth="204.0" text="Doesn't Do anything Right now" />
<Label layoutX="46.0" layoutY="52.0" prefHeight="17.0" prefWidth="26.0" text="Port" />
<TextField fx:id="portbox" layoutX="71.0" layoutY="48.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="25.0" prefWidth="204.0" text="25565" />
<Label fx:id="label" layoutX="126" layoutY="120" minHeight="16" minWidth="69" textFill="WHITE" />
<Label layoutX="46.0" layoutY="52.0" prefHeight="17.0" prefWidth="26.0" text="Port" textFill="WHITE" />
</children>
</AnchorPane>
Binary file modified build/classes/autofastforward/alpha1/FXMLDocumentController.class
Binary file not shown.
Binary file added build/classes/autofastforward/alpha1/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/classes/autofastforward/alpha1/theme_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/classes/autofastforward/theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dist/AutofastForward(alpha1).html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
function launchApplication(jnlpfile) {
dtjava.launch( {
url : 'AutofastForward(alpha1).jnlp',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iQXV0b2Zhc3RGb3J3YXJkKGFscGhhMSkuam5scCI+DQogIDxpbmZvcm1hdGlvbj4NCiAgICA8dGl0bGU+QXV0b2Zhc3RGb3J3YXJkKGFscGhhMSk8L3RpdGxlPg0KICAgIDx2ZW5kb3I+bmlyaXM8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwv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3RpdGxlPg0KICAgIDx2ZW5kb3I+bmlyaXM8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iQXV0b2Zhc3RGb3J3YXJkKGFscGhhMSkuamFyIiBzaXplPSIyMjQ0OTciIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxhcHBsZXQtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9ImNvbS5qYXZhZngubWFpbi5Ob0phdmFGWEZhbGxiYWNrIiAgbmFtZT0iQXV0b2Zhc3RGb3J3YXJkKGFscGhhMSkiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSI4LjArIi8+DQogIDwvYXBwbGV0LWRlc2M+DQogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBtYWluLWNsYXNzPSJhdXRvZmFzdGZvcndhcmQuYWxwaGExLkF1dG9mYXN0Rm9yd2FyZEFscGhhMSIgIG5hbWU9IkF1dG9mYXN0Rm9yd2FyZChhbHBoYTEpIiAvPg0KICA8dXBkYXRlIGNoZWNrPSJhbHdheXMiLz4NCjwvam5scD4NCg=='
},
{
javafx : '8.0+'
Expand All @@ -24,7 +24,7 @@
placeholder : 'javafx-app-placeholder',
width : '800',
height : '600',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJod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AvPg0KICA8dXBkYXRlIGNoZWNrPSJhbHdheXMiLz4NCjwvam5scD4NCg=='
},
{
javafx : '8.0+'
Expand Down
Binary file modified dist/AutofastForward(alpha1).jar
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/AutofastForward(alpha1).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="AutofastForward(alpha1).jar" size="12653" download="eager" />
<jar href="AutofastForward(alpha1).jar" size="224497" download="eager" />
</resources>
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="AutofastForward(alpha1)" >
<param name="requiredFXVersion" value="8.0+"/>
Expand Down
3 changes: 2 additions & 1 deletion nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/dosse/upnp/Gateway.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/dosse/upnp/UPnP.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/autofastforward/alpha1/FXMLDocumentController.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/dosse/upnp/UPnP.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/autofastforward/alpha1/theme_1.png</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/dosse/upnp/GatewayFinder.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/autofastforward/alpha1/AutofastForwardAlpha1.java</file>
<file>file:/C:/Users/niris/OneDrive/Documents/NetBeansProjects/AutofastForward(alpha1)/src/autofastforward/alpha1/FXMLDocument.fxml</file>
Expand Down
7 changes: 7 additions & 0 deletions src/autofastforward/alpha1/AutofastForwardAlpha1.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,29 @@
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

/**
*
* @author niris
*/
public class AutofastForwardAlpha1 extends Application {

public static Stage stage;

@Override
public void start(Stage stage) throws Exception {
this.stage = stage; // initialize value of stage.
Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml"));

Scene scene = new Scene(root);

stage.setScene(scene);
stage.show();
stage.setTitle("Auto Fast Forward ->>");
stage.getIcons().add(new Image(AutofastForwardAlpha1.class.getResourceAsStream("icon.png")));
AutofastForwardAlpha1.stage.setResizable(false);
}

/**
Expand Down
16 changes: 12 additions & 4 deletions src/autofastforward/alpha1/FXMLDocument.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>

<AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/11.0.1" fx:controller="autofastforward.alpha1.FXMLDocumentController">

<AnchorPane id="AnchorPane" maxHeight="194" maxWidth="310" minHeight="194" minWidth="310" prefHeight="194" prefWidth="310" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="autofastforward.alpha1.FXMLDocumentController">
<children>
<ImageView fitHeight="206.0" fitWidth="320.0" layoutY="-2.0">
<image>
<Image url="@theme_1.png" />
</image>
</ImageView>
<Button fx:id="button" layoutX="55.0" layoutY="88.0" onAction="#handleButtonAction" text="Open Port" />
<Label fx:id="label" layoutX="126" layoutY="120" minHeight="16" minWidth="69" />
<Button fx:id="button1" layoutX="195.0" layoutY="88.0" onAction="#handleButtonAction2" text="Close Port" />
<TextField fx:id="portbox" layoutX="71.0" layoutY="48.0" prefHeight="25.0" prefWidth="204.0" text="Doesn't Do anything Right now" />
<Label layoutX="46.0" layoutY="52.0" prefHeight="17.0" prefWidth="26.0" text="Port" />
<TextField fx:id="portbox" layoutX="71.0" layoutY="48.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="25.0" prefWidth="204.0" text="25565" />
<Label fx:id="label" layoutX="126" layoutY="120" minHeight="16" minWidth="69" textFill="WHITE" />
<Label layoutX="46.0" layoutY="52.0" prefHeight="17.0" prefWidth="26.0" text="Port" textFill="WHITE" />
</children>
</AnchorPane>
18 changes: 11 additions & 7 deletions src/autofastforward/alpha1/FXMLDocumentController.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import dosse.upnp.UPnP;
import javafx.scene.control.TextField;
/**
*
* @author niris
Expand All @@ -20,20 +21,23 @@ public class FXMLDocumentController implements Initializable {

@FXML
private Label label;

@FXML
TextField portbox;
@FXML
private void handleButtonAction(ActionEvent event) {
System.out.println("You clicked me!");
UPnP.openPortTCP(25565);
UPnP.openPortUDP(25565);
label.setText("Opened Port 25565");
int integer = Integer.parseInt(portbox.getText());
UPnP.openPortTCP(integer);
UPnP.openPortUDP(integer);
label.setText("Opened Port " + integer);
}
@FXML
private void handleButtonAction2(ActionEvent event) {
System.out.println("You clicked me!");
UPnP.closePortTCP(25565);
UPnP.closePortUDP(25565);
label.setText("Closed Port 25565");
int integer = Integer.parseInt(portbox.getText());
UPnP.closePortTCP(integer);
UPnP.closePortUDP(integer);
label.setText("Closed Port " + integer);
}

@Override
Expand Down
Binary file added src/autofastforward/alpha1/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/autofastforward/alpha1/theme_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/autofastforward/theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit af94222

Please sign in to comment.