Form test = new Form("Picker", BoxLayout.y());
int[] PICKER_TYPES = new int[] {PICKER_TYPE_CALENDAR, PICKER_TYPE_DATE,
PICKER_TYPE_DATE_AND_TIME, PICKER_TYPE_DURATION,
PICKER_TYPE_DURATION_HOURS, PICKER_TYPE_DURATION_MINUTES,
PICKER_TYPE_STRINGS, PICKER_TYPE_TIME};
for(int t : PICKER_TYPES) {
Picker p = new Picker();
p.setType(t);
test.add(p);
}
test.show();
Thanks much for taking the time to include a complete example.
When I add
p.setType(PICKER_TYPE_STRINGS);
to my pickers, they work.
I was letting the picker type default.
-Russ
I ran your code in a blank project, and it worked fine.
Then I refreshed the cn1 libraries to facilitate a successful build.
The picker no longer selects when I run in the simulator…
Windows 1803
I am running NetBeans 8.2
Codename One 4.0.0
XML Entity Catalog UI 2.3.1.4
I am not sure how to check Versions.properties in the project folder.
These are the build errors I get when I attempt to send a successful build to
Windows UWP:
Building for username: poll...@outlook.com
C:\Users\DI5\Documents\NetBeansProjects\CodenameOne999\build.xml:548:
java.lang.NoClassDefFoundError: com/eclipsesource/json/JsonObject
at com.codename1.build.client.CodeNameOneBuildTask.getUserType(CodeNameOneBuildTask.java:1088)
at com.codename1.build.client.CodeNameOneBuildTask.execute(CodeNameOneBuildTask.java:263)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: java.lang.ClassNotFoundException: com.eclipsesource.json.JsonObject
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1388)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1337)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1089)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 17 more
BUILD FAILED (total time: 2 seconds)
NOTE: after I update the cn1 library OR install a certificate, the picker will no longer
“select” elements.
There is no update client libs under Codename One Settings -> Basic ->
I went to tools, plugins, and updated codename one to 4.3.
Picker is still not selecting.
Warning could not open prefs error code 5. Otherwise looks ok.
BTW http://plugins.netbeans.org/ is down. Does that make
A difference?
Picker still does not select… will try again when http://plugins.netbeans.org/ is up.
I'm disappointed that you cannot duplicate the error.
Simulator,
Windows Desktop 1803,
Windows Phone 14393,
Windows Phone 15063,
Codename One 4.0.3,
jdk 8
I'm disappointed that you cannot duplicate the error.
Simulator,
Windows Desktop 1803,
Windows Phone 14393,
Windows Phone 15063,
Codename One 4.0.3,
jdk 8
From: codenameone-discussions@googlegroups.com <codenameone-discussions@googlegroups.com> on behalf of Russ Lynch <poll...@outlook.com>
Sent: Thursday, July 12, 2018 1:13:11 AM
Subject: RE: [codenameone-discussions] Re: Picker not selecting on windows desktop or phone
Picker still does not select… will try again when http://plugins.netbeans.org/ is up.
From: codenameone-discussions@googlegroups.com <codenameone-discussions@googlegroups.com> on behalf of Russ Lynch <poll...@outlook.com>
Sent: Thursday, July 12, 2018 1:11:08 AM
Subject: RE: [codenameone-discussions] Re: Picker not selecting on windows desktop or phone
Warning could not open prefs error code 5. Otherwise looks ok.
BTW http://plugins.netbeans.org/ is down. Does that make
A difference?
From: codenameone-discussions@googlegroups.com <codenameone-discussions@googlegroups.com> on behalf of Shai Almog <shai....@gmail.com>
Sent: Thursday, July 12, 2018 12:03:21 AM
To: CodenameOne Discussions
Subject: Re: [codenameone-discussions] Re: Picker not selecting on windows desktop or phone
--No. Under Codename One Settings -> Basic -> Update Project Libs.We changed the last label at some point and I keep using the old name...
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/ltstsDO4H3Q/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/8732e205-102d-4b1a-870c-c31e04662fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/ltstsDO4H3Q/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/CY4PR12MB1496DAF784FA9C999E8C76C2CA590%40CY4PR12MB1496.namprd12.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
--
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/ltstsDO4H3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
It’s working now.
I deleted the contents of .codenameone and updated libs.
I still seem to be running 4.0.3 codename one…
The picker is selecting now in the simulator after installing a certificate and updating xml libraries.
I am confident that as soon as I can get a build to appear on the website, the problem is solved.
(I am right now not able to see a build appear on the website)
It’s working in the simulator now.
I deleted the files in .codenameone and updated the libraries.
As soon as I had a successful library update, and a successful build sent to the server,
The picker no longer selects in the simulator or on windows phone… according
To versions I have 28 (updated libs) however the plugin version is 4.0.3.
I don’t know why you can’t duplicate this problem☹
As soon as I had a successful library update, and a successful build sent to the server,
The picker no longer selects in the simulator or on windows phone… according
To versions I have 28 (updated libs) however the plugin version is 4.0.3.
I don’t know why you can’t duplicate this problem☹
From: codenameone-discussions@googlegroups.com <codenameone-discussions@googlegroups.com> on behalf of Russ Lynch <poll...@outlook.com>
Sent: Friday, July 13, 2018 10:06:30 AM
Subject: RE: [codenameone-discussions] Re: Picker not selecting on windows desktop or phone
It’s working in the simulator now.
I deleted the files in .codenameone and updated the libraries.
From: codenameone-discussions@googlegroups.com <codenameone-discussions@googlegroups.com> on behalf of Shai Almog <shai....@gmail.com>
Sent: Friday, July 13, 2018 12:40:00 AM
To: CodenameOne Discussions
Subject: Re: [codenameone-discussions] Re: Picker not selecting on windows desktop or phone
Also is this happening with a specific skin file?--
I tested with iPhone X.
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/ltstsDO4H3Q/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/0aeba2f9-259a-4bce-80eb-89e20ddd970a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/ltstsDO4H3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
When the libraries are updated, versions.properties looks like:
#Fri Jul 13 14:32:38 EDT 2018
CodenameOne_SRCzip=28
CodenameOneJar=28
CodeNameOneBuildClientJar=7
CLDC11Jar=13
JavaSEJar=28
And the picker will not select. It’s clear what is happening, but I don’t know why.
final String[] characters = { "Tyrion Lannister", "Jaime Lannister", "Cersei Lannister", "Daenerys Targaryen",
"Jon Snow", "Petyr Baelish", "Jorah Mormont", "Sansa Stark", "Arya Stark", "Theon Greyjoy",
"Bran Stark", "Sandor Clegane", "Joffrey Baratheon", "Catelyn Stark", "Robb Stark", "Ned Stark",
"Robert Baratheon", "Viserys Targaryen", "Varys", "Samwell Tarly", "Bronn","Tywin Lannister",
"Shae", "Jeor Mormont","Gendry","Tommen Baratheon","Jaqen H'ghar","Khal Drogo","Davos Seaworth",
"Melisandre","Margaery Tyrell","Stannis Baratheon","Ygritte","Talisa Stark","Brienne of Tarth","Gilly",
"Roose Bolton","Tormund Giantsbane","Ramsay Bolton","Daario Naharis","Missandei","Ellaria Sand",
"The High Sparrow","Grand Maester Pycelle","Loras Tyrell","Hodor","Gregor Clegane","Meryn Trant",
"Alliser Thorne","Othell Yarwyck","Kevan Lannister","Lancel Lannister","Myrcella Baratheon",
"Rickon Stark","Osha","Janos Slynt","Barristan Selmy","Maester Aemon","Grenn","Hot Pie",
"Pypar","Rast","Ros","Rodrik Cassel","Maester Luwin","Irri","Doreah","Eddison Tollett","Podrick Payne",
"Yara Greyjoy","Selyse Baratheon","Olenna Tyrell","Qyburn","Grey Worm","Meera Reed","Shireen Baratheon",
"Jojen Reed","Mace Tyrell","Olly","The Waif","Bowen Marsh"
};
Form test = new Form("Picker", BoxLayout.y());
Picker p = new Picker();
p.setStrings(characters);
test.add(p);
test.show();
Using your example, now
The picker selects on the simulator with the a new picker GUI.
The picker selects on Android Phone with the new GUI.
On a Lumia or Acer Windows phone, the picker selects, but is sluggish.
The Cancel and Done buttons are whiter on a white field, and hard to read,
but clickable. (The same for the display when updating cn1 libraries - whiter on white).
The old GUI was not sluggish on Windows phones. It did not take up the entire screen
either.
NOTE: in my sample app with your code I used
Native skin with bare bones hello world as an example,
As I do in my production project.
The ‘cancel’ and ‘done’ buttons on a Lumia and Acer Windows Phone
Appear as whiter on white and are hard to see, but selectable.
Thank you for your help. I filed 2 issues on git.
-Russ