Article View: borland.public.jbuilder.java.api
Article #1774JAI
From: Thimor Bohn
Date: Sat, 29 Sep 2001 17:57
Date: Sat, 29 Sep 2001 17:57
33 lines
2200 bytes
2200 bytes
hello!
i`m using jb4ee and need to use java advanced imaging (jai-1_1). i installed
this into sun jdk1.3.1_01.
it works, but i'm not able to use the widgets provided in this addon. if i
try to put one into my class, the gui-designer shows only a red box instead.
and there seems to be no possibility to overide the mouse.
i.e.:
RenderedImage ri = JAI.create("fileload", "C:\\Eigene Dateien\\Eigene
Bilder\\Beispiel.jpg");
ScrollingImagePanel panel = new ScrollingImagePanel(ri, 0, 0);
this.getContentPane().add(panel);
result (designer):
java.lang.IllegalArgumentException: invalid layout key Center new
ScrollingImagePanel(ri,0,0)
Failed to create live value from new ScrollingImagePanel(ri,0,0) in
ScrollingImagePanel panel = new ScrollingImagePanel(ri,0,0);
Failed to create live visual subcomponent (panel) as
javax.media.jai.widget.ScrollingImagePanel(cls); creating a red component in
its place
program runs, but listeners do not get any events.
what can i do? i first tried to use the original jdk from jb, then the sun
jdk (have modified bin/jdk.config) - with original jdk i got a compiler
error for event listener with sun's not. if i use javax.swing.JPanel instead
it works, but this is not the way i want to go.
best regards,
thimor bohn (bohn@communa.com)
Technical Details
Message-ID:
<3bb60bdb_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,21ef0f20ac86735d,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-09-29 11:05:22 PST From: "Thimor Bohn" <bohn@communa.com> Newsgroups: borland.public.jbuilder.java.api Subject: JAI Date: Sat, 29 Sep 2001 19:57:20 +0200 Lines: 37 Organization: Communa Systems GmbH X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.7.140.199 Message-ID: <3bb60bdb_2@dnews> X-Trace: dnews 1001786331 212.7.140.199 (29 Sep 2001 10:58:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews