Instead of using HTML, why not use a JTextArea which has the look & feel of
a JLabel?
-----Original Message-----
From: Ramaraj Kalaiselvi <[EMAIL PROTECTED]>
To: 'Wathen, Dave' <[EMAIL PROTECTED]>
Cc: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>; '[EMAIL PROTECTED]'
<[EMAIL PROTECTED]>
Date: Wednesday, February 28, 2001 05:03
Subject: RE: Question on JOptionPane
>Hi Dave,
>
> Thanks for the response. But my long string is a error string or some
>message string from the native method. I get that string & pop it up in the
>GUI. So i will have the message as some String. How can i convert that in
to
>HTML format? Can u guide me through this?
>
>Thanks,
>Selvi.
>
>-----Original Message-----
>From: Wathen, Dave [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 28, 2001 2:36 AM
>To: 'Ramaraj Kalaiselvi'; [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
>Subject: RE: Question on JOptionPane
>
>
>From to API javadoc:
>
> Each of these methods also comes in a
> showInternalXXX flavor, which uses an
> >>> internal frame <<< to hold the dialog
> box (see JInternalFrame). Multiple convenience
> methods have also been defined -- overloaded
> versions of the basic methods that use different
> parameter lists.
>
> >>> All dialogs are modal. <<< Each showXxxDialog
> method blocks the current thread until the user's
> interaction is complete.
>
>The easiest way to display multiline messages is using
>a JLabel and passing the message as html:
>
> new JLabel("<html>"...<br>...</html>");
>
>Regards
>
>Dave Wathen
>Goldman Sachs Asset Management
>3rd Floor, Procession House
>55 Ludgate Hill
>London EC4M 7JN
>+44 (0)20-7774-2998
>
>It is not necessary to understand things in order to argue about them.
>(Caron de Beaumarchais)
>
>
>-----Original Message-----
>From: Ramaraj Kalaiselvi [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 7:08 PM
>To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
>Subject: Question on JOptionPane
>
>
>Hi All:
>
> Is JOptionPane.showInternalMessageDialog(...) can only be used with
>Internal frames becoz i am getting "JOptionPane: parentComponent does not
>have a valid parent component when i have "frame" as its parent?
>
> Can an JOptionPane can be non-modal?
>
> How can make a long string cut in to multiple lines when showing up
in
>a JDialog?
>
>
> Basically what i want to do is throw a non-modal dialog( so that i
>can continue with the background process) with a long string wraped in to
>multiple lines. I could do it with the JDialog, but that doesn't wrap the
>string like JOptionPane does with "\n". Whereas JOptionPane is not a
>non-modal. So i appreciate any suggestions, ideas.
>
>Thanks,
>Selvi.
>
>
>
>
>_______________________________________________
>Advanced-swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/advanced-swing
>_______________________________________________
>Swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/swing
>_______________________________________________
>Swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing