Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29852

Re: Text orientation

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Text orientation
Date 2014-08-25 11:56 +0000
Organization A noiseless patient Spider
Message-ID <ltf88j$5e3$1@dont-email.me> (permalink)
References <lte0mj$jc$2@dont-email.me> <lteajd$331$1@dont-email.me>

Show all headers | View raw


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 =
>       "<html><body>V<br>e<br>r<br>t<br>i<br>c<br>a<br>l<br> <br>" +
>       "T<br>e<br>x<br>t</body></html>";
>      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       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 00:40 +0000
  Re: Text orientation Knute Johnson <eternal@knutejohnson.com> - 2014-08-24 20:29 -0700
    Re: Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 11:56 +0000
  Re: Text orientation Roedy Green <see_website@mindprod.com.invalid> - 2014-08-24 22:33 -0700
  Re: Text orientation Jeff Higgins <jeff@invalid.invalid> - 2014-08-25 04:02 -0400
    Re: Text orientation Jeff Higgins <jeff@invalid.invalid> - 2014-08-25 04:44 -0400
      Re: Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 12:11 +0000

csiph-web