Refresh in gui builder

50 views
Skip to first unread message

Gareth Murfin

unread,
Jul 6, 2017, 11:38:25 AM7/6/17
to CodenameOne Discussions
In the new builder I find that since you cannot drag things into the hierarchy you must drag into the UI preview. This is a bit annoying, actually very annoying because you cant put it in the right container first time. If you drag something in it will not go where you want it, also a second drag to put it where you want it and then the editor seems to stop updating (ie i move a button into a container in centre, and it has worked but it doesnt show all the other buttons now - in fact somehow then the container goes to EAST too requiring me to fix the contraints again). I can "refresh" it with a quit n reload, but a "refresh" button would be nice (until the bug is fixed). I find quite a large amount of refresh issues in the menus too...requiring me to quit and reload to get them to show what they should be showing. And not being able to drag into the hierarchy is just bizarre to me. I think you should be able to undock the 4 "tabs" into windows that you can use/see simultaneously instead of having to click on them each time, which requires much more effort, and confuses me, and also means you cannot see all options at once which feels strange. 

I have written over a 1000 words on the new editor, but I want to use it for a few days before I give my main thoughts, but personally not being able to drag into hierarchy really ruins the usability of the tool and creates extra effort of almost blindly dragging things and hoping they go into the right container and then fighting with refresh issues. I think if the refresh bugs were fixed, and the tabs were undockable so they can all be used simultaneously, it might be quite good - who knows it might be very good :-). But for now it feels quite hampered and definitely in beta, had crashes, freeze ups, unupdated code, and many refresh issues, and LOTS of issues just trying to drag things into the right container (something that worked pretty well on the old editor) and tearing my hear out because I have to keep checking hierarchy going back etc, then quit reload to refresh it etc. 

I also cannot find anywhere to adjust the UIID and styling stuff.


Gareth Murfin

unread,
Jul 6, 2017, 3:21:02 PM7/6/17
to CodenameOne Discussions
There should be an easy to move items "up" and "down" too in the hierarchy, trying to do that with dragging is quite hellish, and more or less impossible considering if I drag a button down in preview, all my other buttons vanish. If I quit and reload they come back, hence the refresh bug, I am assuming it might be not be happening for you guys because it is quite blatant. 

Also do you still have the concept of before and post methods? I cant figure out where I am meant to do things.. 

And show a form? showForm() is gone? is this the new correct way:

ListOfBucketItems lobi = new ListOfBucketItems();        
        lobi.show();

?

I do very much like that the code is now in separate files, that makes things much more readable I think.

Some other issues, window is locked fullscreen on middle monitor, I think this needs to be fixed, I never use the editor on main monitor. 
Deleting a button crashed editor.
Sometimes dragging a button into a container just wipes everything out of that container, so the button is the only thing left, quite dangerous.

As I have said the most major issue is dragging things from the palette into the UI, this to me is, confusing, error prone, risky and time consuming. To the point where I am confused as to how you guys use it. It seems virtually impossible for me to drag a button in (see https://www.youtube.com/watch?v=qvHCO6CCu5E&feature=youtu.be )

I do like very much how there is a new window for each form, thats nice.

Also having problems with it remember an old form if I delete it, each time I run it is generating non compilable code for an old form, i noted I could delete its (.gui file to fix this)).

And how do you go back to a previous form in code?

having quite a bit of trouble with it not generating code for things I make in the gui builder. Only seems to generate sometimes when I run the app.

Where do you change uiid stuff? (edit I see its now in component inspector, so both the old and new gui builders work and link to the same theme.res?)

Also when you select an object id like to see the hierachy still it goes to the properties of that object, but if you are dragging it to a new container, this gets confusing, again I think this could be solved by making the tabs undockable and viewable at all times, this would also help quite a few other operations IMHO.

The drag and drop is unreliable, also sometimes just wipes out a ton of components ;-/ Had to do a lot of saving, and a lot of quit n reloads. This is just with extremely simple things like dragging a button to be above another button. Also a simple way to do this would be good like you can press up on the cursors to move a button up the hierarchy for example.

Overall I am sure it is great work but just needs some fixes mostly to drag and drop, and the ability to undock the tabs which I am hoping is possible, not being able to drag into hierarchy will surely hamper every user, unless I am just weird.

Good work guys, hope you dont think I am being negative, I am just giving honest feed back, I have always been drawn to lwuit/cn1 due to the editor. I can do more testing etc if you are interested, maybe something weird was happening for me.

Shai Almog

unread,
Jul 7, 2017, 1:26:44 AM7/7/17
to CodenameOne Discussions
From the video you are using a REALLY OLD version of the designer tool. REALLY old!!!

Make sure your plugin is at 3.7.1 or newer. We're releasing 3.7.2 with a couple of fixes today and with auto-layout which is a completely new level...

When you click the "..." next to a UIID you get a dialog. In the bottom right you have an "Edit" button which will popup the familiar UIID editing UI from the old designer tool.

Gareth Murfin

unread,
Jul 7, 2017, 8:38:28 AM7/7/17
to CodenameOne Discussions
Wow, I had hoped this was the case!! And wondered... But I have updated the libs over and over again and it says theyre the latest? so I assumed they were. There really needs to be a way to easy check a version number, I have updated but the gui tool looks identical. So I dont know if its newer or not. 

