Browse Source
Started work on basic JavaFX implementation, also got some scala included to create the prerequisite folder in src.
master
Started work on basic JavaFX implementation, also got some scala included to create the prerequisite folder in src.
master
Drew Short
11 years ago
5 changed files with 80 additions and 7 deletions
-
5pom.xml
-
39src/main/java/com/sothr/imagetools/App.java
-
13src/main/java/com/sothr/imagetools/errors/ImageToolsException.java
-
11src/main/resources/fxml/mainapp/MainApp.fxml
-
19src/main/scala/com/sothr/imagetools/ui/controller/AppController.scala
@ -0,0 +1,13 @@ |
|||
package com.sothr.imagetools.errors; |
|||
|
|||
/** |
|||
* Created by drew on 12/31/13. |
|||
*/ |
|||
public class ImageToolsException extends Exception { |
|||
|
|||
public ImageToolsException() { super(); } |
|||
public ImageToolsException(String message) { super(message); } |
|||
public ImageToolsException(String message, Throwable cause) { super(message, cause); } |
|||
public ImageToolsException(Throwable cause) { super(cause); } |
|||
|
|||
} |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<?language javascript?> |
|||
<?import javafx.scene.control.*?> |
|||
<?import javafx.scene.layout.*?> |
|||
|
|||
<StackPane fx:id="root" xmlns:fx="http://javafx.com/fxml" fx:controller="com.sothr.imagetools.ui.controller.AppController"> |
|||
<children> |
|||
<Button fx:id="printBtn" onAction="controller.print()" /> |
|||
<fx:script>printBtn.text = 'Click Me ' + controller.print() + '!';</fx:script> |
|||
</children> |
|||
</StackPane> |
@ -0,0 +1,19 @@ |
|||
package com.sothr.imagetools.ui.controller |
|||
|
|||
import javafx.fxml.Initializable |
|||
import java.net.URL |
|||
import java.util.ResourceBundle |
|||
|
|||
/** |
|||
* Created by drew on 12/31/13. |
|||
*/ |
|||
class AppController extends Initializable { |
|||
|
|||
def print():String = { |
|||
return "This method works"; |
|||
} |
|||
|
|||
def initialize(p1: URL, p2: ResourceBundle): Unit = { |
|||
|
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue