wrote:
> I need to write a Java program which is your standard Add/Change/Delete
> GUI. Can anyone recommend a book or website (besides the Sun tutorial)
> that can help me get a start. Should I approach it top down or bottom
> up? I have a pretty good idea what I want the structure of it to look
> like, but coming from a procedural language background, I'm hoping some
> of the folks in this group have written similar code and can point me
> to a good place to start.
>
The article ""Using Java DB in Desktop Applications"
(
http://java.sun.com/developer/techni...esktop/javadb/)
has Add/Change/Delete buttons in its GUI. I can't say that the GUI
follows best practices for visual design, but the application has
standard event handlers for those buttons, and it demonstrates how to
link a GUI's components with their handlers. Might be useful.
The only significant problem with this particular GUI is that it
performs DB queries on the Swing event dispatch thread. Typically that
is a problem since GUIs can become sluggish or unresponsive. In this
demo, the db is local and extremely small, so no perceived problems
exist. You might consider Java SE 6's SwingWorker class to offload
long-running tasks from the GUI...the subject of my next article on
java.sun.com coming in mid January.
Regards,
John O'Conner