简体   繁体   English

JGoodies绑定教程代码发生了什么变化?

[英]What happened to the JGoodies binding tutorial code?

I want to learn how to use JGoodies binding (since beans binding seems dead in the water, and so does its fork). 我想学习如何使用JGoodies绑定(因为bean绑定似乎在水中死了,它的fork也是如此)。 the JGoosides binding docs refer to the tutorial source code, but this code is not available in the latest (2.5) distribution. JGoosides绑定文档引用了教程源代码,但此代码在最新的(2.5)发行版中不可用。

After looking though previous distribution versions is seems the tutorial code was dropped between 2.0.6 and 2.1.0 在查看以前的分发版本之后,教程代码似乎被丢弃在2.0.6和2.1.0之间

Am I to understand that the tutorial is outdated? 我明白这个教程已经过时了吗? if so, is there an up-to-date tutorial distribution somewhere that I just managed to miss? 如果是这样,是否有一个我最不能错过的最新教程分发?

I had this same exact question and it took me quite awhile to find an answer. 我有同样的问题,我花了很长时间才找到答案。 You are correct in that the latest version (2.5) does not contain the tutorial code. 你是对的,因为最新版本(2.5)不包含教程代码。 However, the old tutorial code (v2.06) is an extremely good starting point, and will teach you the fundamentals. 但是,旧的教程代码(v2.06)是一个非常好的起点,它将教你基础知识。 (At least it did for me.) (至少它对我有用。)

From browsing the Release Notes there are a few significant changes between 2.06 and 2.5 with the com.jgoodies.binding.binder package being the largest. 从浏览发行说明开始 ,2.06和2.5之间有一些重大变化,其中com.jgoodies.binding.binder包是最大的。 (Interestingly the document doesn't specifically mention that the tutorial was removed...) (有趣的是,该文档没有特别提到该教程已被删除......)

The only gotcha with the old tutorial code: 使用旧教程代码的唯一问题:

com.jgoodies.binding.list.ArrayListModel
com.jgoodies.binding.list.ObservableList

have been replaced by: 已被替换为:

com.jgoodies.common.collect.ArrayListModel
com.jgoodies.common.collect.ObservableList

There are also several tutorials online which are quite good, however, note that they are based on the extremely old v1.0. 还有一些在线教程非常好,但请注意,它们基于极其古老的v1.0。 Again though, the principals and concepts are the same. 尽管如此,主体和概念是相同的。

  1. JGoodies: Understanding Binding - Part 1 JGoodies:理解装订 - 第1部分
  2. JGoodies: Understanding Binding - Part 2 JGoodies:理解装订 - 第2部分
  3. JGoodies: Understanding Binding - Part 3 JGoodies:理解装订 - 第3部分
  4. JGoodies: Understanding Binding - Part 4 JGoodies:理解装订 - 第4部分
  5. Introduction to JGoodies Binding JGoodies Binding简介

JGoodies removed the files linked below. JGoodies删除了下面链接的文件。 However, I believe the tutorials are still available in the Java 1.4 libraries in the new archives . 但是,我相信这些教程仍然可以在新档案的Java 1.4库中使用。

Also, Karsten Lentzsch is building a new Showcase app that will have all the tutorial sources. 此外,Karsten Lentzsch正在构建一个新的Showcase应用程序,它将包含所有教程资源。 It may be available in July. 它可能在七月份上市。


Old post: 老帖子:

Reading the tutorial code is probably the best way to learn JGoodies, even though it's outdated. 阅读教程代码可能是学习JGoodies的最佳方式,即使它已经过时了。 You can still get them from the archives : 您仍然可以从档案中获取它们:

http://www.jgoodies.com/download/libraries/binding/binding-1_5_0.zip http://www.jgoodies.com/download/libraries/binding/binding-1_5_0.zip

http://www.jgoodies.com/download/libraries/validation/validation-1_4_0.zip http://www.jgoodies.com/download/libraries/validation/validation-1_4_0.zip

http://www.jgoodies.com/download/libraries/forms/forms-1_3_0.zip http://www.jgoodies.com/download/libraries/forms/forms-1_3_0.zip

I've also been looking for the tutorial code. 我一直在寻找教程代码。

It's available in the Showcase app (latest version at time of writing this is 1.6.6). 它可以在Showcase应用程序中找到(最新版本在撰写时为1.6.6)。

http://www.jgoodies.com/downloads/demos/ http://www.jgoodies.com/downloads/demos/

Open the Showcase app in Java WebStart. 在Java WebStart中打开Showcase应用程序。 You may need to add a security exception for http://www.jgoodies.com in your Java settings to allow the app to run. 您可能需要在Java设置中为http://www.jgoodies.com添加安全例外以允许该应用程序运行。

Once you've opened the demo, you can access the source code by clicking on the "Show details" button on the top right corner of the window. 打开演示后,您可以通过单击窗口右上角的“显示详细信息”按钮来访问源代码。

I hope this helps. 我希望这有帮助。 JGoodies Showcase App 1.6.6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM