This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes what if I want to write to chooser file rather message the message2=...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "what if I want to write to chooser file rather message the message2=...?" Watch "what if I want to write to chooser file rather message the message2=...?" New topic
Author

what if I want to write to chooser file rather message the message2=...?

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
can you help?
what if I want to write to chooser file rather message the message2?
what obj type I must create?

pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Leonidas Savvides wrote:can you help?
what if I want to write to chooser file rather message the message2?
what obj type I must create?


Perhaps it's me, but I'm having a tough time understanding just what you're asking here. Could you clarify things a bit? Please read the link TellTheDetails for more information on what information we need to be able to give you an intelligent answer.

Much luck!
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10491
    
    9

pete stein wrote:Perhaps it's me, but I'm having a tough time understanding just what you're asking here.

+1


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I mean in message.write(writer); // message must be textfield or textarea , correct ...? what if rather save a textarea only content, SAVE plus some textfields in the same file? how to convert String to obj appropriate for yyyyy.write(writer); // ???
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19726
    
  20

Use writer.write(String). Don't forget to add newline characters (System.getProperty("line.separator")) yourself.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: what if I want to write to chooser file rather message the message2=...?