🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3543

Re: Queries about TextArea, FileDialog, drag & drop.

#3543
From: Andrew Bennett
Date: Mon, 01 Dec 1997 00:00
47 lines
2031 bytes


Kieran Jones wrote:

> 1. Is there a way to have TextArea or a similar class allow individual,
> non-contiguous lines to have their foreground/background colors set
> independently under program control?

Not AWT's.  You might want to search the net, as there are workarounds.You can
put text on a graphics object and color it that way.




> 2. Is there a way to get FileDialog to actually use a FilenameFilter to
> validate allowed filename extensions?

This is a JavaSoft JDK bug that apparently only happens on the
win32platforms.  You may want to visit JavaSoft's web site and search their
bug database.




> 4. Will drag & drop support be available to add to an interface to allow
> users to drop files into a Container?

Drag and drop has it's problems, especially with platforms that don't
support it, or do different things than what is done under what we
think of as typical, aka, win32.

It is possible to do drag and drop inside a Java application using
a technique called triple buffering.  Basically, as the mouse events
move the image, it's moved on offscreenImage1.  offscreenImage1
is copied to offscreenImage2, which has the background.
offscreenImage2 is copied to the current context .  This is a lot
quicker than repainting the backround after each mouse event.



Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <34830B74.B622621E@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <347F8223.3510AE9E@safe.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,47a11d2ef8c6ee17
X-Google-Attributes: gid1089d0,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: Queries about TextArea, FileDialog, drag & drop.
Date: 1997/12/01
Message-ID: <34830B74.B622621E@borland.com>
X-Deja-AN: 294277320
References: <347F8223.3510AE9E@safe.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.api