🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14561

Re: problem with keyevent

#14561
From: Paul Furbacher [TeamB]
Date: Mon, 23 Aug 1999 00:00
18 lines
1206 bytes
Marcel van den Dungen wrote:

> i am writing an application that shows a document on a jpanel, i need to
> 
> draw it myself so no standard swing component can be used. on key down i
> 
> scroll down one line. the problem is that this is very slow and when the
> 
> user keeps the down-key pressed it just keeps scrolling a long time. can
> 
> anyone tell me how i can 'throw' away some incoming key events?


Don't exactly know, but I'd study the code which handles key presses
in JScrollPane to see how they do it.  If JScrollPane scrolls fast enough
for you, then I'd emulate that code.

Paul Furbacher (TeamB)
Technical Details
Message-ID: <37C1C924.BC121044@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37C146F4.F8B879DA@c-content.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d01aded958183df4
X-Google-Attributes: gidf74b3,public
From: "Paul Furbacher [TeamB]" <pf@bilbo.bio.purdue.edu>
Subject: Re: problem with keyevent
Date: 1999/08/23
Message-ID: <37C1C924.BC121044@bilbo.bio.purdue.edu>
X-Deja-AN: 516344929
Content-Transfer-Encoding: 7bit
References: <37C146F4.F8B879DA@c-content.nl>
Content-Type: text/plain; charset=us-ascii
Organization: Reverse Alchemy, Inc.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.language