running jar in jdk11
running jar in jdk11
@derez · 2019-08-10
Google Map with custom style
This method allows to set a custom style to the map. Step 1: Create the style with the wizard and save the json string in a file. Step 2: Set the style after the map is ready
@Erel · 2019-07-29
Locale aware Double to String conversion with minimum and maximum decimal control
Allows control over the minimum and maximum number of decimal places to display.
@OliverA · 2019-07-26
What you need to read the SEL file of SceneEditor
What you need to read the SEL file of SceneEditor
@Informatix · 2019-07-12
Tip - Forcing Excel Columns To Be Stored As Text
Use case: reading an Excel workbook where the column data is not consistent. Some of the cells are correctly stored as dates and some as text. Handling the various types is easy in B4J assuming that you can access the raw text value.
@Erel · 2019-07-08
Implementing Collaboration with TogetherJS [BANano]
Implementing Collaboration with TogetherJS [BANano]
@Mashiane · 2019-06-19
zip multiple files and folders using zip4j
As is stated here: https://www.b4x.com/android/forum/threads/zip-multiple-folders-and-files.98548/, I need to zip multiple files and folders into one zip file. zip4j is an easy to use library. The code is very simple. I only implemented the zip part.
@xulihang · 2019-06-05
Creating a Random Dummy Data Generator
Creating a Random Dummy Data Generator
@Mashiane · 2019-05-23
Text File To List Variable
Text File To List Variable
@Mashiane · 2019-05-23
Initializing JavaObject
Initializing JavaObject
@Daestrum · 2019-05-21
Customlistview with multiple selection like DBgrid
Many years ago I bought a very good library for VB6: TrueDbGrid. The multiple rows selection method of this grid was very simple and intuitive, so I tried to replicate it with the xCustomlistview. It was based on use of SHIFT and CONTROL keys to select one ore more rows in sequence or not.This is a quick and dirty procedure but can be a starting point and certainly it can be improved.
@Nicola Ciaramellano · 2019-05-07
Executing code without using BANano.Eval [BANano]
Executing code without using BANano.Eval [BANano]
@Mashiane · 2019-05-01
Convert Exception Stack Trace To String
I want to give users a chance to send application crashes to be logged on a website so I need to capture the stack trace to a string. The ExceptionToString Sub does that.
@keirS · 2019-04-28
ScrollPane helper code module
ScrollPane helper code module
@knutf · 2019-04-22
Save changes before closing with a resumable sub
Save changes before closing with a resumable sub
@Erel · 2019-04-09
B4XDialog - Add keyboard handling
This code allows the user to close the dialog with ''escape'' or one of the following keys: Y, N or C.
@Erel · 2019-04-07
Sharing the goodness: Useful methods
Sharing the goodness: Useful methods
@Mashiane · 2019-03-11
Running JS expressions on the fly
In trying to solve another problem I stumbled into what might be useful to others. It seems to be the minimum required to run scripts on the fly. I have attached a project "CodeRunner" that uses this method. It extends this snippet to run B4X code on the fly. This is done in about 500 lines of code, without external libraries.
@William Lancee · 2019-03-04
Flip ImageView
Show mirrored/reflected images correctly (and in a readable way)
@moster67 · 2019-02-23
Cool zooming effect
Found some code ages ago when I was looking into how to zoom images. It uses a javafx.geometry.Rectangle2D object as a ViewPort and a method of the ImageView which sets the ViewPort (called setViewport). I haven''t seen this available in B4J so I adapted the code to work with B4J. This zooming effect can probably be made in other ways by just using native B4J skipping calling not exposed objects/methods with JavaObject.
@moster67 · 2019-02-17
ContextMenu on Nodes/Controls which do not support it
ContextMenu on Nodes/Controls which do not support it
@moster67 · 2019-02-14
Tweak the HTMLEditor toolbars AFTER loading a modal
I needed to edit some HTML text with a few basic commands (bold, underline etc) with the HTMLEditor in a modal window on top of the main form. I can simplify the HTMLEditor''s toolbar by hiding the top row and all the ComboBoxes in the lower one with custom routines (not shown below).
@Crock · 2019-01-31
Garbage collection
For those of you interested in GC here is a class I have in a B4J server
@Jmu5667 · 2019-01-30
Clock on Canvas [ABMaterial]
Clock on Canvas [ABMaterial]
@rwblinn · 2019-01-29
Find user documents folder
Find user documents folder. Tested on Windows and Mac only.
@Erel · 2019-01-03
jPOI clear a work sheet
I needed a way to re-use an Excel worksheet. The existing B4J library has no methods for this, and I couldn''t find anything related on this forum. So I used the Java object to implement what I needed. The solution is based on StackOverflow suggestions.
@William Lancee · 2018-12-27
Autoupdate APP
I needed a auto-update system for jar application. Because my last project work alot of PC in my company. Eaxh time; I must update with manually; Therefore ; I prepared small NON-UI app.
@Tayfur · 2018-12-26
Something to do instead off StartMessageLoop in UI Application [No consola].
Something to do instead off StartMessageLoop in UI Application [No consola].
@netsistemas · 2018-12-25
ListView scroll changed event for lazyload
This is useful to lazy load a listview, as customlistview costs more memory. This is the reference webpage: https://www.superglobals.net/javafx-listview-lazy-loading/
@xulihang · 2018-12-21
B4J Spinner - Simple
This is a simple spinner for B4j (though it would easily port to B4a) based on a canvas object. I ''looks'' more like the spinners used in B4A than the combobox offering in B4J. The Spinner continuously rotates around the string array data provided and outputs the center value as an ''answer'' on each mouse click. The background image size needs to be scaled to match the cvs size you use.
@rodmcm · 2018-12-20