New gui builder

138 views
Skip to first unread message

Gareth Murfin

unread,
Jun 28, 2016, 12:26:05 PM6/28/16
to CodenameOne Discussions
I started a very basic project and then did the upgrade to new gui builder, it went ok. Then I double clicked on my .res but it still loads the old gui editor, and IU get a dialog saying " fatal error loading the resource file java.lang.nullpointerexception". Is the new gui builder ready for playing with? And if so how do I get it working ?

howud...@gmail.com

unread,
Jun 28, 2016, 3:41:31 PM6/28/16
to CodenameOne Discussions
take a look at this page and video.  it helped me get started

Peter

Shai Almog

unread,
Jun 29, 2016, 1:22:29 AM6/29/16
to CodenameOne Discussions, howud...@gmail.com
We don't remove the old GUI files after the conversion but the source files should be in place and the old GUI files should be ignored.
We considered removing them but decided we'd better not change the resource file as that's a dangerous direction.

Make sure your resource editor/plugin is at the latest version. We had an issue just like that quite a while back. If this still exists with the latest version of the plugin I'd like to know the stack trace of that null pointer.

Gareth Murfin

unread,
Jul 1, 2016, 1:15:32 AM7/1/16
to CodenameOne Discussions, howud...@gmail.com
Thanks, I got it working. It seems much harder to use than the old one, mainly because you cannot see the hierarchy while you are working, and how do you get to the properties for things like when I select a grid layout? Ive moved back to the old gui editor for now. I think it would be better if you could see all of the info at once instead of hiding it like it currently is, I really need to see the hierarchy at all times. 

Gareth Murfin

unread,
Jul 1, 2016, 2:21:42 AM7/1/16
to CodenameOne Discussions, howud...@gmail.com
PS, only played for a short while, I will give it a longer try :-)

Shai Almog

unread,
Jul 2, 2016, 12:40:01 AM7/2/16
to CodenameOne Discussions, howud...@gmail.com
I agree that we need to fix the tree layout to be always visible.
It might also make sense to switch to Accordion instead of nested tabs for some of the UI elements.

I think there are a lot of UX issues that need work in the new GUI builder, currently we're more concerned about stability and reliability which isn't there yet but ideally this should be addressed too.

Gareth Murfin

unread,
Jul 2, 2016, 8:31:04 AM7/2/16
to CodenameOne Discussions
Im glad you agree, it looks great so far, I always did love the old one, so it's a tough job to beat it. Maybe you could use jinternal frames for the windows so that the user can re-arrange them wherever they like. Im no UI expert, exactly the opposite :-) Good work though, I look forward to using it probably on my next cn1 project.

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/u25VG0kpZFA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/5eb1d532-5f0a-4d8b-b393-ea074dc41f18%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

Shai Almog

unread,
Jul 3, 2016, 1:20:02 AM7/3/16
to CodenameOne Discussions
The new GUI builder is written in Codename One so internal frames aren't really available. We'll try to make it more flexible though

Gareth Murfin

unread,
Jul 3, 2016, 7:06:31 PM7/3/16
to CodenameOne Discussions
Ah yes forgot about that, cool idea.
Reply all
Reply to author
Forward
0 new messages