“Как двигаться, выбираются из jfxtreetableview javafx” Ответ

Как двигаться, выбираются из jfxtreetableview javafx

Rectangle2D screenBounds = currentScreen.getBounds();
double screenCenterX = screenBounds.getMinX() + screenBounds.getWidth()/2 ;
double screenCenterY = screenBounds.getMinY() + screenBounds.getHeight()/2 ;

Как двигаться, выбираются из jfxtreetableview javafx

package com.jenkov.javafx.controls;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;

import java.io.FileInputStream;

public class ImageViewExperiments extends Application  {


    @Override
    public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("ImageView Experiment 1");

        FileInputStream input = new FileInputStream("resources/images/iconmonstr-home-6-48.png");
        Image image = new Image(input);
        ImageView imageView = new ImageView(image);

        HBox hbox = new HBox(imageView);

        Scene scene = new Scene(hbox, 200, 100);
        primaryStage.setScene(scene);
        primaryStage.show();

    }

    public static void main(String[] args) {
        Application.launch(args);
    }

}

Friendly Flatworm

Как двигаться, выбираются из jfxtreetableview javafx

Rectangle2D screenBounds = currentScreen.getBounds();
double screenCenterX = screenBounds.getMinX() + screenBounds.getWidth()/2 ;
double screenCenterY = screenBounds.getMinY() + screenBounds.getHeight()/2 ;

Ответы похожие на “Как двигаться, выбираются из jfxtreetableview javafx”

Вопросы похожие на “Как двигаться, выбираются из jfxtreetableview javafx”

Больше похожих ответов на “Как двигаться, выбираются из jfxtreetableview javafx” по Java

Смотреть популярные ответы по языку

Смотреть другие языки программирования