diff --git a/app/bluecove-1.2.3-signed.jar b/app/bluecove-1.2.3-signed.jar new file mode 100644 index 0000000000000000000000000000000000000000..7d91e91d094467da9f406e46d09d82a80e3705b3 Binary files /dev/null and b/app/bluecove-1.2.3-signed.jar differ diff --git a/app/bluecove-1.2.3-signed.jar.zip b/app/bluecove-1.2.3-signed.jar.zip new file mode 100644 index 0000000000000000000000000000000000000000..4b2d7edbc2114632d8b6d8716172f55b90021bf7 Binary files /dev/null and b/app/bluecove-1.2.3-signed.jar.zip differ diff --git a/app/bluecove-2.1.1-SNAPSHOT.jar b/app/bluecove-2.1.1-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..ce9ca6c56013633565f7028e5b791e262c96816a Binary files /dev/null and b/app/bluecove-2.1.1-SNAPSHOT.jar differ diff --git a/app/nbproject/project.properties b/app/nbproject/project.properties index 386a3d740d747f71cff8b5c9c5ca02433ada0e2f..67291becf913e173ea5f12d635d4bf2202a087da 100644 --- a/app/nbproject/project.properties +++ b/app/nbproject/project.properties @@ -1,6 +1,5 @@ annotation.processing.enabled=true annotation.processing.enabled.in.editor=false -annotation.processing.processor.options= annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output @@ -30,15 +29,18 @@ dist.jar=${dist.dir}/app.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= +file.reference.bluecove-2.1.1-SNAPSHOT.jar=bluecove-2.1.1-SNAPSHOT.jar includes=** # Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects jar.archive.disabled=true jar.compress=false javac.classpath=\ - ${javafx.classpath.extension} + ${javafx.classpath.extension}:\ + ${file.reference.bluecove-2.1.1-SNAPSHOT.jar} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false +javac.external.vm=false javac.processorpath=\ ${javac.classpath} javac.source=1.8 @@ -65,11 +67,16 @@ javafx.classpath.extension=\ ${java.home}/lib/javaws.jar:\ ${java.home}/lib/deploy.jar:\ ${java.home}/lib/plugin.jar +javafx.deploy.adddesktopshortcut=false +javafx.deploy.addstartmenushortcut=false javafx.deploy.allowoffline=true # If true, application update mode is set to 'background', if false, update mode is set to 'eager' javafx.deploy.backgroundupdate=false +javafx.deploy.disable.proxy=false javafx.deploy.embedJNLP=true javafx.deploy.includeDT=true +javafx.deploy.installpermanently=false +javafx.deploy.permissionselevated=false # Set true to prevent creation of temporary copy of deployment artifacts before each run (disables concurrent runs) javafx.disable.concurrent.runs=false # Set true to enable multiple concurrent runs of the same WebStart or Run-in-Browser project @@ -90,6 +97,9 @@ javafx.preloader.type=none javafx.rebase.libs=false javafx.run.height=600 javafx.run.width=800 +javafx.signing.blob=false +javafx.signing.enabled=false +javafx.signing.type=notsigned # Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects jnlp.enabled=false # Main class for Java launcher @@ -100,6 +110,8 @@ manifest.custom.codebase=* manifest.custom.permissions= manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +native.bundling.enabled=false platform.active=default_platform run.classpath=\ ${dist.jar}:\ diff --git a/app/src/Bluetooth/BluetoothDevices.java b/app/src/Bluetooth/BluetoothDevices.java new file mode 100644 index 0000000000000000000000000000000000000000..25e7500391d489a097f9771101cfe6a139ee1648 --- /dev/null +++ b/app/src/Bluetooth/BluetoothDevices.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Bluetooth; + +import java.io.IOException; +import javax.bluetooth.BluetoothStateException; +import javax.bluetooth.DiscoveryAgent; +import javax.bluetooth.LocalDevice; +import javax.bluetooth.RemoteDevice; + +/** + * + * @author invite + */ +public class BluetoothDevices { + + + public BluetoothDevices() throws BluetoothStateException, IOException{ + LocalDevice device = LocalDevice.getLocalDevice(); + + RemoteDevice[] remotedevice = device.getDiscoveryAgent().retrieveDevices(DiscoveryAgent.PREKNOWN); + + for(RemoteDevice d : remotedevice) + { + System.out.println("Device Name : "+d.getFriendlyName(false)); + System.out.println("Bluetooth Address : "+d.getBluetoothAddress()+"\n"); + } + } + + +} + diff --git a/app/src/app/App.java b/app/src/app/App.java index 891ee8148dec26d5cc7b6775f59979fcdff0bf04..61338bf35b1fcb64afcbf91621198361c6f70363 100644 --- a/app/src/app/App.java +++ b/app/src/app/App.java @@ -5,12 +5,14 @@ */ package app; +import Bluetooth.BluetoothDevices; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import Vue.*; +import java.io.IOException; /** * @@ -20,6 +22,7 @@ public class App extends Application { @Override public void start(Stage stage) throws Exception{ + Parent root = FXMLLoader.load(getClass().getResource("/Vue/FXMLVue.fxml")); Scene scene = new Scene(root); @@ -31,7 +34,9 @@ public class App extends Application { /** * @param args the command line arguments */ - public static void main(String[] args) { + public static void main(String[] args) throws IOException { + BluetoothDevices b; + b = new BluetoothDevices(); launch(args); }