自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(50)
  • 收藏
  • 关注

转载 吃鱼小游戏,可以让小朋友练习键盘方向键和鼠标,采用javafx框架tornadofx实现...

import javafx.application.Applicationimport javafx.stage.Stageimport javafx.scene.paint.Colorimport javafx.scene.text.Fontimport javafx...

2019-09-04 16:22:00 596

转载 一颗心到一个圆的演变,javafx框架tornadofx动画演示

import javafx.animation.AnimationTimerimport javafx.application.Applicationimport javafx.application.Platformimport javafx.geometry.Pos...

2019-09-04 09:39:00 309

转载 javafx框架tornadofx画个心形

import javafx.animation.AnimationTimerimport javafx.application.Applicationimport javafx.application.Platformimport javafx.geometry.Pos...

2019-09-03 12:03:00 424

转载 300行代码不到的javafx框架tornadofx拼图游戏优化版

不知道为什么分成9份的时候无法移动,请高手指教 分成36份的时候程序有可能卡住没反应 分成4份的时候有可能无法成功恢复原图 import javafx.application.Applicationimport javafx.application.Platformimp...

2019-09-03 10:00:00 132

转载 tornadofx往canvas中动态添加图形

以下代码通过Timer实现动画,无法暂停、继续 import javafx.application.Applicationimport javafx.application.Platformimport javafx.geometry.Posimport javafx.s...

2019-09-03 08:58:00 187

转载 生成包含n个不重复整数的数组,并在0到n之间找出不包含在该数组内的那个数...

标题有点饶。相输出如下结果: nn:[3, 5, 8, 4, 7, 2, 0, 1, 6] findnum(nn):9 数组nn有9个元素,0到9之间,9不在数组nn中 ====================== nn:[5, 7, 1, 8, 4, 9, 0, 6, 3] find...

2019-09-02 18:18:00 250

转载 使用kotlin开发javafx程序,拼图游戏

import javafx.application.Applicationimport javafx.event.EventHandlerimport javafx.geometry.Rectangle2Dimport javafx.scene.Sceneimport ja...

2019-09-02 15:22:00 744

转载 install pysimplegui in manjaro

此版本manjaro自带python3.7,但运行pysimplegui程序时,报错找不到tkinter,安装方法为sudo pacman -S tk 转载于:https://m...

2019-08-31 06:01:00 167

转载 300行代码不到的tornadofx拼图游戏

package com.cyy.game.pingtuimport javafx.application.Applicationimport javafx.beans.property.SimpleObjectPropertyimport javafx.event.Even...

2019-08-28 18:11:00 130

转载 tornadofx使用imageview显示图片,使用chooseFile选择图片

import javafx.application.Applicationimport javafx.beans.property.SimpleObjectPropertyimport javafx.geometry.Posimport javafx.scene.image...

2019-08-28 15:42:00 443

转载 tornadofx使用slider、spinner控件

import javafx.application.Applicationimport javafx.geometry.Posimport tornadofx.*fun main() = Application.launch(TestApp::class.java)...

2019-08-23 16:08:00 108

转载 tornadofx响应鼠标点击事件

import javafx.application.Applicationimport javafx.beans.property.SimpleStringPropertyimport javafx.event.EventHandlerimport javafx.geometr...

2019-08-09 17:08:00 139

转载 tornadofx响应键盘点击事件

import javafx.application.Applicationimport javafx.beans.property.SimpleStringPropertyimport javafx.event.EventHandlerimport javafx.geometr...

2019-08-09 17:01:00 211

转载 得到togglegroup选定控件值的3种方法

selectedValue.value=tgFileType.selectedToggle.userData // selectedValue.value=tgFileType.selectedToggle.toString().split("'")[1] // selectedValue...

2019-08-07 15:58:00 1995

转载 在javafx程序中使用tornadofx创建的view

根据https://github.com/dlsc-software-consulting-gmbh/WorkbenchFX创建javafx示例: 根据https://edvin.gitbooks.io/tornadofx-guide/part2/Integration.html 在java...

2019-07-29 09:29:00 540

转载 tornadofx演示分形图的绘制

枚举类中有抽象方法、有构造函数,每个值继承该方法实现自己的业务行为逻辑。combobox绑定枚举类。togglegroup包裹radiobutton,利用枚举类的值批量生成radiobutton 查看演示:https://www.bilibili.com/video/av606562...

2019-07-25 09:17:00 121

转载 搞懂基本排序算法

搞懂基本排序算法 上篇文章写了关于 Java 内部类的基本知识,感兴趣的朋友可以去看一下:搞懂 JAVA 内部类;本文写的内容是最近学习的算法相关知识中的基本排序算法,排序算法也算是面试中的常客了,实际上也是算法中最基本的知识。由于 Android 开发中用到的地方并不多,所以也很容...

2019-07-22 17:03:00 77

转载 tornadofx选择排序

import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx.scene.paint.Colorimport javafx.scene.shape.Recta...

2019-07-22 16:52:00 105

