org.tn5250j.Gui5250Frame: selectedIndex?
Marcin Cieslak <[email protected]> Sat, 14 Nov 2009 02:07:39 +0000 (UTC)
| Newsgroups | gmane.comp.java.tn5250j.devel |
|---|---|
| Organization | http://saper.info |
| Message-ID | <[email protected]> |
Hello, great to see tn5250j taking up again :) Pity we didn't switch CVS
to something more modern (like Mercurial), but nevertheless it took me
a while to figure out that project is not dead! Would that be possible to
change links on the http://tn5250j.sf.net/ page to point to SVN instead of CVS?
I have used the old CVS code to fix an annoying tab-closing bug (only to
see it got fixed in SVN :-).
But there is something I don't like in the org.tn5250j.Gui5250Frame class
- "selectedIndex" is the out-of-sync copy of the old tab array index,
but when the array gets reorder or tab is closed this number
is completely bogus (now we just check if it fits the array...)
I think it should be actually possible to simplify GUI5250Frame and
tab pane relations a lot; we could possibly get rid of the
"selectedIndex", "count" and "sequence" variables etc.
Once I will dig more into event structure in the code I might
propose a patch.
Greeting from the happy 9402-600 owner and thanks for the excellent
software!
--
<< Marcin Cieslak // [email protected] >>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july