On Tuesday, August 27, 2019 at 4:41:23 AM UTC+2, Shai Almog wrote: > > These probably aren't bugs, I explained more in the issue you posted: > https://github.com/codenameone/CodenameOne/issues/2894 >
Exept for the TextArea prefered width, they are all bugs actually. On Tuesday, August 27, 2019 at 8:34:51 AM UTC+2, Dave Dyer wrote: > > > In fairness, consider that the layout has a lot of moving parts, and > getting the exact result > you want from generic tools is problematic at best. Have you tried to > get the same effect > using standard java/swing tools? I bet you find it's every bit as > frustrating. > > My solution, which I do recommend you try, is to define your own layout > manager > and layout the components the way you want them to. When you only have to > serve yourself, making a layout is not hard at all. > The bugs aren't related to layout here actually. They are linked to the TextArea default styling and behaviour when passing from an edition state to a non-edditing one and most can't really be fixed at the developper level. I agree Swing is far from beeing the most convenient and pleasant UI framework to use but, in my opinion, CN1 have succeded into making their UI 5 times worse... Each time I have to switch from Flutter to CN1 (I still have one of my projects using CN1, I switched all others to Flutter) I am afflicted by how difficult it is to get a decent UI with CN1. Yet I am not a big fan of the "everything is a widget" and responsive design of Flutter. I still prefer the old fashion way with components, layouts and listeners. But the CN1 UI engine is so wrongly designed (For example, it lacks modularity, with many components beeing huge monolitic classes actually merging multiple components and actions that should be distinct, like `Form` wich contains Toolbar and animations betweens Forms in its own code rather than having clear separated (and thus easier to debug and maintain) classes and factories for example) and buggy that everytime I work on my CN1 project I think of switching it to Flutter (unfortunately I invested a lot of time developping custom components and porting some libs into java and native interfaces for this one so switching to flutter/dart would requiere a lot of work, which is why I am still asking myself if the switch would be worth it for this project). I completely understand that the CN1 team and community is an order of magnitude smaller than the Flutter one and thus, that the developpment and bug fixing in CN1 requiere more time but I think that, as a consequence, they should really focus their efforts on critical parts like the base UI (rather than developping some fancy stuff like UIfragments and CSS like syntax that might be cool but are completely unecessary to develop a good looking app). Don't get me wrong, I still think CN1 has a great potential but I am afraid that, if they don't quickly revise their priorities and define a clear development timeline for the next 2 years (they should suggest a public timeline that the community could vote for and discuss, like what they are doing for clone applications and courses) many developpers would pragmatically definitively switch to others more convincing and robust frameworks. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/7277a783-0c49-429a-be61-5d334252d44e%40googlegroups.com.
