[Kde-java] Compressed Icons in Java Apps created with juic

Lukas Molzberger lukas.molzberger at gmx.de
Sun Aug 22 18:51:38 CEST 2004


Am Sonntag, 22. August 2004 18:14 schrieb Marco Ladermann:
> Am Donnerstag, 19. August 2004 22:22 schrieb Lukas Molzberger:
> > By the way I found yet another small problem with the output of juic,
> > which, however, was pretty easy to workaround. The problem was that I had
> > too many or too large icons in my application so that java said something
> > like: No more than 65000 Bytes allowed in constructor.
>
> I didn't find time this weekend to dive into this problem, I leave it for
> the next one. Could you be so kind and send me (or to the list) a .ui file
> with such a large image? Testing is always easier with some real stuff ;)
>
> Marco

Hi Marco,
No problem, here is a test .ui file that shows this problem. My solution so 
far was to distribute the icons over several constructors, but I guess there 
is a better way than that. Perhaps it's possibe to set the maximum limit for 
the size of a constructor to a higher value. 

Lukas

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
 The code of constructor Form3(org.kde.qt.QWidget, java.lang.String, int) is 
exceeding the 65535 bytes limit

 at Form3.<init>(Form3.java:3593)
 at Form3.<init>(Form3.java:3567)
 at Form3.main(Form3.java:3969)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: large-icons-test.ui
Type: application/x-designer
Size: 64471 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-java/attachments/20040822/9eb3cde5/large-icons-test-0001.bin


More information about the Kde-java mailing list