Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Vertical Text - part 3 Date: Thu, 2 Jul 2015 18:38:15 +0000 (UTC) Organization: A noiseless patient Spider Lines: 34 Message-ID: References: <1980b894-6ca3-48f5-b70a-1628c56185e1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 2 Jul 2015 18:38:15 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="25119"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yJzWngjKLU/w6vaTPRCllslUdsdPqsKI=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:d2FgL561SJdtTYl/InXHrDlpljg= Xref: csiph.com comp.lang.java.programmer:31925 On Thu, 02 Jul 2015 10:36:19 -0400, Jeff Higgins wrote: > Anyway, after rereading Martin's post I see he doesn't have a JTable so > the pointer is pointless. > Yep: using a JTable was the first idea I thought of, but the screen layout doesn't match the JTable convention of a single header line followed by a set of identical data rows. Just so you know what I've been trying to describe, there's a screen shot of the rostering tool displaying some test data (only three instructors plus the special [NA] 'name') and four days) at: http://www.gregorie.org/temp/Screenshot%20-%20020715.jpg I've sliced out some blank screen area between the matrix and the error message and also a chunk on the right of the matrix - that's to make image a bit easier to read. This version is using Knute's HTML trick to display the list of instructor names above the matrix: you can see how tall even quite a small name becomes. The error message and associated red matrix cell describes why Barney RUBBLE can't be rostered on the 12th of April: the blue and green cells show successful duty allocations and the black one is an unrosterable day (also shown by all the duty slots being marked [NA]). In real life this screen would be showing 25 instructors and 57 rosterable days, i.e. the matrix would be 26 x 57 rather than 4 x 4 you're seeing. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |