🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1241

DocumentListener feature not working after upgrade to JBX

#1241
From: Ramon F Herrera
Date: Thu, 26 Feb 2004 17:04
39 lines
2100 bytes
I wrote an application with JB8 which made extensive use
of the 'DocumentListener' feature (see relevant code below).

After I upgraded to JBuilder X, that application still
works properly, but for some reason I cannot add the
DocumentListener feature to any new programs that I am
writing with JBX.  The "LimitedLenghtDocument" is no
longer recognized.

I am including all the imports below because I am not sure
which are the relevant ones to the DocumentListener class.

Thanks for your kind assistance,

-Ramon F. Herrera


----------------------------------------------------------

import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;
import java.text.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.text.*;
import javax.swing.event.*;
import com.borland.jbcl.layout.*;


   private Document jDocument1 = new LimitedLengthDocument(4);
   private JTextField jTextField1 = new JTextField(jDocument1, "", 4);
   [...]
   jDocument1.addDocumentListener(this);


----------------------------------------------------------------------
Technical Details
Message-ID: <403e2731$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5630890f8d44828c,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-02-26 09:10:38 PST
Date: Thu, 26 Feb 2004 12:04:48 -0500
From: Ramon F Herrera <ramon@jonjay.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: DocumentListener feature not working after upgrade to JBX
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.128.136.41
Message-ID: <403e2731$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077815089 24.128.136.41 (26 Feb 2004 09:04:49 -0800)
Lines: 43
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail