What happened to the JGoodies binding tutorial code? - java

I want to learn how to use JGoodies binding (since beans binding seems dead in the water, and so does its fork). the JGoosides binding docs refer to the tutorial source code, but this code is not available in the latest (2.5) distribution.
After looking though previous distribution versions is seems the tutorial code was dropped between 2.0.6 and 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. However, the old tutorial code (v2.06) is an extremely good starting point, and will teach you the fundamentals. (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. (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. Again though, the principals and concepts are the same.
JGoodies: Understanding Binding - Part 1
JGoodies: Understanding Binding - Part 2
JGoodies: Understanding Binding - Part 3
JGoodies: Understanding Binding - Part 4
Introduction to JGoodies Binding

JGoodies removed the files linked below. However, I believe the tutorials are still available in the Java 1.4 libraries in the new archives.
Also, Karsten Lentzsch is building a new Showcase app that will have all the tutorial sources. 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. 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/validation/validation-1_4_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).
http://www.jgoodies.com/downloads/demos/
Open the Showcase app in Java WebStart. You may need to add a security exception for http://www.jgoodies.com in your Java settings to allow the app to run.
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.

Related

Where is the documentation for Matrix Toolkits Java and Netlib-Java?

I set out to install some fast matrix and BLAS libraries for Java, and settled on MTJ (backed by netlib-java) based on the results of Java Matrix Benchmark. I believe I have everything installed via Maven, but I can't find any credible documentaiton for these libraries.
The logical starting point would be the github pages:
MTJ
netlib
...But I can't find a link to any tutorials or javadoc beyond the incredibly terse MTJ wiki section on Github. Netlib's source appears to be in fortran (with F2J as a compilation step) so I can't crawl directly though source in lieu of javadoc, either.
To make things even more baffling, there appears to be some sort of Javadoc for MTJ out there hosted by a German university for some reason, that references packages (like nni.BLAS) that don't appear to be part of the MTJ library that Maven made for me. There's another even sketchier Javadoc hosted somewhere inside the University of Tennessee that, while having no apparent connection to the netlib-java project, does somehow have a Javadoc page that seems to explain the three extra integer arguments that netlib-java's DGEMV implementation uses (offsets of some sort?). If I look at the fortran documentation inside the netlib-java distribution for DGEMV, it has the eleven standard arguments that I would expect from DGEMV.
So here are my questions:
1.) Is there official documentation for MTJ/netlib? If so, where?
2.) If there is no official documentation, are there any other resources out there that would allow someone to learn to use this library? If this project isn't used exclusively by the developers, then people are learning to use it somehow. How?
3.) If a Java version of netlib's 11-argument DGEMV isn't installed as part of MTJ via Maven, then what is this 14-argument thing on my hard drive?
Thanks.
If you download MTJ via Maven, you can also download the Javadoc and source jars at that time. (IntelliJ IDEA will do this for you automagically.) The jar is called mtj-1.0.2-javadoc.jar and contains comprehensive Javadoc. Once upon a time, this seemed to be available on a website, but that site seems to be gone.
The closest I've seen so far:
http://en.wikipedia.org/wiki/Matrix_Toolkit_Java
Here is link to jar archive with complete javadoc of latest stable MTJ. Just unzip it with tool such 7zip or similar. I agree that lack of guides related to this library might be dauting.
I have created a site for mtj 1.0.3-snapshot on divshot.io:
http://mtj103.divshot.io/
Hope this helps.

JavaScript on Netbeans Scarce Code Support Features

I have difficulties coding in JavaScript with Netbeans. I can't see beforehand:
my mistypes,
relations between classes, functions and variables (dependency, parents-children etc.),
javadocs references (both original and imported for libraries).
THE PROBLEM is in:
heavy debugging because of primitive mistype and the use of irrelative substances;
time consuming browsing to find help for the context.
I TRIED:
Netbeans 7.4 (some basic Ctrl+Space lookup is supported, but very limited and usually useless);
Eclipse 3.8 (no context support);
These IDEs provide adjustable autoformatting and text mark-up (braces, clever tabs, text colors etc.) This is all very helpful, but insufficient. After having to migrate from Java to JavaScript for job routines, I now understand how much work had I automized and saved coding Java. I just feel I'm missing Ctrl+Space after a dot for Javadoc and Ctrl+LeftClick to navigate to declaration. It results in more time creating similar things in code.
THE QUESTION IS:
How to get JavaScript language docs for Netbeans?
How to make Netbeans show relations between classes, variables and functions so that I don't see what can't be done from this context? For JavaScipt like it does for Java?
Here are Netbeans JavaScript snapshots with everything that's needed. Where is that all? I don't see it in my IDE:
I can't add comments because i haven't reputation enough...
I am a Java developer since Java version 1.1, and Netbeans's truly fan since version 5.5 (Eclipse? What's that thing?).
I am currently developing Javascript code in Netbeans 7.4. It offers code completion exactly as it does with Java (plus javadoc-style documentation popup, Ctrl-Space behavior, colouring code...), almost the same pros and cons as developing java, php or another language...
And yes, it saves a lot of time of searching for object's methods and properties, misspelling...
---- Text added since your last editing some minutes ago....
OK, i know i'm not impartial, forgive me... Take a look to this, it may be helpful:
Netbeans 7 HTML5 webapp javascript debugging
Maybe I don't know really what are you looking for, but in my opinion it is a good stuff. If you can debug an HTML5 webapp to such deep level...enough for me.
About the inline documentation in a javadoc-style, my NB shows a pretty nice one (bundled, i didn't plugged anything...). Of course, it could be more complete or functional... Take a look to this image:
Next I'll try webstorm... Good luck!
---- More Text added .... jQuery documented API integration...
Ok, let's see how NB manages itself to show you a wonderful javadoc-style documentation popup of jQuery API...
It looks so good to me... I love it :)
I only added the developer version of jQuery (the one commented and uncompressed) to the src folder of my opened Java project... nothing more... I think this is some kind of magic... Maybe you can add your own commented .js libraries in the same way. Just explore the jQuery .js to learn how to comment your code.
Just one more resource for you:
Adding jQuery to your NB project
I think, that you cannot expect the same level of tool support for Java (strongly typed, object oriented) and JavaScript (weakly typed, functional).
Compiler for strongly typed languages knows, what is allowed in given context, but in JavaScript is the situation drastically different. Everything is dynamic and you cannot tell what is mistype.
Anyway I think, that latest NetBeans 7.4 has really great support for JavaScript including code completion.
You can see here for such IDE. Also you can take PhpStorm, Idea, WebStorm.
I think the best IDE for JavaScript would be the JetBrains WebStorm.
The company has also made IntelliJ Idea IDE for Java, which is in my humble opinion the best one available.
You can download free version here: http://www.jetbrains.com/webstorm/
I'm using it a lot myself and I can really recommend it.
Steps below helped me to partly resolve the problem:
Changed project type from HTML5 to PHP to exclude libraries folders from code analysis as described here;
Configured at Tools - Options - Editor - Hints - Javascript to "Suggest for current line" instead of "Warning".
tune up and use correct tags for javadocs as described here;
Resolved proxy connection problems to make IDE see the Internet: Tools - Options - General;
updated Netbeans to 7.4 from 7.4RC1;
Now you have:
- fast code completion popup window load,
- docs texts, including pop-up code completion docs for your own comments,
- can navigate to declarations from other files Ctrl+LeftClick,
- have suggestions on errors,
- type recognition failing if you mistype function or variable name to smth impossible.

