🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17985

strings over CORBA

#17985
From: Gregory S. Lipman
Date: Thu, 27 Aug 1998 00:00
21 lines
1078 bytes
Hi

I have awt textarea control ta1
if i do :
  ta1.setText("aaa \n bbbb \n cccc");
i see on the screen that control detected newlines and I see
three lines in text area.
No I put line in SQL Server table : "aaa \n bbbb \n cccc"
Back end retrieves it thru jdbc in string.
I bring it as follows thru CORBA from back end :
  String str = srv.getDescription();
  ta1.setText(str);

But now text area displays it as one line :
aaa \n bbbb \n cccc
without detecting newlines \n.

Question : What should I put in table in SQL server so it will work ???

Thanks,
 Gregory
Technical Details
Message-ID: <35E60E7D.1F5D@concentric.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b138af6dac25f4fc,start
X-Google-Attributes: gidf74b3,public
From: "Gregory S. Lipman" <glipman@concentric.net>
Subject: strings over CORBA
Date: 1998/08/27
Message-ID: <35E60E7D.1F5D@concentric.net>
X-Deja-AN: 385448901
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language