Article View: borland.public.jbuilder.java.swing
Article #1466Re: jTextArea component - help an old newbee!!!
From: Algis Kabaila
Date: Sun, 30 Nov 2003 10:55
Date: Sun, 30 Nov 2003 10:55
51 lines
3168 bytes
3168 bytes
Paul Furbacher wrote: > You have given us the code, and some sample > output which doesn't fit your expectations, > but I'm left scratching my head as to what > you actually expect. What are you trying to > do? What does successful output look like? First and foremost - thank you for replying. It is greatly appreciated. I also want to appologise for two things: Firstly, for not responding more promptly. My excuse is that in addition to looking at new (for me, that is) programming languages, I am also in the process of moving from Win to Linux platform. Secondly, for failing to explain what I am trying to do. My failure is particularly bad, since I spent my lifetime explaining technical matter to younger people. I will try to rectify that failure: 1. I want to read lines from the jTextArea1 component as strings. I am trying to use getText(int offs,int len)function. Oops - I think I can see where I goofed: (in offs) probably referst to offset in bytes, not the line number... 2. I want to process the data and write it back on the same jTextArea1 component. As the first step of testing that procedure, I want to echo check the data by dumping it back onto the comoponent. It may look strange that the I plan the output to go back on the same screen as the input. Actually, there is a good reason for wanting to do that. As an old structural engineer (with a healthy share of structural failures...), I know that most failures occur not because of having the right answers, but because of failure to communicate. One area of such failure is to give the "right answers" to the wrong problem! Hving the input and output on the same component reduces the chances of "right answer to the wrong problem" syndrome. Of course, it is nice to start with some of the work already done for you - I see no better way than to use an existing sample editor! I have gone through the tutorial to become familiar with it and to produce a "new" code, being conscious of the copyrignt notice on the example. Thanks again for your response - greatly appreciated. Sincerely, Al. (polites snip...) -- Al. Kabaila
Technical Details
Message-ID:
<bqbe3a$1pq2v0$1@ID-216608.news.uni-berlin.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!ta-1-28.tip.net.AU!not-for-mailReferences:
<bq3lia$1tiqfa$1@ID-216608.news.uni-berlin.de> <bq3n98$1ublqa$1@ID-216608.news.uni-berlin.de> <3fc78900$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,663e7dcc14de267d X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-11-29 16:37:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!ta-1-28.tip.net.AU!not-for-mail From: Algis Kabaila <akabaila@pcug.org.au> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: jTextArea component - help an old newbee!!! Date: Sun, 30 Nov 2003 10:55:57 +0000 Organization: PC Users Group Lines: 51 Message-ID: <bqbe3a$1pq2v0$1@ID-216608.news.uni-berlin.de> References: <bq3lia$1tiqfa$1@ID-216608.news.uni-berlin.de> <bq3n98$1ublqa$1@ID-216608.news.uni-berlin.de> <3fc78900$1@newsgroups.borland.com> Reply-To: akabaila@pcug.org.au NNTP-Posting-Host: ta-1-28.tip.net.au (203.11.71.28) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de 1070152619 60623840 203.11.71.28 ([216608]) User-Agent: KNode/0.7.2