Implementing JTreeTable in swing - java

I would like to implement a JTreeTable. I saw the example in the official java website. I am a beginner to java and i am not able to understand that example. I have the tree node and child names as a string. How do i implement it?

there are (only products I tried)
free
SwingX
NetBeans Outline, illustrated here
excellent workaround by aephyr
simple code example here
non-free
JIDE Grids
maybe more information you can find here

Related

Where can I find source code implementations for most javaFX 2 features?

I am currently developing a java application which GUI is based on javaFX. I see that there are a lot of very interesting features that javaFX libraries offer, yet I feel like I'm only scratching the surface in my project.
I have looked up a lot of javaFX classes' javadocs but I would like to know if there's a site that shows basic implementations of each feature, both the source code and the output.
Found a great oracle website that solves my problem: http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/index.html#HIGHLIGHTS/H%20T%20M%20L%20Editor
Basically it is a list of samples using most javaFX features, each having both the source code of the implementation and its output.

How to add maps in java GUI (like GMap.net for c#)?

C# has a a nice library/api to use for creating/using maps with winforms found at Gmap.net Does java have any libraries like this?
The closest thing I've found was worldwind but this doesn't look half as good as what GMap.net does in winforms
These libraries might help
Generic Swing component: https://github.com/msteiger/jxmapviewer2
Integration with JavaFX: http://fxexperience.com/2011/05/maps-in-javafx-2-0/

Java framework for textual user interface (TUI)

I need to create TUI for my application. Is there any framework to help me with it? I need something like Ncurses, but for Java. I have found some (Jcurses, Charva). Anyone have experience with them? Please, advise me, which is better (better is mean easier in my case). Or maybe something else?
You could use Lanterna - Java library for creating text-based GUIs.
If you are familiar with Java's GUI frameworks like Swing or AWT, the UI-component based approach (window, panel, content-pane, add-component) might be easy to pick up.
It is used by CHARVA in their GitHub repo charva-lanterna.
See also:
Software Recommendations Stack Exchange: user interface - A Library for text based UI with menu facility in JAVA

OpenFaces tutorials

Are there any places online where you can find tutorials for the openfaces components? I have been trying to implement a dynamic tree table for a few days and I am having trouble, but the documentation isn't helpful at all so it makes it tough to overcome this obstacle.
Thanks,
Quinton
Besides the documentation and FAQ, you may find these articles useful:
An Introduction to OpenFaces, Part 1 -- General overview;
An Introduction to OpenFaces, Part 2 -- DataTable and TreeTable components overview.
You can also download the source code for the OpenFaces demo application to study the working examples.
If the documentation is not clear enough, you can search for a solution or ask for a clarification on the discussion forum.

Java Preference Manager

I started implementing a solution for myself to manage user/application preferences, but then thought to myself there has to be a solution out there already. I started looking and found the JFace API. I got excited, but then noticed it is designed to work with SWT. My application is written using Swing. I tried looking for a similar solution for Swing, but have not had any luck.
I'm looking for the equivalent of JFace for Swing (if that exists).
Is there a solution out there for managing preferences like JFace in Swing?
I looked for a while, but was unable to find a preference manager similar to the JFace implementation. So, I ended up creating my own library that originally partially implemented interfaces in the JFace preferences library, but since has deviated.
The library is called jpreferences and is hosted on Github.
EDIT:
Go figure, when I tried creating a SourceForge project named jpreferences there was a project already by that name. If only I had thought to search for jpreferences instead of preference manager. Oh well, now anyone looking for what I was looking for has more choices.
You would find here the two main "PreferenceDialog" implementation for big open-source projects.
One of them is much more complete... and is the org.eclipse.jface.preference.PreferenceDialog class, in SWT.
I don't know of a similar implementation in Swing, but should I develop one, I would consider using XWT as a more declarative approach to build it, since XWT isn't linked to eclipse (e4), and you can use it with Swing.

Categories