Giter Site home page Giter Site logo

jfx_maven_demo's Introduction

前言

1、本项目是基于JavaFX,开源项目有JFoenix

2、这是项目需要一个桌面的管理端,用HTML,说实话,用Java写我更擅长点

3、网上JavaFx资料相对于Android来说,少的就像波多野结衣的骑兵种子一样

4、项目的第一版本全是阅读源码,全用Java,导致产生事件给控件赋值都需要几层循环遍历,找到对应Node,强制转换,很恶心

5、项目第二版本是采用了Scene Builder,也对此组件进行业务上的封装,瞬间爽多了

6、最后就是总结,总结在此过程中遇到的问题,1、2、3标注在底下

7、吐槽一下,JavaFx的资料在网上千篇一律,有人还好意思录制了视频,都是API的资料,你就不能植入自己的需求,讲自己的东西啊,都是站在巨人的肩膀上干活,你特娘的就不能有点创新意识啊!Fuck them.

1、字体设置不了Bold(中文不支持)

这个问题也困扰了我两天,后来我在stackflow上看到也有人why,后来就找到Oracle官网上看到这是JDK8的bug,也感谢群友,[email protected],提供了他电脑可运行jdk版本(1.8.0_181)这才解决了问题,https://bugs.openjdk.java.net/browse/JDK-8127134 这个已经open了6年都没有解决;

2、ListView Custom Cell

这个呢,在API文档中有说明,在资源中也有,我之前不了解的是,每个FXML文件都要有个Controller,不能像Android中,inFlxxxx(xml),这个操作在API中没有,这个操作也是我翻墙在老外的博客中找到的;

3、想翻墙找我

确实,Google搜出的东西确实要比百度多的多的多,同样是中文资料也比百度准确的多,我的邮箱在我GitHub主页,我会把工具发送过来;

4、翻墙注意

翻墙你会看到各种乱七八糟的东西,什么美国之音、阿波罗新闻网、大纪元、郭文贵等等等,之前我也感兴趣,也总是感叹**好黑暗,但是看多了,就发现都是故意黑,看看就行,别当真,还有,要想真的客观的了解外国媒体怎么看待**的时政,可以上纽约时报这些全球知名的媒体,上面讲的内容感觉就很公道;

5、maven c error

如果出现 maven install error错误但maven build success的情况,你可能要换个jdk版本;

6、Retrofit2.0 文件下载

参考博客:https://juejin.im/post/5aeaa875518825672a02c197 本文的server为自行部署;

jfx_maven_demo's People

Contributors

whsgzcy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.