Codename one Simulators sizes do not fit within the window - codenameone

While developing app with codename one with Netbeans IDE, I was running into this issue where the simulators were not usable except iphone 3. If I choose the simulator to be iPhone 5 or 6 or 6 plus, the simulator is so huge and only part of it appears on the screen and I couldn't even scroll.
Is there anyway to make the simulator to fit within the window sizes? I tried on Mac and Windows and I experienced the same result.
Please advise.

Uncheck the Scrollable option under the Simulalator menu. It's on by default since some artifacts might appear during scaling but for large skins there is no alternative.

Related

Codenameone: Picker on iPad no longer has any buttons

Starting with the build of my App today the native Picker-Dialog on my iPad (iOS 13.3.1 - real Device - no simulator) don't have buttons any more (see Screenshot). The buttons are there on my iPhone 11 (iOS 13.3.1) with the same build. The buttons have been there with a build earlier this week.
Are there any changes in CN1 which could cause this behaviour?
Without these Buttons a new selection cannot be confirmed.
I'm assuming this is a native picker and not the lightweight picker which is more consistently reliable.
This is probably a bug but to help us quantify it please check if it's a bug triggered by the migration to xcode 11.3: https://www.codenameone.com/blog/xcode-11-migration-now-default.html
Assuming it is you can use xcode 10.1 for now. To avoid such issues I would suggest using the lightweight mode of the picker which is more consistently reliable across platforms.

Can JavaFX applications run on Cell Phones?

I have a Java Swing based video game (though more like Java AWT, since most of it is graphics movement of icons), that I would like to port to a Cell Phone. Android, iOS, or even Windows Phone.
I have read that JavaFX supports this. Though the posts I read were a few years old. Does anyone know status of JavaFX on current versions of Android, iOS, or even Windows Phone?
Thanks!
JavaFX requires a JRE to run on. Neither of those three mobile platforms support this natively. So you will need to return to a framework that allows you to do exactly that.
The most positive lead at the moment seems to be the JavaFXPorts from the Gluon project. However as far as I am aware, this currently only supports iOS and Android.

Windows 8 tablet running regular exe. How to make things bigger?

We want to run our regular forms applications on Windows 8 Pro tablets. They actually run without any problem, but they look very very small on tablet' s screen. The tablet runs under 1024x768 or 1280x800 screen resolutions and that' s all it supports.
1) A solution might be to run our exe application inside another third party exe, so that it becomes possible to pinch(in order to zoom in/out) Is it possible and do you know any software like this?
2) In Android, there exists LCDDensity like apps, so that people can change the screen resolutions freely. Is there any Windows 8 application that does the same?
3) Any other ideas to achieve this?
Try to play with Form property AutoScaleMode, set it to DPI.

Silverlight on Windows 8

I'm running my SL5 application (that has been working well so far) on Windows 8, and it is not going well. I have a background picture which usually does not render correctly, almost everytime I navigate my background (including the controls over it) just goes white till I resize IE, then it re-paints (what makes it stranger is that the parts that goes white is outside of the navigation frame, why is it getting repainted). (Chrome renders fine)
When I run my application out-of-browser my login screen pops up and works correctly but after the login screen closes it looks like the gray background of the login screen remains behind and I cannot click on anything, resizing makes no difference, it looks like every control has been disabled.
I have updated my NVidia Drivers to the latest, don't think its a display driver issue though.
Anyone else had these issues? Anyone else running SL5 fine on windows 8?
(Looks like I'll be downgrading back to windows 7 soon)
Silverlight should run great on any desktop browser in Windows 8, just like it does on Windows 7, Vista, and Mac. The underlying runtime is 100% the same. That does not mean you may not find a glitch with a graphics driver, but it means you shouldn't - and likely won't.
I did want to make a clarifying point, however, that Silverlight is not part of the Modern Internet Explorer (the Metro Internet Explorer). Only a subset of Flash is supported and that is only supported on white-listed sites.
This means Silverlight solutions that you might have expected to run on the Surface RT (running Windows RT - or Windows on Arm) will not run (as there is no SL runtime). And, I think we can all have a collective moan and ask, together, "Why not?" To which there is no acceptable answer.
The theoretical goal, of course, is to write native Windows 8 apps. If you want to write something web based you should write it in HTML5. That's the official word. I think we all know that HTML5 has a ways to go in order to catch Silverlight, but it is what it is. Can't change some things.
I have had no issues with any of my Silverlight 5 apps running on Windows 8 - I focus mainly on line of business apps but have some graphical and otherwise apps that run fine as well.
I'm only marking this as the answer to close the case, what the actual answer was to the problem we will never know. The solution: automatic updates. After much hassles with getting automatic updates to actually go through, my machine is now working well.

App runs very slow on ios6 devices

I have an app with deployment target iOS 3.0. It runs smooth as silk on all devices that haven't been upgraded to iOS6. However, on iOS6, animations are laggy, scrolling tableviews is slow (doesn't matter if they contain a lot of data or not, very inconsistent).
I have been going through the code and can't seem to find anything that causes this laggyness. ARC is disabled for this project (because it still supports iOS3.0), I have changed the deployment target to iOS6 to see if that'd make any change but it didn't.
Any developers with a similar problem? I'm starting to think it may be a setting in my Xcode project, as the laggyness is very inconsistent; Some screen work smooth on iPhone 5, while the same screens lag on iPhone 4 (and vice versa!)
Greetings
I found the problem: there was a background image "stripe.png" that was repeated via
[bgView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:#"stripe.png"]]];
The stripe.png file was 3x3 in size. A #2x version was provided, but it had the same size (3x3). When I made a 6x6 version of it, everything runs smooth again.
Always make your #2x images double the size!

Resources