Re: Can't figure saving out.

2008-11-18 Thread Reinier Zwitserloot
Loki, like the compiler error says: make them final. e.g.: final textArea text = new TextArea(); final Button save = new Button(whatever); On Nov 18, 5:29 am, Loki <[EMAIL PROTECTED]> wrote: > Perhaps my brain is just fried-- the longer I code, the less sense > coding seems to make to me, so

Re: Can't figure saving out.

2008-11-18 Thread alex.d
If "all those various textboxes" are in the same class then you just have to make them PRIVATE - not global. If they are in other Classes then you have to make them PUBLIC(bad style) or provide a bunch of public GET/SET Methods(good style). Another way is to declare them ("all those various textbo

Re: Can't figure saving out.

2008-11-18 Thread gregor
public class MyComponent { private SimplePanel panel = new SimplePanel(); private textBox = new TextBox(); private Button myButton = new Button("Save", new ClickListener() { public void onClick(Widget sender) { String data = textBox

Can't figure saving out.

2008-11-18 Thread Loki
Perhaps my brain is just fried-- the longer I code, the less sense coding seems to make to me, so maybe I just need a break, but I'll list my problem just in case I'm wrong. Okay, so I have a setup where a user enters data into a bunch of various textboxes, and there's a button labeled "Save" wai