What happened to Java Media Components?

After researching my options with regards to video support in Java, I stumbled across Java Media Components mentioned a few times, along with this article that seems to hint they hoped to include it in Java 7.
This originally looked great, so I set about finding it in Java 7 with the hope of including video support pretty easily. Needless to say I couldn't find it, and after Googling around all I can really find are half baked references to crow-barring part of the thing out of JavaFX.
So does anyone know what happened to it? Was it dropped along with lots of other features for Java 7 and pushed back to Java 8? Or dropped entirely? Or is it now just been integrated into JavaFX? The latter would make most sense to me, but the latest JavaFX release just claims to support FLV (at least at the moment) whereas the references I can find to JMC seem to point to it supporting a whole host of formats.
Long question short, does anyone know what's going on?
Its still there, but pretty much ignored. Much of the UI aspects in Java have moved over to JavaFX, not sure how it might be with Video though.
In reference to your question, here's a link to the current page on Oracles site. I believe it was always a separate download and still is.
hth.

GWT 2.1 Editors framework

I'm looking for some documentation or examples on how to use the GWT 2.1 Editor framework. Google's documentation is uh, somewhat lacking.
From the limited documentation available, I've been able to glean that editors will (in theory) allow you to more easily bind GUI elements to data models. This will alleviate the very common task of copying data into a TextArea/ListBox/CheckBox, and then replicating the user's changes back to the underlying model (and ultimately the DB).
If it does indeed deliver on this, it will be very welcome. For now, I'm left scratching my head as to how to implement any of it. Any pointers to documentation or examples would be highly appreciated.
A little while ago, when I was in the same situation (not only did the snippets from the Google documentation not work, but they also left out the most basic glue code to make them work), I attempted to write the most basic Editors example project for myself. I learned the editor basics from the DynaTableRf example (which is way too complex to get started with Editors IMO), and put something together.
Let me warn you: It's simple, but it's raw and unpolished, it's just a proof of concept. It's just a zip of my Eclipse project: http://www.mediafire.com/file/nwsohz7ov3cx173/playGwtEditors-02.zip (note: This is the old version for GWT 2.1)
Update
I just updated the project to use GWT 2.3. The old GWT 2.1 bug which I had mentioned in my project is gone now. Here's the new version: http://www.mediafire.com/file/u1yffwuxi441dip/playGwtEditors-03.zip
I've been in the same place for a while, trying to figure out how Editors hook up with the RequestFactory stuff. The DynaTableRF sample in the GWT 2.1.1 release is what finally started making things come together - it's complex, but I think you need a complex app to start seeing the benefits. The code in each step is wonderfully simple - but there are a lot of steps!
Here is another example using Editor Framework with Request Factory hope it helps too.
https://github.com/mgenov/injecting-request-factory

Birt Chart Engine Documentation

I am looking for a complete, precise and accurate documentation about Birt Chart Engine but I cant find anything, all documentations I have encountered are more Birt Designer related or inaccurate or even inexistante. I hope someone can help me...
(I precise that I particularly look for a documentation about chart interactivity and scripting while being rendered as SWT content and made fully with Java code).
First, BIRT cannot render interactively like you've seen in demos on Actuate's website -- that is a web-based program that they sell -- it may have misled you. It can run from a .WAR on a server and feed some AJAX code or whatever.
Second, there is no good, up-to-date, free documentation for BIRT, as far as I can find in three weeks of searching. The API docs are quite lacking with respect to integrating BIRT with your own application or extending its capabilities. I have found the "Integrating and Extending BIRT" book by Jason Weathersby et al to be marginally helpful -- it is available for "rent" online through Safari Books Online.
Mostly you'll need to do lots of Google searches to find what you're looking for. The code examples are quite necessary to follow, since there are a lot of nit-picky details that will hurt you.
I believe the API docs can be found here, which are precise and accurate regarding the various classes and how they can be used.
The book Integrating And Extending Birt has a nice chapter on how to progamm using the BIRT Charting API.

Categories

Resources