tag:blogger.com,1999:blog-4691915549420037229.post7921805227907727321..comments2023-10-02T08:22:09.656-07:00Comments on The LWUIT Blog: How LWUIT Is Different (better) From SwingOfir Leitnerhttp://www.blogger.com/profile/08721818051943678344noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4691915549420037229.post-17985195352561869852011-12-08T02:33:17.287-08:002011-12-08T02:33:17.287-08:00Long time user of LWUIT, and very impressed. The w...Long time user of LWUIT, and very impressed. The whole theming engine is fantastic.<br><br>Frankly, Sun should have made LWUIT an alternative to Swing for desktop apps instead of wasting all the effort on JavaFX (the answer to a question nobody asked).<br><br>Is it feasible to hack LWUIT so it could be used as a replacement for Swing in desktop apps ?bryanhttp://www.blogger.com/profile/17225536304541718751noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-74240333066477098582011-11-29T08:38:49.848-08:002011-11-29T08:38:49.848-08:00Hi Sir,I've read in some of your answers about...Hi Sir,<br><br>I've read in some of your answers about LWUIT TextArea Alignment here:<br>http://markmail.org/message/wq2yn5l2q2kccvf4<br>The link you are referring to is dead :( <br><br>Could you please help me on solving the same issue ?<br><br>Kindest regards.Ashraf Bashirnoreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-15024210215473067882011-11-29T03:28:24.085-08:002011-11-29T03:28:24.085-08:00Things I loved about LWUIT:1. How simple it is - i...Things I loved about LWUIT:<br>1. How simple it is - it has a really clean and simple architecture, well organized, useful integrated design patterns (observers for action handling, bridge for easy porting, flyweight for lists etc.). You can start working with it immediately, with no real prior knowledge required.<br>2. How powerful it is - its simplicity doesn't compromise features. You can easily design great UIs and take advantage of all the excellent built in features. Its handling of styles, animations and transitions is amazing. When I worked on a Swing app. I was actually surprised at all the basic stuff it lacked compared to LWUIT and also at how complicated (albeit extensive) its API is.<br>I'd actually like to see LWUIT's desktop port evolve to the point where it's used to build Java desktop apps.<br>3. Open source - makes it extremely easy to not only understand the framework better but also learn from your code.<br>4. Immediate fixes - linking directly against the SVN repository ensures almost daily enhancements and bug fixes.<br>5. Support - the LWUIT team is very responsive and active on all mediums: e-mail, blog, forum, stack overflow.<br><br>Things that could be improved:<br>Not much... Especially since you've added so much to LWUIT since the last time I used it (including the enhanced Resource Editor with GUI builder).<br>However, I think Lists could have been done a bit differently. They could still be based on a flyweight pattern but instead of using a single "rubber stamp" component, a component could be allocated for every row currently on screen and recycled - as is done in Android's ListView & iOS's TableView. This would enable event handling directly within the component (as is done in regular components) and I think could also more easily enable lists with multiple row sizes, animations reflecting changes to the model (rows moving in/out) etc.<br>Also, I must confess that I never really understood the difference between callSeriallyAndWait & invokeAndBlock. They both invoke the Runnable on the EDT and block the code without blocking the EDT until it returns. I think callSeriallyAndWait pushes the Runnable to the end of the queue while invokeAndBlock performs it immediately - am I correct?<br><br>All in all, a truly excellent framework. Kudos!<br><br>Allon.alfonzzznoreply@blogger.com