🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Screen Content to Clipboard?

#2772
From: John P. McGrath
Date: Fri, 17 Mar 2000 00:00
14 lines
896 bytes
On Thu, 16 Mar 2000 08:53:13 +0100, Werner Nussbaumer wrote:

> I would like to programmatically copy the active screen
> window in a browser into the clipboard, for example as a
> bitmap. Can anyone help me on how to do that?

In JDK 1.3, there is a new class called java.awt.Robot, which has:

    public BufferedImage createScreenCapture( Rectangle screenRect );

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.133bc16a2a1c97d989804@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38D092E9.646E2B5A@datacomm.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,61d7bbde1c9c745e
X-Google-Attributes: gid1089d0,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: Screen Content to Clipboard?
Date: 2000/03/17
Message-ID: <MPG.133bc16a2a1c97d989804@forums.borland.com>
X-Deja-AN: 598683768
References: <38D092E9.646E2B5A@datacomm.ch>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api