Skip to content

codename one container with action listener

I am developing my first mobile App with Codename One. I am trying to get a container to react to an normal click action event. I have a container (note this is not a swing container, but a codename one container), which contains list elements in a box Y_axis layout that is scrollable. so far so good. these e…

Apache FOP embedded remote fonts

I’m using Apache FOP v2.1 embedded in a Java program. I’m trying to retrieve a remote font using a configuration file similar to the following: However, when I run the application to generate a PDF file from XML and XSL files it gives me an error: By checking the source code of FOP I discovered th…

JavaFX WebView in Java Swing Project

i try to use the WebView in my java project, in my code is: but the this thown a exception And yes, this is not a JavaFx application. Answer You can embed JavaFX content into a Swing application using JFXPanel. Note that for this to work correctly, you have to be careful to create and access the Swing content…

Java 8 generic Retry if specific exception

I’m finding myself writing alot of retry loops that look like I want to write a generic function that accepts a Lambda and only retries on a specific error (in the above case thats SocketTimeoutException). I’ve seen some functions that accept a Runnable which is fine, but they don’t seem to …

Proguard issue with Gson and Volley

Is there a way to skip proguard from obfuscating the Volley and Gson including the class using them ? My build.gradle file: Here the Proguard config: Errors returned for Volley: NB: Application work well without proguard. Signed APK generated with proguard but class using Volley + Gson still not working Answe…