Git Product home page Git Product logo

definitive-guide-modern-java-clients-javafx's Introduction

Apress Source Code

This repository accompanies The Definitive Guide to Modern Java Clients with JavaFX by Stephen Chin, Johan Vos, and James Weaver (Apress, 2019).

Cover image

Download the files as a zip using the green button, or clone the repository to your machine using Git.

Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

Contributions

See the file Contributing.md for more information on how you can contribute to this repository.

definitive-guide-modern-java-clients-javafx's People

Contributors

markp88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

definitive-guide-modern-java-clients-javafx's Issues

Chapter 4 content

This second paragraph of Chapter 4 of the book mentions a "comprehensive demo application" that covers all JavaFX UI controls being available in the code repository. But, I see no subdirectory for Chapter 4. Is it available?

Please add missing source

Hello project owner, is it possible to add missing source code? Appreciate the work and provided code already but could to finish the code please....

Programs Missing from Chapter 3

There are several programs mentioned in chapter three that are not in the source: PropertiesExample, BidirectionalBindingExample, DirectExtensionExample, TriangleAreaExample, TriangleAreaFluentExample, HeronsFormulaExample, HeronsFormulaDirectExtensionExample, FXCollectionsExample, ObservableListExample, ListChangeEventExample, MapChangeEventExample, SetChangeEventExample, JavaFXBeanModelExample, JavaFXBeanModelHalfLazyExample, JavaFXBeanModelFullLazyExample, SelectBindingExample, Person, JavaBeanPropertiesExample.

In short, all but two.

Image in Hello World not resized to grid dimensions

I follow the instructions but the picture of RapidScat does not rescale to the size of the GridPane, even when I reset the "Fit Width" and "Fit Height" fields in the Scene Builder as instructed on page 28. Help?

image

ch13 Machine learning examples running issues

First of all, in order to start examples from this chapter, in place of
<mainClass>org.modernjavafx.ml.TrainingHelperApp</mainClass>
it's should be
<mainClass>org.modernjavafx.ml.ui.TrainingHelperApp</mainClass>
to match package name.
At second, it's will be good if in book would be written how to run this projects (mvn exec:java), because reader may be not familiar with Maven.
At third, I can't launch GuessTheAnimal, DetectObjectsInVideo and DetectObjectsInVideoImproved (with mvn exec:java I able to run TrainingHelperApp).
Here my pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.modernjavafx.ml</groupId>
	<artifactId>modernfx-chapter13</artifactId>
	<version>1.0</version>

	<properties>
		<dl4j.version>1.0.0-beta5</dl4j.version>
		<maven.compiler.source>11</maven.compiler.source>
		<maven.compiler.target>11</maven.compiler.target>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-controls</artifactId>
			<version>11</version>
		</dependency>
		<dependency>
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-graphics</artifactId>
			<version>11</version>
		</dependency>
		<dependency>
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-media</artifactId>
			<version>11</version>
		</dependency>
		<dependency>
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-swing</artifactId>
			<version>11</version>
		</dependency>
		<dependency>
			<groupId>org.nd4j</groupId>
			<artifactId>nd4j-native-platform</artifactId>
			<version>${dl4j.version}</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.0.6</version>
		</dependency>
		<dependency>
			<groupId>org.deeplearning4j</groupId>
			<artifactId>deeplearning4j-core</artifactId>
			<version>${dl4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.deeplearning4j</groupId>
			<artifactId>deeplearning4j-zoo</artifactId>
			<version>${dl4j.version}</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.6.0</version>
				<executions>
					<execution>
						<goals>
							<goal>java</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>org.modernjavafx.ml.ui.GuessTheAnimal</mainClass>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

Here command that I execute in project repository:
mvn clean exec:java
And I get the following output:

2020-12-24 21:50:24.059 java[49008:3273568] Warning: Expected min height of view: (<NSButton: 0x7ff5565bb760>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2020-12-24 21:50:24.063 java[49008:3273568] Warning: Expected min height of view: (<NSButton: 0x7ff5571e7600>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
21:50:24.361 [JavaFX Application Thread] INFO  org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
21:50:25.338 [JavaFX Application Thread] INFO  org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for OpenMP: 2
21:50:25.704 [JavaFX Application Thread] INFO  org.nd4j.nativeblas.Nd4jBlas - Number of threads used for OpenMP BLAS: 2
dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address
  Referenced from: /Users/anahel/.javacpp/cache/nd4j-native-1.0.0-beta5-macosx-x86_64.jar/org/nd4j/nativeblas/macosx-x86_64/libnd4jcpu.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___emutls_get_address
  Referenced from: /Users/anahel/.javacpp/cache/nd4j-native-1.0.0-beta5-macosx-x86_64.jar/org/nd4j/nativeblas/macosx-x86_64/libnd4jcpu.dylib
  Expected in: /usr/lib/libSystem.B.dylib

zsh: abort      mvn exec:java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.