[codenameone-discussions] Re: Alternative to Jformattedtextfield

2017-07-05 Thread Shai Almog
Picker looks different on the device as it's implemented natively. You can use this trick for masking: http://www.codenameone.com/blog/validation-regex-masking.html This will use two separate fields. You can set constraint to numeric on the field and add validation to prevent invalid input. We

[codenameone-discussions] Re: Simulator deficiencies for Unicode strings, displays ◻◻◻◻

2017-07-05 Thread Shai Almog
CJK isn't supported by all fonts in all OS's. When you see squares and you had encoding correct that means the font doesn't support it and there isn't much we can do about that. We can't ship with a builtin unicode font and even Roboto doesn't include CJK in the publicly available version. --

Re: [codenameone-discussions] Re: S3 upload

2017-07-05 Thread Shai Almog
When you create a new project it will provide the libs we had when we created the plugin -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-

[codenameone-discussions] Re: com\codename1\demo\chrome\gui\Main.java:26: error: lambda expressions are not supported in -source 1.5

2017-07-05 Thread Shai Almog
How did you create the project and in which IDE/plugin version? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@go

[codenameone-discussions] Re: How to use new gui builder?

2017-07-05 Thread Shai Almog
It's a completely different tool: https://www.codenameone.com/blog/using-the-new-gui-builder.html See this video: https://www.codenameone.com/blog/codename-one-3-7-live.html https://www.codenameone.com/blog/gui-builder-improvements-3.7.html -- You received this message because you are subscri

[codenameone-discussions] Re: Google plus returns "Error: disallowed_useragent" when opening OAuth page in BrowserComponent / WebBrowser

2017-07-05 Thread Shai Almog
Yes. It should work on the device if you included the build hints as explained in the developer guide. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email t

[codenameone-discussions] Re: Form control not revalidating (Codename One)

2017-07-05 Thread Yahya-Imam Munir
Hi Shai, Thanks I will migrate to the new GUI as suggested but let me complete this particular project here first as i'm familiar a bit with the old GUI. PS. data.Clear() did the job. On Wednesday, July 5, 2017 at 12:17:26 PM UTC+8, Shai Almog wrote: > > Hi, > I suggest migrating to the new

[codenameone-discussions] Alternative to Jformattedtextfield

2017-07-05 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA NetBeans 8.2 Desktop OS Windows 10 Simulator 3.7 Device Samsung SCH-1545 Android V 5.0.1 I have a requirement to provide a user to enter data in a MM/YY format. Tried using Picker

[codenameone-discussions] Re: Simulator deficiencies for Unicode strings, displays ◻◻◻◻

2017-07-05 Thread Dave Dyer
Insert this into any convenient place in any program g.drawString("- 日本語のキーボード - Type Japanese Online",110,140); on the simulator, you get the above im

Re: [codenameone-discussions] Re: S3 upload

2017-07-05 Thread Gareth Murfin
OK fixed, my permissions in the AWS console for the bucket were not set to allow everyone to read and write, not sure how dangerous that is (or how you access with existing details and authenticate) but it does upload now!.. nice one ;) On 5 July 2017 at 22:25, Gareth Murfin wrote: > Weirdly I u

Re: [codenameone-discussions] Re: S3 upload

2017-07-05 Thread Gareth Murfin
Weirdly I updated the project libs and they came down (when you start a new project does it use old libs or something?) and the error has now changed to: Error response: AccessDeniedAccess Denied8D202DD01F08C7ADOTi61ymlaENhFrgxAPCw76S6DcyNCorNr+RP6VAAP11VUplbRoBGIuK8WvrL8VSnVrqKlNfV94o= On 5 Jul

[codenameone-discussions] Re: S3 upload

2017-07-05 Thread Gareth Murfin
Swapped url to https://mybucket.s3.amazonaws.com and now getting this error, still progress :-)) Im sure I read about this on stackvoerflow, the order thing, InvalidArgumentBucket POST must contain a field named 'key'. If it is specified, please check the order of the fields.keyB8AF949922C

[codenameone-discussions] Re: S3 upload

2017-07-05 Thread Gareth Murfin
just realised I have not authenticated to AWS in any way, thats probably the issue :) But I cant find any code snippets anywhere to actually do this ? Is there any AWS loggin code around I can see? Cheers, Gaz. On Wednesday, July 5, 2017 at 8:09:31 PM UTC+8, Gareth Murfin wrote: > > I also tried

[codenameone-discussions] Re: Get current IP address of device

2017-07-05 Thread shop . service . assistant
Thanks. On Wednesday, July 5, 2017 at 12:13:36 AM UTC-4, Shai Almog wrote: > > Seamlessly. > When you send a build a new version will be used and you will receive > updated libraries. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group

[codenameone-discussions] Re: S3 upload

2017-07-05 Thread Gareth Murfin
I also tried Shais code from stack oveflow, Button upload = new Button("Upload"); hi.add(upload); upload.addActionListener(e -> { String file = Capture.capturePhoto(); if(file != null) { try { String uniqueFileName = "Image" + System.currentTimeMillis() + ".jpg";

[codenameone-discussions] S3 upload

2017-07-05 Thread Gareth Murfin
I found some code that is supposed to work from stack over flow for s3 upload (shown below). However I always get this error when I try it java.io.IOException: Error writing to server at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:666) at sun.net.www.protoco

[codenameone-discussions] com\codename1\demo\chrome\gui\Main.java:26: error: lambda expressions are not supported in -source 1.5

2017-07-05 Thread Gareth Murfin
Tried chrome demo but I get this error com\codename1\demo\chrome\gui\Main.java:26: error: lambda expressions are not supported in -source 1.5 project propertires->sources->JDK 8 is selected. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions

[codenameone-discussions] How to use new gui builder?

2017-07-05 Thread Gareth Murfin
I just started a new cn1 project but when I dbl click .res it launches the old editor, libs are up to date, ideas? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send