Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Text orientation Date: Mon, 25 Aug 2014 11:56:03 +0000 (UTC) Organization: A noiseless patient Spider Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 25 Aug 2014 11:56:03 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="5571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jPAHg385QBA7bUGfUVsjfoUfUpzrp3Z0=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:Iptc0FAd4RuH0sQ86iYWBXZg/fs= Xref: csiph.com comp.lang.java.programmer:29852 On Sun, 24 Aug 2014 20:29:52 -0700, Knute Johnson wrote: > Something like this work? > > import java.awt.*; > import javax.swing.*; > > public class test3 extends JFrame { > private static final String vertText = > "V
e
r
t
i
c
a
l

" + > "T
e
x
t"; > public test3() { > setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); > add(new JLabel(vertText,JLabel.CENTER),BorderLayout.CENTER); > pack(); > setVisible(true); > } > > public static void main(String... args) { > EventQueue.invokeLater(new Runnable() { > public void run() { > new test3(); > } > }); > } > } > Cute, and more readable than I expected until I ran it. Thats' certainly a possibility since, transforming name strings into that HTML format can certainly be automated and included in data loading code. Thanks for the idea, which I must admit hadn't occurred to me, and the SSCE. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |