Java fx教程,有这个,不用再买FX方面的书都够了


Java fx实例教程,有这个实例,不用再买Java FX方面的书都够了
资源截图
代码片段和文件信息
/*
 * Copyright (c) 2010 2014 Oracle and/or its affiliates.
 * All rights reserved. Use is subject to license terms.
 *
 * This file is available and licensed under the following license:
 *
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions
 * are met:
 *
 *  - Redistributions of source code must retain the above copyright
 *    notice this list of conditions and the following disclaimer.
 *  - Redistributions in binary form must reproduce the above copyright
 *    notice this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the distribution.
 *  - Neither the name of Oracle Corporation nor the names of its
 *    contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
 * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
 * SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
 * LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
 * DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package com.javafx.experiments.exporters.fxml;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.collections.ObservableArray;
import javafx.geometry.Point3D;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.paint.Color;
import javafx.scene.paint.PhongMaterial;
import javafx.scene.shape.Box;
import javafx.scene.shape.MeshView;
import javafx.scene.shape.Shape3D;
import javafx.scene.shape.TriangleMesh;
import javafx.scene.transform.Affine;
import javafx.scene.transform.Rotate;
import javafx.scene.transform.Transform;
import javafx.scene.transform.Translate;

/** Export a 3D MeshView to Fxml file. */
public class FxmlExporter {

    private PrintWriter printWriter;
    private Set imports = new TreeSet<>();
    private Map simpleNames = new HashMap<>();

    public FxmlExporter(String filename) {
        File file = new File(filena

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-13 18:36  javafx_samples
     目录           0  2016-12-13 04:04  javafx_samples3DViewer
     文件     4135869  2016-12-13 04:04  javafx_samples3DViewer3DViewer.jar
     目录           0  2016-12-13 04:04  javafx_samples3DViewerlib
     文件     1299495  2016-12-13 04:04  javafx_samples3DViewerlibDaeImporter.jar
     文件     1299498  2016-12-13 04:04  javafx_samples3DViewerlibMaxLoader.jar
     文件     1299495  2016-12-13 04:04  javafx_samples3DViewerlibMayaImporter.jar
     文件     1299502  2016-12-13 04:04  javafx_samples3DViewerlibObjOrPolyObjImporter.jar
     文件    17405677  2016-12-13 04:04  javafx_samplesEnsemble8.jar
     文件       52910  2016-12-13 04:04  javafx_samplesMandelbrotSet.jar
     文件      313831  2016-12-13 04:04  javafx_samplesModena.jar
     文件      127548  2018-02-13 18:36  javafx_samplesModena.zip
     文件        4585  2016-12-13 04:04  javafx_samplessamples_readme.txt
     目录           0  2016-12-13 04:04  javafx_samplessrc
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewer
     文件         160  2016-12-13 04:04  javafx_samplessrc3DVieweruild.gradle
     文件        7148  2016-12-13 04:04  javafx_samplessrc3DVieweruild.xml
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewer
bproject
     文件       79739  2016-12-13 04:04  javafx_samplessrc3DViewer
bprojectuild-impl.xml
     文件         467  2016-12-13 04:04  javafx_samplessrc3DViewer
bprojectgenfiles.properties
     文件        2493  2016-12-13 04:04  javafx_samplessrc3DViewer
bprojectproject.properties
     文件         620  2016-12-13 04:04  javafx_samplessrc3DViewer
bprojectproject.xml
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrc
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmain
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjava
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacom
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacomjavafx
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacomjavafxexperiments
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacomjavafxexperimentsexporters
     目录           0  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacomjavafxexperimentsexportersfxml
     文件       13647  2016-12-13 04:04  javafx_samplessrc3DViewersrcmainjavacomjavafxexperimentsexportersfxmlFxmlExporter.java
............此处省略1337个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)