Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Text orientation Date: Mon, 25 Aug 2014 04:02:42 -0400 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 25 Aug 2014 08:03:14 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="b896cb427f8c4d19d14880347aa9d6ce"; logging-data="18689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187ndigBSEBbGMwZevfpqtPoWduSL1j5Kw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.7.0 In-Reply-To: Cancel-Lock: sha1:Ma9jGZ5Xw6UTq7HoinQSFO+Xho0= Xref: csiph.com comp.lang.java.programmer:29850 On 08/24/2014 08:40 PM, Martin Gregorie wrote: > I will soon need to write a scheduling program that manipulates a > rectangular matrix with a list of personal names labelling the columns > and dates labelling the rows. This aspect, along with the processes > needed to load data into the matrix, manipulate it and save it are well - > understood, but I have a display formatting issue with the column labels: > is there any way that a Java program can align these labels vertically > like most spreadsheets can, i.e. display the names vertically with the > first letter at the top? The matrix I need to display can run to 25 or so > rows and columns but each cell can be quite small (think of holding two > 10pt characters), which means the whole matrix should easily fit onto a > display if the column labels can be painted as vertically aligned text. > > I can't find any hint that this may be possible with AWT/Swing, but did I > miss something? Alternatively, is it possible with JavaFX? > > You may find some ideas here. Swing, but JavaFX should face similar issues.