--
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/53L7Xio1xKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@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/2fbea5c0-eeae-4e9b-a933-b69a70420040%40googlegroups.com.

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



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

Gareth Murfin

unread,
Jul 7, 2017, 9:04:59 AM7/7/17
to CodenameOne Discussions
im not sure my editor is updating, is there a way to check? Im glad i was looking at an old one btw :) Although I bet the hierachy issue is still there, I realised last night I can hack up my own one from your source if that is not the route you guys will take :-)) 

I see libVersion=169, is that the version? in codenameone settings.propterties.

On 7 July 2017 at 20:37, Gareth Murfin <gareth...@gmail.com> wrote:
Wow, I had hoped this was the case!! And wondered... But I have updated the libs over and over again and it says theyre the latest? so I assumed they were. There really needs to be a way to easy check a version number, I have updated but the gui tool looks identical. So I dont know if its newer or not. 
On 7 July 2017 at 13:26, Shai Almog <shai....@gmail.com> wrote:
From the video you are using a REALLY OLD version of the designer tool. REALLY old!!!

Make sure your plugin is at 3.7.1 or newer. We're releasing 3.7.2 with a couple of fixes today and with auto-layout which is a completely new level...

When you click the "..." next to a UIID you get a dialog. In the bottom right you have an "Edit" button which will popup the familiar UIID editing UI from the old designer tool.

--
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/53L7Xio1xKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsubscr...@googlegroups.com.
--
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

Gareth Murfin

unread,
Jul 7, 2017, 9:46:15 AM7/7/17
to CodenameOne Discussions
Assuming my gui builder is still out of date, no dots next to uiid. i wonder if I just delete the libs directory and update it will grab newer?
edit, ouch did that now all files have compile errors, even when i put the files back.


On Friday, July 7, 2017 at 9:04:59 PM UTC+8, Gareth Murfin wrote:
im not sure my editor is updating, is there a way to check? Im glad i was looking at an old one btw :) Although I bet the hierachy issue is still there, I realised last night I can hack up my own one from your source if that is not the route you guys will take :-)) 

I see libVersion=169, is that the version? in codenameone settings.propterties.
On 7 July 2017 at 20:37, Gareth Murfin <gareth...@gmail.com> wrote:
Wow, I had hoped this was the case!! And wondered... But I have updated the libs over and over again and it says theyre the latest? so I assumed they were. There really needs to be a way to easy check a version number, I have updated but the gui tool looks identical. So I dont know if its newer or not. 
On 7 July 2017 at 13:26, Shai Almog <shai....@gmail.com> wrote:
From the video you are using a REALLY OLD version of the designer tool. REALLY old!!!

Make sure your plugin is at 3.7.1 or newer. We're releasing 3.7.2 with a couple of fixes today and with auto-layout which is a completely new level...

When you click the "..." next to a UIID you get a dialog. In the bottom right you have an "Edit" button which will popup the familiar UIID editing UI from the old designer tool.

--
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/53L7Xio1xKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
--
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

Gareth Murfin

unread,
Jul 7, 2017, 9:48:14 AM7/7/17
to CodenameOne Discussions
Fixed that, I just realised I do not see "codename one settings" in properties, im sure i saw that once, i think somethign very weird is going on with my libs/upodates, it would be helpful if u showed a version number somewhere. Maybe my netbeans is too old? 8.0.2 ?

Shai Almog

unread,
Jul 8, 2017, 1:52:32 AM7/8/17
to CodenameOne Discussions
Libs are what you compile against. The GUI builder is a part of the plugin and should be updated via the standard plugin update process.

Gareth Murfin

unread,
Jul 8, 2017, 9:13:05 AM7/8/17
to CodenameOne Discussions
oh, it looks like I have NEVER updated any plugin ever on netbeans, and I have been using netbeans it since 2000 LOL. I dont know I thought they updated some other way..

I am running  Version: 3.4.3 of the codenameone plugin, maybe i updated on the first beta of the gui editor, or maybe when I installed netbeans.     

anyway thenI scan for updates I get " Unable to connect to the CodenameOnePlugin Update Center because of https://codenameone.googlecode.com/svn/trunk/CodenameOne/repo/netbeans/updates.xml "

On 8 July 2017 at 13:52, Shai Almog <shai....@gmail.com> wrote:
Libs are what you compile against. The GUI builder is a part of the plugin and should be updated via the standard plugin update process.

--
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/53L7Xio1xKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

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

Shai Almog

unread,
Jul 9, 2017, 12:45:15 AM7/9/17
to CodenameOne Discussions
Just remove that old repository and possibly the plugin then reinstall. It should work.

Gareth Murfin

unread,
Jul 9, 2017, 5:10:02 PM7/9/17
to CodenameOne Discussions
thanks, codenameone does not come up under available plugins on netbeans here though :(

Gareth Murfin

unread,
Jul 9, 2017, 8:17:07 PM7/9/17
to CodenameOne Discussions
Got it going in a different netbeans, many of the problems I had are nicely working, its like I had a time machine :-) Will get back to you with more feedback soon, but looks great.
Reply all
Reply to author
Forward
0 new messages