Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dealing with setting up text areas

 
Joe Panully
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
Can you show the part of your code that says:
JTextArea output;
 
Joe Panully
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTextArea output = new JTextArea(10,40);
 
Mike Gershman
Ranch Hand
Posts: 1272
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post more of your program?
 
Joe Panully
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, I realized I had my code just in the wrong method.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic