Article View: borland.public.jbuilder.java.swing
Article #1340Re: JEditorPane - HTMLEditorKit - View
From: Tad Frysinger [TeamB]
Date: Wed, 14 Jan 2004 19:14
Date: Wed, 14 Jan 2004 19:14
31 lines
1937 bytes
1937 bytes
Teimatini MarοΏ½n (smartware) wrote: > Hi: > > I have the following question... > > How can I get a reference of a View intance that is draw in the JEditorPane? > > I mean, I click some plane into an JEditorPane, then I get the place where > the mouse was clicked... In the JEditorPane I have the > jeditorpane.modelToView(int x) method that return a Rectangle with the area > where the View is painted... but not the View reference. > I need a View refence to execute X method of mi View... > > How can I do it? > > > THANKS > > TMM > > > I'm not sure I understand your question. The JEditorPane object has an associated EditorKit, which handles formatting of the data in the model. There is no explicit 'view' object, the way there is, for example, in a JScrollPane. What are you trying to do? What specific method are you trying to envoke? -- Tad Frysinger [TeamB]
Technical Details
Message-ID:
<40059575$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ffd99b0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,5e8736cf8ff443b5 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-01-14 11:20:17 PST Date: Wed, 14 Jan 2004 12:14:43 -0700 From: "Tad Frysinger [TeamB]" <tfrysinger@earthlink.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: JEditorPane - HTMLEditorKit - View References: <3ffd99b0$1@newsgroups.borland.com> In-Reply-To: <3ffd99b0$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 206.61.185.167 Message-ID: <40059575$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074107765 206.61.185.167 (14 Jan 2004 11:16:05 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail