codenameone

Cannot add Gradle dependencies to my Codename One Project

自古美人都是妖i 提交于 2019-12-06 14:50:59
I'm building a simple online app with Netbeans using Codename One, and I wanted to use Ably for internet communication, but I'm having trouble importing the Ably API. Ably's site tells me that I need to add the line compile 'io.ably:ably-java:1.0.0' to the build.gradle dependencies section, but there is no build.gradle in my project. After seeing this question , I added a new build hint with gradleDependencies as the key and compile 'io.ably:ably-java:1.0.0' as the value. When I try to run the project, though, it still fails and tells me error: package io.ably.lib.types does not exist import

Errors with Codename One “Send iOS Build” and “Send Android Build”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 14:50:14
I had no problem with "Build Project"/"Rebuid Project" using IntelliJ IDEA for my Codename One project. Today, I just started to "Send iOS Build" and "Send Android Build" and got a spew of errors. For the one below, I cannot recognize why it failed, or where to find the "compiler error output" as described: For this next one, I can recognize it is referring to the java.time package (Java 8): I saw somewhere that I should include the "java.version=8" and I already did. Please help me to get my iOS and Android builds. Thanks! From the StackTrace above, you are using some java API that Codename

Codename one gui builder does not work

你离开我真会死。 提交于 2019-12-06 14:15:59
问题 I am trying to use code name one new GUI designer tool. Version - Codename one GUI builder 3.7.3 Eclipse - Used Oxygen and Mars both. Java - tried 7 and 8 both. My problem is i cannot add any containers or any component to the design area. Once i add one it suddenly disappear. ( Simply cannot create any UI) I cannot change the layout even.Always it shows Layered layout and cannot change. I have created a java 7 as well as java 8 code name projects but nothing works. I followed - https://www

onTop side menu in the rightmost side of the app

 ̄綄美尐妖づ 提交于 2019-12-06 14:01:35
By default, Codename One onTop side menu is on the left of the title area. Is it possible to have it on the right instead? Command services = new Command(" Services", servicesIcon) { @Override public void actionPerformed(ActionEvent evt) { } }; f.getToolbar().addCommandToSideMenu(services); Currently we don't support putting the side menu on the right side of the UI I think there is an RFE on that but I'm not sure. It's something we need to have for RTL/bidi (Right to left languages) which expect the UI to reverse. 来源: https://stackoverflow.com/questions/48063194/ontop-side-menu-in-the

Build problems with CodenameOneCameraKit.cn1lib

喜欢而已 提交于 2019-12-06 13:53:08
I am trying to run the demo program for the CodenameOne CameraKit: https://github.com/codenameone/CameraKitDemo/ after reading https://www.codenameone.com/blog/camerakit-low-level-camera-api.html It compiles and runs in the simulator, but when I send it to the server to build, it gives me a build error. Am I missing something? I am using the IntelliJ IDE: IntelliJ IDEA 2018.1.1 (Community Edition) Build #IC-181.4445.78, built on April 9, 2018 JRE: 1.8.0_152-release-1136-b27 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.3 Latest Codename One plugin Here follows the code,

Codename One: Strange toolbar animation on form change

馋奶兔 提交于 2019-12-06 13:43:58
Since adding a global Toolbar to the forms there is a strange animation bug (?) when changing forms. At hitting a Button at FormA that will invoke FormB.show() the title has an animation the lets the new form stutter in the toolbar area from the right to the left. After googling I found this : This is pretty much the problem I face at the toolbar, only difference is the toolbar Logo I added to the center is stuttering from the right to the left to its place. After the animation is done, the form looks just like it should. In the main I do this: Toolbar.setGlobalToolbar(true); In every Form I

Only half of the letters of the component are seen - cn1

孤者浪人 提交于 2019-12-06 12:42:45
I used bold ttf font and it works but only half of the letters are seen. Code: public void start() { if (current != null) { current.show(); return; } Label testLabel = new Label("Bold Font Not Working"); testLabel.setUIID("smallBold"); Form splashForm = new Form(new BorderLayout()); splashForm.add(BorderLayout.CENTER, BoxLayout.encloseY(testLabel)); splashForm.show(); splashForm.revalidate(); } UIID in theme for unselected, selected and pressed style How it looks now However without wrapping it in boxlayout or flowlayout and directly adding it in the form with borderlayout works. P.S if the

Codename One - AutoComplete popup window location

最后都变了- 提交于 2019-12-06 12:28:56
On my GUI built app I am using the AutoComplete TextField for searching for values. After the user taps the "search" button, the AutoComplete appears. When I enter something, it works well, and the popup window appears showing the matched values right at the bottom of the field. But if I perform another search, the popup window appears further down. On a third search, it appears even further, and on a fourth search, it is gone from the window. I am attaching a screenshot of the third search. This seems to be related to this bug: https://github.com/codenameone/CodenameOne/issues/1687 or maybe

Codename One Back Command on left and Menu on Right

家住魔仙堡 提交于 2019-12-06 12:19:44
i am trying to make an app in Codename one where i want to create a handburger menu on the right side at the top of the screen and a back button on the left side, but cannot get it to work I know it can be done where you have a handburger menu on the left side and a button on the right side. I made a picture of how I want it to look like. The back button is added in paint and not through the code. Picture of app example below is the code that I have used to get the menu on the right side. public class MainForm { public static Form mainForm; Command cmd_back, cmd_AboutTheApp; private enum

Internal compiler error when UseDotNetNativeToolchain is true

走远了吗. 提交于 2019-12-06 12:14:05
I have a UWP app that compiles successfully if I have UseDotNetNativeToolchain off. But when I turn it on, it gives me the cryptic error: Internal compiler error: Object reference not set to an instance of an object. UWPApp C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets 887 Build This is all it gives me. What could be causing this? How can I drill down on this. Using VS2015 Here is the full build output in case that helps: https://gist.github.com/shannah/e24fe8456313fb9ad98577c9a812f357 The solution to this problem was to disable optimization in a few