Eric George
Fri, 08 Feb 2002 00:06:34 -0800
You can include a JTextArea *within* the JOptionPane. Then you could have the JTextAreaAppender writing to a JTextArea that is displayed on the option pane. It takes a little fiddling to make it look right (scroll bars, etc), but it is possible.
The trick is that whenever a JOptionPane constructor (or factory method)
calls for a "message", you can actually pass a Swing component to it.
In your case, you would pass the JTextArea that the appender is
associated with as the message parameter.
On Thu, 2002-02-07 at 17:13, Mark Evans (Anaheim) wrote:
I believe you can only append to appenders (classes that either extend
AppenderSkeleton or implement Appender). I don't believe JOptionPane does
either. So, to answer your question directly, no.
Mark
-----Original Message-----
From: Gunter, Geary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 4:04 PM
To: 'Log4J Users List'
Subject: Appending to a JOptionPane
I know it is possible to add a JTextAreaAppender and append to a JTextArea,
but is it possible to append to a JOptionPane even though the JOptionPane
class does not have an append method as the JTextArea class does.
Thanks,
Geary
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
Eric George
[EMAIL PROTECTED]
hm: 720-855-0484
cell: 720-231-2335
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>