Article View: borland.public.jbuilder.java.language
Article #7182Implement Printable and Pageable - per class?
From: swett
Date: Tue, 10 Jul 2001 01:21
Date: Tue, 10 Jul 2001 01:21
20 lines
1699 bytes
1699 bytes
When you call the setPrintable or setPageable methods, can you only pass an instance of a class that implements Printable or Pageable? My applet's main class, which has an instance named "this", implements Printable and Pageable. The applet has a "Print Screen" button on the main pane, and it works fine. However, I have another "Print Screen" button on a frame that the applet builds and displays on the fly. This frame is not defined as its own class, and I'm guessing that's why I can't successfully use setPageable with this frame. Do I need to define the frame as its own class, extending JFrame, and then implement Printable and Pageable in that class? Will I then be able to do a setPageable(myFrameClassInstance) ? Am I allowed to implement Printable and Pageable in more than one class / subclass within an applet? Thank you very much.
Technical Details
Message-ID:
<3b4a58ec$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,602ad33297a3374d,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-09 18:25:44 PST Reply-To: <swett@bcswebsite.com> From: <swett@starband.com> Newsgroups: borland.public.jbuilder.java.language Subject: Implement Printable and Pageable - per class? Date: Mon, 9 Jul 2001 21:21:51 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 148.71.34.6 Message-ID: <3b4a58ec$1_1@dnews> X-Trace: dnews 994728172 148.71.34.6 (9 Jul 2001 18:22:52 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews