I need a table that displays properties and allows their values to be changed. Similar to the Netbeans properties windows for the GUI editor. Does anyone know of any existing classes or libraries. I'd hate to reinvent the wheel on this one.
Edit:
Something like this which allows separators into different groups, JCombos, and JButtons to all be used.
Thanks
I would recommend JTable, and a gridbag layout manager.
The table in NetBeans is PropertySheetView (or similar) and it is part of the NetBeans Platform (PropertySheetView JavaDoc). This class should also be usable in a standalone Swing application by including the necessary NetBeans modules as jar files in the classpath (Found this with a bit of googling).
JTable can be used to display a Grid with values and allow the user to edit the value from columns you enable to it.
You could leverage the JTable class; which should provide the base you need.
JIDE Soft has a number of components, some of them are OpenSource take a look at there to see if you fine the one you need.
For future reference
I'm successfully using l2prof-common's PropertySheetPanel. The documentation is not that great and the API is not that clean, but it works, and the view is nice
The official site is
http://www.l2fprod.com/common/
But the download link is broken; I compiled the propertysheet JAR myself but you can get the whole library from http://www.astrogrid.org/maven/l2fprod/jars/
The library doubles as a demo if you execute the jar and there's also the code in it
I found this other question useful Have com.l2fprod.common.propertysheet.PropertySheetPanel To Display Composited Class
I would recommend taking a look at the SwingX JXTreeTable. I have used it in an application to create a very similar view.
An example screenshot I found on the web (here) to illustrate this
Related
I have a task where we need to generate UML(or similar) from XML and will be able to edit text, property type and drag dependency row. But I can't find any Java lib or component wich will allow me to do such.
For example PlantText is a good lib but it does not allow to make edit.
If someone known such lib/compoment please share.
Thanks
EDIT:
Sorry, maybe I wasn't wrote clear. Actually, I need library which I can implement into my project, and after I will be able to generate UML from my project, then edit it and save into XML.
draw.io is very good site where you can create (not only) UML's and save them to XML file so in future you can edit it. The drawback is it is not automatic and must be drawn from scratch.
I must admit the fact Forms layout does save loads of time, wrt other Swing layouts. I did try out other examples from http://www.java2s.com/Open-Source/Java-Document/Swing-Library/jgoodies-forms/Catalogjgoodies-forms.htm and worked fine. However, i was more interested in the forms-demo code from the actual developer, is it available ? Couldn't find them, other than the executable jar file.
Did you see the com.jgoodies.forms.tutorial.building link in that page? Seems to link to a number of source code listings.
But see also the Java version of the Forms Demo at JGoodies|Downloads|Applications.
The site seems to have been reorganized since my last visit, but you can probably find those things from http://www.jgoodies.com/downloads/
Is there a free decent java GUI descriptor language (probably XML based), which has a Glade-like (WYSIWYG) GUI builder?
Netbeans IDE. Whenever you use its GUI editor, it stores the GUI in XML, in a *.form file.
For example if your create a class com.some.package.MyForm which extends some Swing component or window, look for this file $SRCDIR/com/some/package/MyForm.java and $SRCDIR/com/some/package/MyForm.form.
The former is the actual Java class that gets compiled. The latter is a file that Netbeans uses to store the GUI in XML format. This is what netbeans uses to generate the auto-gen'd code that goes in the code fold to initiliase the GUI.
HTH
Edit:
I do acknowledge that the Netbeans IDE probably isn't the best one out there, and I personally use it only because it's already built into the IDE that I use anyway. For me it gets the job done, and I may sometimes have to manually apply tweaks in the code to get what I want. It's a no-frills, XML-based, Java GUI, WYSIWYG editor.
Sorry this is prob not the answer you were looking for but have you looked into using flex? The markup in Flex is all XML based and the builder is very good.
Blaze DS can then be used to communicate between flex and Java.
Dont know any pure xml layout frameworks off the top of my head. Whats your reason for wanting an XML based UI?
Simple googling yields me many like http://swingml.sourceforge.net/, http://jfcml.sourceforge.net/,http://cookxml.yuanheng.org/cookswing/etc.
You can try JavaFX, it is too a cool DSL way of representing the Swing components and it provides more of its own for API for animation and graphics usage.
Netbeans and eclipse have plugins/extensions to do DnD development for it.
I am writing this application in Java, where I have a JTree on the left of the JFrame, and the item selected in the JTree determines what appears on the right. This is similar to Edit --> Preferences in Thunderbird, and several other applications' preferences.
Anyhow the main difference is that in my app the stuff on the right is dynamic, and needs to be generated at run time using input from a file.
What I am after is various ways in which this can be accomplished, code snippets or existing frameworks / libraries if they exist.
The input file needs to be something higher level than the sort of XML generated during Serialization. No output capability is required.
Thanks
The JEasy Framework looks to do exactly what you're asking for.
But here's a whole list of similar projects: http://java-source.net/open-source/xml-user-interface-toolkits
There's a short description for each one and a link to their project page. You'll want to look at a handful of the ones that sound good to you, and then try one or two for yourself.
As of now i think one of the most actively used is Swixml. better support compared to JEasy.
have been using it for some while now, and is very easy to learn too
Perhaps it - http://www.soyatec.com/eface/ - XAML/WPF for Java.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What tools/websites do you use to read JavaDocs?
I currently use Firefox with 20+ tabs open when working on a J2EE project to have all the documentation available which is not very usable, is eating too much memory and is not searchable.
What I would expect from such a tool/website:
Aggregate JavaDocs from different locations
Direct access to types like Ctrl+T in Eclipse or similar
Fulltext search
Cross referencing between all the Java libraries I've chosen
For a tool: offline support
Speed
not mandatory:
possibility to annotate things
support for different versions of a library (+ diffing ?)
IDE integration
Edit:
Thanks for your answers. I knew most of the sites but gave them another try. Here is my judgement:
built-in Eclipse/IDE features
tightly integrated
offline/online support
javadoconline.com (no longer maintained)
works
clean looks
finds matches in more than one version of the api and allows easy switching
simple but working
fast
jdocs (offline)
seems very sophisticated
sometimes slow
some recent versions of libraries seem to be missing (Seam 2.0.0, Hibernate Validators) but it looks like you can add them yourself
IDE integration (not tested)
wiki style comments to each item
docjar.com
works
fast
cluttered UI
javadoc_isearch
greasemonkey script for firefox which makes navigating javadocs easier
works smooth and perfectly
JavaDoc jar can be unzipped directly. In theory any released javadocs can be downloaded and viewed offline.
download directly from maven repository. For example: http://central.maven.org/maven2/com/googlecode/objectify/objectify/5.0.3/objectify-5.0.3-javadoc.jar
Now you get objectify-5.0.3-javadoc.jar, rename the file to objectify-5.0.3-javadoc.zip
use your favourite unzip tool to extract it, now you have a folder objectify-5.0.3-javadoc
double click index.html will open the index page on your default browser.
If you use Eclipse, it offers support for Javadocs. For example, hovering your mouse over a method call will display a tooltip showing you the Javadoc for that method. Documentation for the core Java classes are supported out of the box. However, if your project uses any additional libraries (JAR files), some configuration is required in order to plug their Javadocs into Eclipse.
Go to the "Java Build Path" section of your project properties.
Go to the "Libraries" tab and click the "plus" icon next to the JAR file.
Click "Javadoc location", then the "Edit..." button.
This will let you specify where the Javadocs for that JAR are located. It will even let you specify a website URL, so you don't have to download the Javadocs yourself!
You can find Stanford University's JavaDoc here.
I wrote my own tool for this. Acording to my colleagues it is best they seen.
It indexes by lucene once, and run you small server on background, so yo browse javadocs (pydocs, perldocs..) like in browser. It allows also separate libraries per language so searchses like "biginteger" or simialr dont go wrong.
https://github.com/judovana/JavadocOfflineSearch/releases
I use http://www.teria.com/~koseki/tools/gm/javadoc_isearch/ for FF. Lets me easily browse other libraries as well.
Eclipse integrates well with Javadoc and has an HTML-like viewer for it. You can attach source and javadoc to binaries that will show up when you select a class.
Something like this may be useful?
http://www.docjar.com/
Personally, I've never had a problem with the built-in javadoc browsing tools offered by my IDE.
Currently, I use IntelliJ Idea -- Ctl-Q brings up the javadoc for the method under the cursor, with the hyperlinks to other parts of the documentation functional.
I would imagine NetBeans and Eclipse offer similar functionality.
Hm... How about:
http://edu.netbeans.org/quicktour/javadoc.html - NetBeans supports the Javadoc standard for Java documentation - both viewing it and generating it.
http://globaldocs.zeevbelkin.com/ - This application allows to conveniently browse, over the Internet and local filesystem, multiple javadoc sets, using a single packages/classes hierarchy tree and a searchable index. The viewer supports local and remote docsets (the local docsets, packed to JAR/ZIP-files also are supported).
I prefer NetBeans as it get JavaDoc from Maven ~/.m2 directory automatically...
This plug in for Firefox and Chrome is useful for quickly finding package and class names, though it's not a full text search: https://code.google.com/p/javadoc-search-frame/
Eclipse is a best way to see the javadocs. Hovering the mouse on method or any declaration you will get automatically generated javadocs by eclipse.
Doxygen (http://www.doxygen.nl/) might fit the bill.
EDIT: I may have misread your question, doxygen is a tool to generate documentation and models based off your code and javadoc.