1 Sep 17:15
Re: J9 problems?
asitecnologia <asitecnologia <at> tiscali.es>
2004-09-01 15:15:40 GMT
2004-09-01 15:15:40 GMT
Thank you for answering. It is more or less clear, at least clear enough to see that it works perfectly now thanks. However I have a doubt: how affects this changes to Thinlet's licence? Is it possible to distribute the final product for commercial purposes having managed Thinlet.java? do you have the "legal authority" to make changes and the resulting source still be considered inside Thinlet's Licence? I could not see the modifications you tell me at cvs repository (http://cvs.sourceforge.net/viewcvs.py/thinlet/thinlet/src/java/thinle t/Thinlet.java?rev=1.13&view=log) is it because the are exclusive changes for J9/PoketPC? regards. --- In thinlet <at> yahoogroups.com, "Gerald Bauer" <vamp201 <at> y...> wrote: > Hello, > > Dawid Weiss told me to forward the message about J9 problems to the > Thinlet list that somehow ended up in my private inbox. Here we go: > > Dear All, > > Out of curiousity I tried to pin down this problem and I even managed > to get Thinlet work... so here's what I discovered: > > The AWT on IBM J9/PocketPC sends a different order of events than the > usual Windows AWT (no matter whether SUN or J9 is used on Windows, > the sequence is correct). The ENTERED message is sent AFTER the > PRESSED message (when the user clicked the touchpad). Because Thinlet > saves the component on which the user currently is (on ENTERED/ MOVED > etc) and reuses this information in the event handling code for > PRESSED event, the user interface seems to be unresponsive (because > Thinlet has no idea which component the user currently clicked). > > Apologies if I'm not clear here... it's been a long day. Anyway, the > patch I include below (apply it to Thinlet.java) should make the CVS > HEAD Thinlet work for you on PocketPC devices. > > Regards, > Dawid > > Index: Thinlet.java > =================================================================== > RCS file: /cvsroot/thinlet/thinlet/src/java/thinlet/Thinlet.java,v > retrieving revision 1.12 > diff -u -r1.12 Thinlet.java > --- Thinlet.java 15 Aug 2004 22:42:40 -0000 1.12 > +++ Thinlet.java 17 Aug 2004 18:41:00 -0000 > @@ -2575,6 +2575,8 @@ > */ > protected void processEvent(AWTEvent e) { > // evm (touchscreen) events: entered/moved/pressed -> > dragged -> dragged/released/exited > + // j9 PocketPC (touchscreen) events on clicking the > touch screen: > + // PRESSED/ENTERED/RELEASED (don't ask > about why). > int id = e.getID(); > if ((id == MouseEvent.MOUSE_ENTERED) || (id == > MouseEvent.MOUSE_MOVED) || > (id == MouseEvent.MOUSE_EXITED) || > (id == MouseEvent.MOUSE_PRESSED) || > @@ -2625,6 +2627,10 @@ > closeup(); > } > } > + // THIS PATCH needed for PocketPC > devices on J9 -- the PRESSED event > + // actually precedes the ENTERED > event, so Thinlet doesn't know which > + // component to send the PRESSED > event to on those devices. > + findComponent(content, x, y); > hideTip(); // remove tooltip > mousepressed = mouseinside; > pressedpart = insidepart; ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/thinlet/ <*> To unsubscribe from this group, send an email to: thinlet-unsubscribe <at> yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RSS Feed