Copy GUI form one project to another

109 views
Skip to first unread message

BK Shrestha

unread,
Nov 13, 2014, 10:47:21 AM11/13/14
to codenameone...@googlegroups.com
Hi

I am trying to copy the GUI from one project to another project. 
Atm I am designing the same GUI and theme that I have created for project A to project B again. This is taking lots of time. I am unable to reuse it. Even I am unable to copy the GUI within the same project. 

Is there any way to do this? Please suggest me.


Thanks!


Shai Almog

unread,
Nov 13, 2014, 11:57:27 PM11/13/14
to codenameone...@googlegroups.com
Hi,
the designer has an import feature. You can just use that to import the entire GUI/design then delete everything you don't need.

BK Shrestha

unread,
Nov 14, 2014, 12:45:51 AM11/14/14
to codenameone...@googlegroups.com
Hi Shai,

Thanks it works, all the files are now imported and it works too :-). Can we only copy the certain GUI for example I have a GUI A and I want to reuse this GUI. Can we do this without importing all the GUI?

Thanks!

On Fri, Nov 14, 2014 at 10:42 AM, Shai Almog <shai....@gmail.com> wrote:
Hi,
the designer has an import feature. You can just use that to import the entire GUI/design then delete everything you don't need.

--
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/0wO4AhJwKbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/eec785ff-489a-46e1-946c-3ab5b902becb%40googlegroups.com.

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

Shai Almog

unread,
Nov 14, 2014, 9:21:02 AM11/14/14
to codenameone...@googlegroups.com
You might be able to do this manually by editing the XML and copying the GUI binary files but you might be asking for trouble since there are hidden dependencies you might break.

BWC

unread,
Oct 19, 2017, 11:26:59 AM10/19/17
to CodenameOne Discussions
Hi, where is the import feature> I also copy-pasted my files from one project to another and now when I right-click on a Java file, click Codename One Preferences and choose GUI Builder, I get an error message. I am using Intellij. Thanks.

Shai Almog

unread,
Oct 20, 2017, 2:03:54 AM10/20/17
to CodenameOne Discussions
Reply all
Reply to author
Forward
0 new messages