Article View: borland.public.jbuilder.java.swing
Article #10012Re: JEditorPane getSelectedText()
From: Zippy
Date: Fri, 10 Dec 1999 00:00
Date: Fri, 10 Dec 1999 00:00
11 lines
1124 bytes
1124 bytes
Likely whats happening is when you click the button the text is no longer selected.. Try trapping the current selection useing the document events and then retrieve the information for later (from your class which trapped it). on your button event. >I am having a difficult time retrieving a value from that method... any >ideas? I have the code in a click event for a button on a button bar... > >Thanks > >MAtt >
Technical Details
Message-ID:
<3856672a.3517767@news.pangea.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<2Mx34.6177$5b1.92477@news2.jacksonville.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,646f845a1c22296e X-Google-Attributes: gid111d45,public From: Zippy@Pangea.ca (Zippy) Subject: Re: JEditorPane getSelectedText() Date: 1999/12/10 Message-ID: <3856672a.3517767@news.pangea.ca> X-Deja-AN: 558859176 Content-Transfer-Encoding: 7bit References: <2Mx34.6177$5b1.92477@news2.jacksonville.net> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pangea.ca X-Trace: pumpkin.pangea.ca 944799964 5104 64.4.88.139 (10 Dec 1999 04:26:04 GMT) Organization: Oats Mime-Version: 1.0 Reply-To: Zippy@Pangea.ca NNTP-Posting-Date: 10 Dec 1999 04:26:04 GMT Newsgroups: borland.public.jbuilder.java.swing