wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes dealing with setting up text areas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dealing with setting up text areas" Watch "dealing with setting up text areas" New topic
Author

dealing with setting up text areas

Joe Panully
Greenhorn

Joined: Oct 10, 2004
Posts: 22
PhoneWordsGUI.java:12: <identifier> expected
output.setEditable(false);
^
PhoneWordsGUI.java:13: <identifier> expected
output.setLineWrap(true);
^
PhoneWordsGUI.java:14: <identifier> expected
output.setWrapStyleWord(true);
^

I can't figure out why I'm getting these errors on the said lines if I made sure to include:
import javax.swing.*;
import java.awt.*;

at the top
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Joe,
Can you show the part of your code that says:
JTextArea output;


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joe Panully
Greenhorn

Joined: Oct 10, 2004
Posts: 22
JTextArea output = new JTextArea(10,40);
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Can you post more of your program?


Mike Gershman
SCJP 1.4, SCWCD in process
Joe Panully
Greenhorn

Joined: Oct 10, 2004
Posts: 22
Nevermind, I realized I had my code just in the wrong method.

 
Don't get me started about those stupid light bulbs.
 
subject: dealing with setting up text areas
 
Similar Threads
Doubt in static import
I am a real JAVA beginner, please take a look at this code.
imports
int []i,j[]==int i[], j[][] ???????
For loop syntax