Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31908
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Martin Gregorie <martin@address-in-sig.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Vertical Text - part 3 |
| Date | Wed, 1 Jul 2015 16:54:46 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 35 |
| Message-ID | <mn160m$anb$1@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Wed, 1 Jul 2015 16:54:46 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="10987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HXeO872kt0SDvUcYWqBygNRpYXyQWJaQ=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:GyTrOSmWJSpinK1Ng9eTCV0C96c= |
| Xref | csiph.com comp.lang.java.programmer:31908 |
Show key headers only | View raw
First off, apologies for starting a new thread. I fat fingered 'Ignore thread' in Pan when I was intending to toggle a marker on one of the posts in the thread (hay fever is bad today -at least that's my excuse and I'm sticking to it) Fortunately I managed to find that Jeff's and Knute's last posts were still in Pan's cache so I was able to recover their example source and try it out. Jeff's last trick (using an AffineTransform to rotate the Font so it prints vertically does everything I asked for, so I'll go with that: many thanks, Jeff. In fact, because its a modified Font rather than an image, it should do one other thing I forgot to mention as well. To explain: this is a rostering application with two rows of JLabels across the top and down the left side of a matrix. The JLabels along the top list people to be rostered while those down the side of the matrix list dates. To roster somebody (or cancel a roster assignment) you click a name JLabel and a date JLabel in either order. To make this a bit easier in case you get interrupted, the JLabels act like illuminated push on/push off switches so that when either type of label is clicked its background changes colour to show that it is selected. This is cleared either by clicking the other type of label to complete the rostering action or by a second click on the selected one to cancel its selection. Needless to say, rostering a person or cancelling an assignment affects the body of the matrix, which is simply a display area showing the current state of play. Anyway, many thanks to all of you who were kind enough to post code. It was interesting to see how this sort of task can be tackled and and I've learnt quite a bit about uses of the Affine transform. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-01 16:54 +0000
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-01 18:25 -0400
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-01 23:09 +0000
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-01 19:44 -0400
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 00:19 +0000
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-04 18:18 +0000
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 09:09 -0400
Re: Vertical Text - part 3 e.d.programmer@gmail.com - 2015-07-02 07:24 -0700
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 10:36 -0400
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 18:38 +0000
Re: Vertical Text - part 3 e.d.programmer@gmail.com - 2015-07-02 12:54 -0700
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 21:55 +0000
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-02 18:46 -0400
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-03 10:38 +0000
Re: Vertical Text - part 3 Eternal Hope <laughingspam99@gmail.com> - 2015-07-03 16:44 +0100
Re: Vertical Text - part 3 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-07-02 16:21 -0700
Re: Vertical Text - part 3 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-07-02 16:43 -0700
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 18:01 +0000
Re: Vertical Text - part 3 Martin Gregorie <martin@address-in-sig.invalid> - 2015-07-02 17:44 +0000
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-03 08:20 -0400
Re: Vertical Text - part 3 Jeff Higgins <jeff@invalid.invalid> - 2015-07-03 10:01 -0400
csiph-web