JSplitPane help!!!

JTextArea area = new JTextArea(20,10);

JTextArea area1 = new JTextArea(20,10);

JScrollPane spane = new JScrollPane(area);

JScrollPane spane1 = new JScrollPane(area1);

JSplitPane splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, spane,spane1);

but when i try to append something into the Text Areas it says:

cannot find symbol

symbol:method area/area1(java.lang.string)

anyone can help?

[447 byte] By [canephalanxa] at [2007-11-26 15:21:53]
# 1

The scope of a variable is defined by the curly braces around it.

so this piece of code fails at the last line,

Object a = new Foo();

{

Object b = new Foo();

}

a.toString();

b.toString();

itchyscratchya at 2007-7-8 21:36:51 > top of Java-index,Desktop,Core GUI APIs...