在许多界面中我们会发现,为了使页面更美观,更简洁,更有层次,我们往往会用到一些特殊边框,这一节,我主要介绍一种特殊边框的用javafx制作,首先先亮出一张图片来展示一下我们经常会遇到的边框格式:
接下来,我们就要用javafx来作出这种边框的形式,首先我们建立一个javafx fxml应用程序的项目,项目名字叫做biankuang00;建立一个主函数Main.java,主函数如下:
/*
* 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 note01;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
/**
*
* @author Administra