Re: Tabs in JOptionPane window

From: - Steve - (sevans_at_foundation.sdsu.edu)
Date: 10/27/03


Date: Sun, 26 Oct 2003 21:28:40 -0800

Unfortantley that doesn't change the tab behavior and eliminated the
functionality of the \n (everything is now on one line)

Steve

"SPG" <steve.goodsell@nopoo.blueyonder.co.uk> wrote in message
news:bNVmb.2356$ao6.23256326@news-text.cableinet.net...
> I think you have to use a JLabel or JTextField to do this:
>
> JOptionPane.showMessageDialog(null, new JLabel(testString), "TEST",
> JOptionPane.INFORMATION_MESSAGE);
>
>
> "- Steve -" <sevans@foundation.sdsu.edu> wrote in message
> news:1yGmb.29102$B_2.26152@okepread02...
> > Example
> >
> > String testString = "Testing \t tabs";
> >
> > JOptionPane.showMessageDialog(null, testString, "TEST",
> > JOptionPane.INFORMATION_MESSAGE);
> >
> >
> > Instead of getting the output "Testing tabs", I get something more
like
> > "Testing | tabs" (although it isn't a pipe symbol, it's something
> unusual).
> >
> > What do you need to do to get tabs to work with JOptionPane windows?
> >
> >
>
>