CleanModern demo problem

77 views
Skip to first unread message

ramon.garc...@gmail.com

unread,
Jul 13, 2017, 6:51:03 PM7/13/17
to CodenameOne Discussions
Sorry i'm really lost.
I'm probably not expert enough.

I've recently download from github the CleanModernUIKit demo and i cant execute it using Netbeans 8.0.2, Java 1.8, and the 3.7.2 CodenameOne plugin.

First i've solved then project problems as Netbeans suggest.
But when i want to compile it i receive this error:
/home/debian/NetBeansProjects/Apls/CodenameOne/demos/CleanModernUIKit-master/build.xml:13: taskdef class com.codename1.build.client.CodeNameOneBuildTask cannot be found
 using the classloader AntClassLoader[]

The Netbeans project icon is not codenameone icon, and codename project options are disabled.



Trying two search a workaround i've created a Codenameone project, and copy each object to this new project.
Its compiles, its executes... but suprisingly some forms doesnt show like signupForm.
I've debuged the project and i've seen that it crashed when adding the floatinghints to container

 Container content = BoxLayout.encloseY(
                new Label("Sign Up", "LogoLabel"),
                new FloatingHint(username),
                createLineSeparator(),
                new FloatingHint(email),
                createLineSeparator(),
                new FloatingHint(password),
                createLineSeparator(),
                new FloatingHint(confirmPassword),
                createLineSeparator()
        );

If i delete the FloatingHints in this sentence the form shows OK.
There are some forms like SingInForm with the same structure and works Ok...

Well, please, can anyone helps me with the original downloaded project or with my "workarounded" project???

Thanks a lot.
Ramon



Shai Almog

unread,
Jul 14, 2017, 12:41:29 AM7/14/17
to CodenameOne Discussions
Make sure your plugin is new 3.7+.
In File -> New -> Codename One -> Demos you will see clean modern.

If you want something that isn't there you can follow these instructions: https://www.codenameone.com/blog/tip-setup-codename-one-demo-from-git.html

When it crashes what's the exception?
Message has been deleted

Ramon Garcia

unread,
Jul 14, 2017, 3:59:20 AM7/14/17
to CodenameOne Discussions
Hi Shai,

Thanks a lot.

Using the proposed instructions i can resolve the Git downloaded issues... but when i run the app i've the same problem: the signinform is showed but not signupform.
If i create a new project from demo i experience exactly the same problem.
And if i create an android apk and installs it on my phone... the same.

Debugging the app doesnt shows errors... only when i click in the "Sign Up" button it doesnt shows anything. (Remember if i delete FloatingHints then it works normally).

I've used some of the different emulator skins without changes.

Thank you for your patience :-)

Ramon Garcia

Ramon Garcia

unread,
Jul 14, 2017, 4:05:32 AM7/14/17
to CodenameOne Discussions
Sorry,
I forgot to say that if i rightclick in the GiT downloaded project or in the demo created project the codenameone designer showed is always the old one.

Ramon Garcia

Shai Almog

unread,
Jul 15, 2017, 2:55:10 AM7/15/17
to CodenameOne Discussions
Hi,
this is a mockup. If you press the links at the bottom you will see the signup form sequence. You can also try the JavaScript compiled version live here: http://www.codenameone.com/blog/template-clean-modern-ui-kit.html
Does the JavaScript version behave differently from yours?

I just tried it on my machine and as far as I can tell it's running fine.

The designer tool serves a lot of purposes: Theming, Localization, Resource handling & GUI building.

The GUI building capability in the designer tool was deprecated in favor of a standalone separate GUI builder.

The designer tool itself still edits resource files and still handles everything else just fine.

Ramon Garcia

unread,
Jul 27, 2017, 7:43:23 AM7/27/17
to CodenameOne Discussions
Hi,

Sorry, last week i was on holiday

Surely there is something i misunderstood.
The Javascript compiled version shows the SignUpForm and the ActivateForm that i cant see running the app in my computer.

I'm using JDK 1.8.
And I've mapped the CLDC11.jar, CodenameOne.jar and CodenameOne_SRC.zip libraries.  I dont know if there are different versions of these libraries.

The CleanModern project seems interesting to understand many GUI things but... i doesnt work for me yet. :-)



Finally talking about the GUI Builder: If i rightclicked the project and select "Codename One" --> "Open CodenameOne Designer"  i see the old gui builder.
I understand it can be used for Theming, Localization.... as you say.
But how i can execute the standalone new GUI Builder? Sure its easy, i've looked some docs but sincerely i dont really understand how to.


Thanks thanks a lot

Ramon Garcia

Ramon Garcia

unread,
Jul 27, 2017, 7:59:11 AM7/27/17
to CodenameOne Discussions
Sorry,

I've found how to open new Gui Builder... its easy: rightclicking in the form class.
But in the CleanModern project when i do it, it show a "The GUI Builder works only with GUI Builder files created using the new file wizard" message.
Have i changed anything that i must not?





Ramon Garcia

Ramon Garcia

unread,
Jul 27, 2017, 8:37:50 AM7/27/17
to CodenameOne Discussions
About CleanModern... a think to remember: 

if I delete the "new FloatingHint(xxxxx)" from SingUpForm  (from the BoxLayout.EncloseY command)   it shows Ok
Deleting the label, or the createLineSeparator() it doesnt

Thanks about your patience

Ramon Garcia

Shai Almog

unread,
Jul 28, 2017, 12:55:32 AM7/28/17
to CodenameOne Discussions
Hi,
the clean modern demo is hand coded so it wasn't created with the GUI builder and won't open with it. You can create a new GUI builder file for it but the existing files won't work.

Is this a project you created via the new project wizard -> Codename One -> Demos -> Clean Modern?
That should work out of the box.

Ramon Garcia

unread,
Aug 2, 2017, 9:07:40 PM8/2/17
to CodenameOne Discussions
Hi Shai,

Yes i've a project created via the wizard (and other CleanModern projects created from scratch, and all the tests that i was able to imagine :-) :-) )
and the signupform doesnt shows.
May be, this will be some problem with the configuration of my computer ...
if i send a compilation to my CodenameOne Dashboard (i'm a payment user) and later i installs the apk in an Android phone i have the same problem: signupform doesnt shows.
Very strange.

Send you the CodenameOne dashboard after compilation files, could help?
Do you have a working netbeans project to send me?
It's my last try... Otherwise I will try to use the example MaterialScreens as a starting point.

Thanks a lot Shai

Ramon Garcia

Shai Almog

unread,
Aug 3, 2017, 2:34:53 AM8/3/17
to CodenameOne Discussions
Hi,
no that won't help.
It makes sense that the device will behave in the same way as the simulator.

They should both behave the same way as the JavaScript version in the web page. Not sure why it's different.
Reply all
Reply to author
Forward
0 new messages