Hi all,
just tried (after many time) to run the WindowTest test class from the
trunk, but got a cast exception ... to remove it I had to write the
following patch:

### Eclipse Workspace Patch 1.0
#P wtk
Index: src/org/apache/pivot/wtk/effects/DropShadowDecorator.java
===================================================================
--- src/org/apache/pivot/wtk/effects/DropShadowDecorator.java   (revision 
1300090)
+++ src/org/apache/pivot/wtk/effects/DropShadowDecorator.java   (working copy)
@@ -255,7 +255,7 @@
         srcGraphics.dispose();

         int[] dstBuffer = new int[dstWidth * dstHeight];
-        int[] srcBuffer = new int[srcWidth * srcHeight];
+        short[] srcBuffer = new short[srcWidth * srcHeight];

         Raster srcRaster = src.getRaster();
         srcRaster.getDataElements(0, 0, srcWidth, srcHeight, srcBuffer);
@@ -347,7 +347,7 @@
             bufferOffset = x;
             historyIdx = 0;

-            // Compute the blur avera`ge with pixels from the previous pass
+            // Compute the blur average with pixels from the previous pass
             for (int y = 0; y < yStop; y++, bufferOffset += dstWidth) {
                 // Store alpha value + shadow color
                 int a = vSumLookup[aSum];

Please can you confirm that currently this happens even to others (I'm
running in a xp virtualized environment so could be an issue only for
me in this environment) ?
Tell me so I can apply the patch (if it's the case) ...

Bye,
Sandro



---------- Forwarded message ----------
From: Sandro Martini <[email protected]>
Date: 2012/3/13
Subject: Re: Disappearing Palettes
To: [email protected]


Hi Piotr,
from what I can see on Palette:

A tool palette is an auxiliary window whose visibility is tied to its
owner's active state

so the behaviour you see should be right, at least if the owner you
close and reopen is that right :-) ...


Some more info: the related class is Palette under the package
org.apache.pivot.wtk, then there is the related skin class.

Under the Tests subproject you can find WindowTest, a runnable test
application using Palette, could help.


>How to make them stay open whatever new window / frame / dialog gets open?
Have you tried using as parent your main window ? I'm not sure this
can works (could be by design), Greg can say more on this ... but you
can try and tell us as a starting point.


>And another question - is there a simple way to make the palette title text 
>use a different, bigger font?
I have to look inside, but could be a missing feature in its skin,
let's update on this.


Bye

Reply via email to