New Roads, LA -- September 26, 2003 -- SwingSet is an open source Java
toolkit that allows the standard Java Swing components to be made
database-aware. While there are several commercially available solutions
that perform similar tasks, SwingSet is the first known open source
solution.
SwingSet utilizes SSTextDocument, an extension of the standard PlainDocument
class to link the JTextField or JTextArea to a database column within a
RowSet. In addition, custom classes are provided to replace the standard
JComboBox and JCheckBox. The SSComboBox provides an Access-like combobox
that can be used to display user-specified text choices based on an
underlying numeric column (e.g. allows my_table!choice_code, an integer
column with valid values of 0, 1, & 2, to be displayed as "yes," "no," &
"maybe"). The SSDBComboBox operates in a similar fashion, but is used where
both values and their corresponding text choices are stored in a table (e.g.
my_table!part_id is stored as a foreign key, but my_table!part_name is
diplayed). By writing a custom event listener, SSDBComboBox may also be
used to navigate a RowSet based on a combobox selection. The SSCheckBox
allows a checkbox to be linked to an underlying numeric database column.
Finally, a SSDataNavigator class is provided to allow traversal, insertion,
deletion, commit, and rollback of a RowSet. Changes to the current record
are auto-committed when a navigation takes place (also similar to Access).
More information on SwingSet is available from:
http://sourceforge.net/projects/swingset
Dave Glasser - 27 Sep 2003 23:23 GMT
"Brian E. Pangburn" <swingset@nqadmin.com> wrote on Fri, 26 Sep 2003
16:06:49 -0500 in comp.lang.java.gui:
>New Roads, LA -- September 26, 2003 -- SwingSet is an open source Java
>toolkit that allows the standard Java Swing components to be made
>database-aware. While there are several commercially available solutions
>that perform similar tasks, SwingSet is the first known open source
>solution.
Just curious, but when you named your toolkit, were you aware of Sun's
well-known SwingSet demo app, which is basically a do-nothing app that
demonstrates all of the major features of Swing? The webstart version
is linked from here:
http://java.sun.com/products/javawebstart/demos.html

Signature
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.
http://qform.sourceforge.net
Brian E. Pangburn - 28 Sep 2003 20:04 GMT
> Just curious, but when you named your toolkit, were you aware of Sun's
> well-known SwingSet demo app, which is basically a do-nothing app that
> demonstrates all of the major features of Swing? The webstart version
> is linked from here:
No, I wasn't. I may well have looked at that demo at some point in the
past, but didn't remember it when naming the DB toolkit.
We had been calling it swingUtils and wanted a catchier name. I jokingly
suggested "Swing Stuff" and someone at lunch said "How about 'Swing Set'."
It hadn't been taken on SourceForge so we went with it. Hopefully there is
room for both without stepping on toes. If not, we can always find another
name.
Thanks for the heads up.
-Brian
Dave Glasser - 28 Sep 2003 22:21 GMT
"Brian E. Pangburn" <swingset@nqadmin.com> wrote on Sun, 28 Sep 2003
14:04:11 -0500 in comp.lang.java.gui:
>> Just curious, but when you named your toolkit, were you aware of Sun's
>> well-known SwingSet demo app, which is basically a do-nothing app that
[quoted text clipped - 9 lines]
>room for both without stepping on toes. If not, we can always find another
>name.
The two main possible downsides I see to sticking with it are:
1. If you're trying to build a brand identity with the name
"SwingSet", the existance of Sun's "SwingSet" will only serve to
dilute it, because many Java developers, I'm sure, already associate
that name with Sun's app.
2. Sun has, in the past, been known to engage in ill-considered,
heavy-handed legal threats against smallfry whom they thought might be
misusing their trademarks. Their attempt to get www.javaranch.com to
change their name is a good example. I don't see "TM" anywhere on
their current version of the SwingSet app, but you still might someday
get a cease-and-desist letter from their lawyers if your SwingSet
starts to get well-known.
Brian E. Pangburn - 28 Sep 2003 23:20 GMT
> The two main possible downsides I see to sticking with it are:
>
[quoted text clipped - 10 lines]
> get a cease-and-desist letter from their lawyers if your SwingSet
> starts to get well-known.
Both good points. This is just a small effort to give some general-purpose
code back to the community so I'm not too concerned about brand identity.
At this point, its probably not worth the effort to request a different
project on SourceForge. If we get a cease-and-desist, we'll just rename it
SwingSuit :) Anyway, don't they say any publicity is good publicity?
By the way, I was reviewing QueryForm. Nice stuff.
-Brian
Dave Glasser - 29 Sep 2003 03:27 GMT
"Brian E. Pangburn" <swingset@nqadmin.com> wrote on Sun, 28 Sep 2003
17:20:32 -0500 in comp.lang.java.gui:
>> The two main possible downsides I see to sticking with it are:
>>
[quoted text clipped - 16 lines]
>project on SourceForge. If we get a cease-and-desist, we'll just rename it
>SwingSuit :) Anyway, don't they say any publicity is good publicity?
Indeed they do. If Sun were to send you a C&D letter, you could post
it on the web, and then probably get it mentioned on Slashdot.
>By the way, I was reviewing QueryForm. Nice stuff.
Thanks!