Skip to content

Instantly share code, notes, and snippets.

View Andrauss's full-sized avatar

Fernando Andrauss Andrauss

View GitHub Profile
@Andrauss
Andrauss / TopFxUtilidades.java
Created February 1, 2017 22:18
TopFxUtilidades.java
import java.io.IOException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.concurrent.CountDownLatch;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
@Andrauss
Andrauss / WindowController.java
Created February 1, 2017 22:18
WindowController.java
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.control.Dialog;
import javafx.scene.control.DialogPane;
import javafx.scene.effect.ColorAdjust;
import javafx.scene.effect.Effect;
import javafx.scene.effect.GaussianBlur;
import javafx.scene.effect.Light;
@Andrauss
Andrauss / TelaExemploController.java
Created February 1, 2017 22:22
Exemplo com Window Controller
import WindowController;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Region;
@Andrauss
Andrauss / ListExemplo
Created March 6, 2017 01:35
Listview
list.setCellFactory((ListView<Double> param) -> {
return new ListCell<Double>() {
@Override
protected void updateItem(Double item, boolean empty) {
if (empty) {
setGraphic(null);
} else {
ProgressBar progBar = new ProgressBar(item);
progBar.setMaxWidth(Double.MAX_VALUE);
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.web.WebView?>
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ListTestController">
<children>
<SplitPane dividerPositions="0.5" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
@Andrauss
Andrauss / MdiSwingFx.java
Created March 18, 2017 00:00
JavaFX Swing Internal Frame
import br.com.fandrauss.fx.gui.WindowControllerFx;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.embed.swing.SwingNode;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
@Andrauss
Andrauss / MdiSwingFx.java
Created March 18, 2017 00:00
JavaFX Swing Internal Frame
import br.com.fandrauss.fx.gui.WindowControllerFx;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.embed.swing.SwingNode;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
@Andrauss
Andrauss / MdiSwingFx.java
Created March 18, 2017 00:00
JavaFX Swing Internal Frame
import br.com.fandrauss.fx.gui.WindowControllerFx;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.embed.swing.SwingNode;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
@Andrauss
Andrauss / MdiSwingFx.java
Created March 18, 2017 00:00
JavaFX Swing Internal Frame
import br.com.fandrauss.fx.gui.WindowControllerFx;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.embed.swing.SwingNode;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
@Andrauss
Andrauss / MdiSwingFx.java
Created March 18, 2017 00:00
JavaFX Swing Internal Frame
import br.com.fandrauss.fx.gui.WindowControllerFx;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Platform;
import javafx.embed.swing.SwingNode;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;