-
ShowMessageDialog from JTextArea
If I use JTextArea to show some error message like this:
JTextArea outputArea = new JTextArea( 11, 10 );
outputArea.setText( output );
JOptionPane.showMessageDialog( null, outputArea,
"Student Poll Program",
JOptionPane.INFORMATION_MESSAGE );
The Mesage is editable,how can I make it read-only to user?
-
Re: ShowMessageDialog from JTextArea
"Huiyuanm" <huiyuanm@uwyo.edu> wrote:
>
>
>If I use JTextArea to show some error message like this:
>JTextArea outputArea = new JTextArea( 11, 10 );
>outputArea.setText( output );
>
Insert after this above line this line
"outputArea.setEnabled(false);"
that should do it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks