藏知阁

好记性不如烂笔头

JavaFX学习路径

  1. 易百教程:通过一个实例,教会你从创建项目到部署全过程,初学者强烈推荐。
    特别注意:用JavaFX Scene Builder更改界面后一定记得项目右键Refresh(Eclipse)
  2. 官方教程1
  3. 官方教程2
  4. Using JavaFX UI Controls:This tutorial covers built-in JavaFX UI controls available in the JavaFX API.
  5. TableView和TreeView事件:JavaFX中的事件也不像Java或者Android里面用onItemClick之类的来执行某一项的点击。JavaFX中的控件的很多事件有着鲜明的特色,就是使用PropertyChangeListener来执行。
  6. JavaFX ListView
  7. TableView with Different Context Menu:上下文菜单高级教程
  8. Display Popup with ProgressBar in JavaFX:弹出窗口显示进度条
  9. JavaFX DatePicker:比较详细的教程
  10. Deploying JavaFX Applications:部署JavaFX应用,有四种Execution Mode
Execution Mode Description 解释 相关教程
Run as a standalone program The application package is available on a local drive. Users launch it using a Java launcher, such as java -jar MyApp.jar, or by double-clicking the application JAR file. 即以.jar文件运行,需要电脑安装JRE,桌面级 Eclipse EE的Export功能可以导出Runnable JAR file
Launched from a remote server using Web Start Users click a link in a web page to start the application from a remote web server. Once downloaded, a Web Start application can also be started from a desktop shortcut. 使用Web Start运行,浏览器级
Embedded into a web page JavaFX content is embedded in the web page and hosted on a remote web server. 嵌入到网页中运行,浏览器级
Launched as a self-contained application Application is installed on the local drive and runs as a standalone program using a private copy of Java and JavaFX runtimes. The application can be launched in the same way as other native applications for that operating system, for example using a desktop shortcut or menu entry. 生成可安装文件,如.exe .msi .img .rpm .deb等,桌面级 教程

9. 各种事件:

TreeItem.buildEventDispatchChain(EventDispatchChain tail);

TreeItem.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent e) {
                if (e.getButton() == MouseButton.SECONDARY)
                    cm.show(treeView, e.getScreenX(), e.getScreenY());
            }
        });
阅读更多

扫码向博主提问

去开通我的Chat快问

加勒比海鲜

非学,无以致疑;非问,无以广识
  • 擅长领域:
  • 深度学习
  • Python
版权声明:原创文章,转载前请告知博主。 https://blog.csdn.net/guolindonggld/article/details/49944261
个人分类: 笔记
上一篇Ubuntu 14.04 安装Apache、MySQL、PHP、JDK7、Tomcat7、vsFTPd、Open SSH Server快速步骤
下一篇Java基本代码
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