Skip to content

Instantly share code, notes, and snippets.

View MulticolorWorld's full-sized avatar

MulticolorWorld MulticolorWorld

View GitHub Profile
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Rectangle2D;
import javafx.stage.Screen;
import javafx.stage.Stage;
import javafx.util.Duration;
public class NotificationWindow {
public void testMethod(){
Task<Object> task = new Task<Object>(){
@Override
protected Object call() throws Exception {
Object object = //ここの取得に時間がかかります
return object;
}
@Override
protected void succeeded(){
//getValue()使っていろいろ
public class HogeController{
static ListView<Label> listview1;
static ListView<Label> listview2;
static void setlistview1(String string){
Label label = new Label(string);
listview1.getItems().add(label);
}
static void setlistview2(String string){