🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12584

Re: ScreenDumping a JFrame that has multiple JTables

#12584
From: Steve Waters
Date: Thu, 10 Dec 1998 00:00
29 lines
1520 bytes
What you need to do here is consult the java2d api. But basically you need
to create a "print window" for the Jframe,  then what ever is in that jframe
will get printed, why I say consult the api, depending on how you have
implemented it you might have to get a bit clever with the frame size. As
you dnt say if you have scroll bars or not, or how you create the tables
inside this frams.

Also sun do have something on their web site about java2d printing , well
worth a look,
I think it was at the swing connection.

Steve


Ramanan Varadarajan wrote:

> Hi
>
> Any ideas on how do I send to printer a whole bunch of JTables that  are
> inside a JFrame?
> My JFrame has scrollbars to view multiple columns inside the JTables.
> In short, I want to be able to see all the columns in the JTables in one
> sheet...
> Is there a ZoomToFit kind of thing available..
>
> Any Help Appreciated
>
> Thanks
> Ramanan
Technical Details
Message-ID: <366F6492.B97508FD@bellsouth.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <366B176C.8B578088@lancomp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,66bae862a83a88da
X-Google-Attributes: gid111d45,public
From: Steve Waters <steve_w@bellsouth.net>
Subject: Re: ScreenDumping a JFrame that has multiple JTables
Date: 1998/12/10
Message-ID: <366F6492.B97508FD@bellsouth.net>
X-Deja-AN: 420710853
Content-Transfer-Encoding: 7bit
References: <366B176C.8B578088@lancomp.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing