This e-mail will mostly interest Paul, but I am sending it to the list
in case it might interest a couple of the other programmers.

I had a problem with my integration of the InfoNode docking windows
into the OpenJUMP core. The TabWindow I placed at the bottom of the
GUI for supplemental info would disappear if the user closed all of
the tabs it contained, and there wasn't an easy way to get it back. I
fixed this by extending TabWindow in the AlwaysOneViewTabWindow Class.
This new listens to the events of the View objects it contains and
doesn't allow the last and only view to be closed. This allows the
TabWindow at the bottom of the GUI to remain in place no matter how
the user closes and opens the views it contains.

It only took me about an hour to write the new class, which is a
testament to how well written the InfoNode Docking Window API is.

The source code for the AlwaysOneViewTabWindow is in the Subversion
repository at the SurveyOS SourceForge project if anyone is interested
in using it:

http://surveyos.svn.sourceforge.net/viewvc/surveyos/java/docking_windows/src/net/surveyos/sourceforge/dockingwindows/util/

The Sunburned Surveyor

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to