摘要: 记录一个备用:import java.io.*; public class MyEclipseGen { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 ... 阅读全文
posted @ 2013-10-10 13:32 君子笑而不语 阅读(327) 评论(0) 推荐(0)
摘要: import javafx.stage.*; import javafx.scene.*;import javafx.scene.paint.Color;import javafx.scene.control.*;import javafx.event.ActionEvent;import javafx.event.EventHandler;public class ModalDialog { Button btn; public ModalDialog(final Stage stg) { btn = new Button("OK"); final Stage stage 阅读全文
posted @ 2013-09-12 14:23 君子笑而不语 阅读(1140) 评论(0) 推荐(0)
摘要: 做个记录,备忘遇到一个问题,点击提交,红色标识的VBox大小不能改变。问题如图,代码如下点击后fxml结构简化代码:红色框体对应vboxMax 控制器中vboxMax.setPrefHeight(320); vbox.setPrefHeight(320); vbox2.setPrefHeight(140); vbox2.setVisible(true);原以为对最外一层(vboxMax)设置大小,就能变化,然后不是这样,原因是因为最外层的VBox可看作是一个窗口,用来盛放其他面板和组件。... 阅读全文
posted @ 2013-09-12 11:04 君子笑而不语 阅读(1480) 评论(0) 推荐(0)
摘要: 在学习javafx的过程中,不知道怎么出现一个弹窗,如,点击一个按钮出现一个修改信息的列表选项终于在javafx文档示例中发现了类似的东西,记录一下,备忘package demo9_button;import javafx.application.Application;import static javafx.application.Application.launch;import javafx.event.ActionEvent;import javafx.event.EventHandler;import javafx.scene.Scene;import javafx.scene.c 阅读全文
posted @ 2013-09-11 10:30 君子笑而不语 阅读(2948) 评论(0) 推荐(0)
摘要: 参考blog:https://blogs.oracle.com/javajungle/entry/monologfx_floss_javafx_dialogs_for 1 /* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 package javafxapplication44; 6 7 import javafx.application.Application; 8 import javafx.application.Platf... 阅读全文
posted @ 2013-09-10 16:27 君子笑而不语 阅读(1459) 评论(0) 推荐(0)
摘要: package test; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.util.Scanner; public class NewClass{ ... 阅读全文
posted @ 2013-09-10 14:27 君子笑而不语 阅读(286) 评论(0) 推荐(0)
摘要: java.lang.OutOfMemoryError: PermGen spacePermGen space的全称是Permanent Generation space是指内存的永久保存区域, 该区域被JVM用来存放Class和Meta信息, 该区域默认大小约是4M,并且JVM圾圾回收机不会在运行期对该区域进行清理.随着应用载入的class越来越多(这些class包括所有来自lib包中 引入的jar), 当该区域不够用时,将抛出PermGen space错误,这个时候就应该手动设置Perm Size的值, 如: JAVA_OPTS='-XX:PermSize=64m -XX:MaxPe 阅读全文
posted @ 2013-09-09 17:29 君子笑而不语 阅读(192) 评论(0) 推荐(0)
摘要: 做了下go和java的http性能的简单比较服务端直接输出字符串使用JMeterwindows下2000的并发,测试结果很出乎意料,go不会这么差吧研究了半小时,原因如下tomcat的servlet里加了response.setHeader("Pragma","no-cache");go里没有设置该参数设置后重新跑测试可以了吧response.setHeader("Pragma", "no-cache")为了清除缓存,防止浏览器后退功能,确保网页信息是最新的转自:http://www.blogjava.net/oa 阅读全文
posted @ 2013-09-09 17:21 君子笑而不语 阅读(409) 评论(0) 推荐(0)
摘要: 来个简单明了的fxml的tableview数据绑定和java代码方式的数据绑定很像,不同的在于要有一到映射首先看个目录1.界面文件Sample.fxml 1 2 3 4 5 6 7 8 9 13 14 15 16 17 18 19 20 21 View Code 2.SampleController代码 1 package test; 2 3 import java.net.URL; 4 import java.util.ResourceBundle; 5 import javafx.collec... 阅读全文
posted @ 2013-09-06 09:45 君子笑而不语 阅读(13020) 评论(4) 推荐(3)
摘要: FXML Stuffs (include and define)Hello folks,Today I would like to blog about the FXML define and include tag which can be very useful for those who are very keen to use FXML in their application. The FXML is an XML file which is loaded by javafx using FXMLLoader . It’s all loaded at the runtime and 阅读全文
posted @ 2013-08-28 15:31 君子笑而不语 阅读(646) 评论(0) 推荐(0)