5,010 questions
1
vote
1
answer
69
views
Bluetooth Extension Codename One not working as expected
I have installed the Bluetooth extension from Codename One Settings and follow the demo example, to get list of devices but cannot execute the "start scan" process
hi.add(new Button(new ...
1
vote
1
answer
68
views
How can I avoid dropping a button on the wrong plane?
I am using a GridLayout on the GlassPane for my small ScaleImageButtons. I have a smaller GridLayout on the Content Pane. The GlassPane containers are set to DropTarget(false), and I use the following ...
2
votes
1
answer
49
views
L10N Localization res file being deleted in CN1 maven project
I have a L10N Localization res file and wonder where do people put it in their CN1 maven project. Docs are slim to non existant. When I put it in the common\target\classes folder of a netbean CN1 ...
1
vote
1
answer
29
views
Is there a way to make a SpanLabel easier to grab with a mouse on the Desktop to drag it to a new location?
As I continue testing my app I find I am having trouble "grabbing" the SpanLabels to move them to a new container on my grid. I cannot grab the SpanLabel unless the cursor is exactly in the ...
1
vote
1
answer
53
views
How can I use code to set my initial Form size when my app opens?
Shai and the Codename One team are working on providing better access to Desktop settings for javase builds, but has anyone had success setting the JFrame size in a javase build for Windows using code ...
-4
votes
1
answer
113
views
Some Videos Does not Fit in MediaPlayer
Some videos like this which was recorded on Android 15 device doesn't fit in MediaPlayer.
In simulator it need to be scrolled up & down to see the full video as in the following screenshot;
In ...
1
vote
0
answers
76
views
Media & MediaPlayer not Playing Audio & Video in Android 15
Media & MediaPlayer are playing audios & videos in simulator & Android 10 but they don't in Android 15.
I tried using CN1 version 7.0.211 and the following test case:
package com.example....
Best practices
0
votes
12
replies
189
views
Has anyone developed a method to set the size of the first form in a codename one/javase app being built for Windows Desktop?
I have started testing my code on both macOS and Windows Desktops before I build for the iPad. The macOS build opens at almost iPad Mini size and everything in the app is useable. When the build opens ...
1
vote
1
answer
62
views
Picker, ContactsModel & UIBuilder Warnings in Android Studio Local Builds
In Codename One version 7.0.210, Android Studio is detecting the following warnings when building debug & release apps.
/{project path}/myapp/android/target/myapp-android-1.0-SNAPSHOT-android-...
1
vote
1
answer
67
views
Has anyone encountered an Index Out Of Bounds error working with Drag and DropTarget Grids?
I am using Drag and Drop to move characters around the screen, recording the location on the screen, then running the movement of the characters showing the characters moving to each grid location. ...
2
votes
1
answer
56
views
How to initialize codenameone javase app so it nearly fills the screen on a mac or a windows PC
Using the codenameone bare bones java app here and launching the javase build on a mac or a windows PC, how to have the app launch in a window with a width and height that fills 90% of the desktop ...
1
vote
1
answer
26
views
Extend component to overflow beyond container? #3951
Is it possible to style component to overflow beyond the container bounds, something like this -
The start button has an icon and blue background which overflows beyond the boundaries of the toolbar.
...
1
vote
0
answers
54
views
ToastBar Overlayed by Android Navigation Buttons
In Android 15, ToastBar is overlayed by navigation buttons. The following is a test case
Form form = new Form("Hi World", BoxLayout.y());
Button helloButton = new Button("Hello ...
1
vote
1
answer
42
views
Is there an acceptable way to append spaces to a String in Codename One?
I tried to use StringBuilder.append to add blank spaces to a string. The code didn't work and I deleted it from the app, but I started getting an
[INFO] Warning: com.touchlineassistant.myapp....
1
vote
1
answer
44
views
Form setSafeArea(true) Affects Status Bar
Setting form.setSafeArea enables components to fit at the bottom without being overlayed by Android navigation buttons.
But this seems to push Toolbar downwards affecting background color of the ...