public class EffectTest extends Application {
public static void main(String[] args) {
launch(args);
} @Override
public void start(Stage stage) {
Scene scene = new Scene(new Group());
stage.setTitle("Button Sample");
stage.setWidth();
stage.setHeight(); VBox vbox = new VBox();
vbox.setLayoutX();
vbox.setLayoutY(); Image image = new Image(getClass().getResourceAsStream("/effecttest/img/1156909.png"));
Button button1 = new Button("Accept");
button1.setGraphic(new ImageView(image));
button1.setOnAction(new EventHandler<ActionEvent>() {
@Override public void handle(ActionEvent e) {
System.out.println("Accepted");
}
}); vbox.getChildren().add(button1);
vbox.setSpacing();
((Group)scene.getRoot()).getChildren().add(vbox); stage.setScene(scene);
stage.show();
}
}

最新文章

  1. 光驱SSD安装Win7+ubuntu系统双系统
  2. mvc action controller area
  3. exec、source以及bash的区别(zz)
  4. sql2008 附加数据库出错解决方法
  5. 2016年QS亚洲大学排行榜
  6. twisted(3)--再谈twisted
  7. angular 指令梳理 —— checkBox
  8. Memcached帮助类
  9. MySQL &#183; 引擎特性 &#183; InnoDB IO子系统
  10. nginx浏览目录
  11. DirectX11--深入理解与使用缓冲区资源
  12. Selenium自动化 Xpath-元素定位
  13. $(function() {....}) ,(function($){...})(jQuery)
  14. Linux内存管理6---伙伴算法与slab
  15. Springboot实现filter拦截token验证和跨域
  16. wordpress:搭建个人博客
  17. nginx编译安装on mac
  18. 静态代码检查findbugs/阿里巴巴开发规范
  19. StackGAN 阅读笔记
  20. 错误 error C2678: 二进制“&lt;”: 没有找到接受“const card”类型的左操作数的运算符(或没有可接受的转换)

热门文章

  1. [Recompose] Refactor React Render Props to Streaming Props with RxJS and Recompose
  2. github关联域名,创建个人站点教程终结篇
  3. 绿色便携版Lazarus的制作教程
  4. Windows cannot find &quot;. Make sure you typed the name correctly, and then try again
  5. js中arguments对象和this对象
  6. linux大于2T的磁盘使用GPT分区的方法分享
  7. 团队作业——团队项目Alpha版本发布
  8. ADO.NET数据读取封装
  9. HOJ——T 2275 Number sequence
  10. ThinkPHP数据分页Page.class.php