Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by Ramon F Herrera
Thu, 26 Feb 2004 17:04
DocumentListener feature not working after upgrade to JBX
Author: Ramon F Herrera
Date: Thu, 26 Feb 2004 17:04
Date: Thu, 26 Feb 2004 17:04
39 lines
2100 bytes
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); ----------------------------------------------------------------------
Re: DocumentListener feature not working after upgrade to JBX
Author: Gillmer J. Derge (TeamB)
Date: Thu, 26 Feb 2004 17:15
Date: Thu, 26 Feb 2004 17:15
16 lines
1730 bytes
1730 bytes
Ramon F Herrera wrote: > writing with JBX. The "LimitedLenghtDocument" is no > longer recognized. I think you need to figure out where LimitedLengthDocument is coming from. It's not a class I've ever heard of, and I don't see it in my JBuilder installation. Are you sure it isn't something you wrote as part of the application? You can figure out where it's coming from by opening the project that works and editing the source file that uses the class. Put the caret on "LimitedLengthDocument" and pick Find Definition on the right click menu. See what file comes up and where it's located. -- Gillmer J. Derge (TeamB)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads