|
-
March 7th, 2012, 03:56 PM
#2
Re: To create a text area using swing
I cant view .java files on the phone but i suspect you haven't used a validate(); call.. This kind of operation is not thread safe so I'm not surprised it doesent work. But here's a walkaround: use textarea.setPrefferedSize(new Dimension(1,1)); for the not viewable text area and then call the same method with the parameters 450,450(viewable text area), for example.. To add a scrollbar you just do add(new JScrollPane(textArea));
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
|
Click Here to Expand Forum to Full Width
|