转载 tornadofx使用rectangle、AnimationTimer、timeline动画演示选择排序,第2版

import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx.scene.paint.Colorimport javafx.scene.shape.Re...

2019-07-18 09:28:00 116

转载 tornadofx使用barchart、AnimationTimer、timeline动画演示选择排序,第1版

查看演示:https://www.bilibili.com/video/av59653274/ import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx....

2019-07-18 09:14:00 116

转载 tornadofx主从表演示

import javafx.beans.property.SimpleListPropertyimport javafx.collections.FXCollectionsimport tornadofx.*class LearnApp : App(PersonMain...

2019-07-17 13:17:00 129

转载 tornadofx根据不同的选择显示隐藏控件

import javafx.collections.FXCollectionsimport tornadofx.*class LearnApp : App(ChooseUserView::class)class User() { constructor(nam...

2019-07-17 12:45:00 129

转载 tornadofx更换主题颜色样式

import javafx.scene.paint.Colorimport javafx.stage.Stageimport tornadofx.*import kotlin.reflect.KClassclass LearnApp : App(ThemeView:...

2019-07-17 11:50:00 329

转载 tornadofx在tableview中使用自定义的TableCell

import javafx.collections.FXCollectionsimport javafx.scene.control.Buttonimport javafx.scene.control.TableCellimport tornadofx.*class...

2019-07-17 11:08:00 244

转载 kotlin中奖概率

fun main() { var wins = 0 var chance = 0.2 var playTime = 10// 1000万次 val n = 10000000 (1..n).forEach { ...

2019-07-16 18:12:00 174

转载 tornadofx控制台输出“三门问题”,蒙特卡洛算法

import tornadofx.*fun main() { val wins = intProperty() val lose = intProperty() val Msg = stringProperty()// 1000万次 ...

2019-07-16 17:33:00 103

转载 tornadofx使用circle、AnimationTimer、timeline动画演示蒙特卡洛算法求PI值

演示地址:https://www.bilibili.com/video/av59421525 import javafx.animation.AnimationTimerimport javafx.scene.paint.Colorimport javafx.scene.shap...

2019-07-16 16:39:00 207

转载 tornadofx使用barchart、AnimationTimer、timeline动画演示分钱问题

演示地址:https://www.bilibili.com/video/av59397164 import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx.scen...

2019-07-16 13:24:00 84

转载 tornadofx动画演示分钱问题,多种方法

import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx.scene.paint.Colorimport javafx.scene.shape.Rectang...

2019-07-16 11:55:00 76

转载 tornadofx动画演示分钱问题

分钱问题: import javafx.animation.AnimationTimerimport javafx.collections.FXCollectionsimport javafx.scene.paint.Colorimport javafx.scene.s...

2019-07-16 08:50:00 71

转载 tornadofx格式化listview中的item

class ListView : View() { val responses = FXCollections.observableArrayList<Student>() override val root = vbox { list...

2019-07-15 11:00:00 107

转载 tornadofx使用listview控件绑定对象

import cn.hutool.core.io.resource.ClassPathResourceimport javafx.collections.FXCollectionsimport tornadofx.*class LearnApp : App(LearnV...

2019-07-12 18:12:00 131

转载 tornadofx监听鼠标事件,用鼠标画点

import javafx.collections.FXCollectionsimport javafx.scene.input.*import javafx.scene.paint.Colorimport javafx.scene.shape.Circleimport...

2019-07-12 13:12:00 94

转载 tornadofx使用menubar控件

class LearnApp : App(LearnV::class)class LearnV : View("learn") { val menuClicked = stringProperty() override val root = borderpane {...

2019-07-12 10:28:00 98

转载 tornadofx使用checkbox控件

class LearnApp : App(LearnV::class)class LearnV : View("learn") { val enableSounds = booleanProperty() override val root = form { ...

2019-07-12 09:16:00 138

转载 tornadofx控件combobox绑定enum class

class LearnApp : App(LearnV::class)class LearnV : View("learn") { val speed = SimpleObjectProperty(this, "speed", Speed.Normal) overr...

2019-07-12 08:56:00 101

转载 learn kotlin

正则表达式: fun main(){ val source="hello,my phone number is : 020-87654321." val pattern=""".*(\d{3}-\d{8}).""" Regex(pattern).findAll(...

2019-07-11 18:02:00 72

转载 tornadofx使用RichTextFX控件

依赖:dependencies { implementation(kotlin("stdlib-jdk8")) compile("org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.3.0-M1") comp...

2019-07-10 18:06:00 486

转载 tornadofx使用fxml文件进行界面布局

布局文件: demo.fxml <?import javafx.geometry.Insets?><?import javafx.scene.control.Button?><?import javafx.scene.control.Label?&...

2019-07-08 17:26:00 385

转载 tornadofx拖拽显示文本文件和图片文件

class DragFile : View("drag and drop") { val dragFileModel = DragFileModel(this) lateinit var ap: FlowPane override val root = vbo...

2019-07-08 16:03:00 141

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除