B4J Tutorials

B4LinuxInstall script to use B4X tools in linux

This is a Bash shell script that allows installing B4J and B4A in linux systems, along with their required dependencies. It is very functional. But for now only Ubuntu is fully...
 
Last edited:

[WebApp] Concurrent access to SQLite databases

SQLite databases are very easy to use as they don't require any additional software or configuration.

SQLite support for concurrent access is not comparable to server based databases such as...
 
Last edited:

Building a mini "Email based server"

This example uses jNet library together with the MailParser module to build a program that responds to emails.

SS-2013-11-27_10.48.58.png


Although...
 

Attachments

  • EmailServer.zip
    3.5 KB · Views: 1,963

SithasoDaisy TailwindCSS UI Toolkit: Q & A

Hi there

NB: Where possible, please include a simple project that demonstrates your use case.

Do you have any questions about SithasoDaisy UI Toolkit?

You can shoot it here...
 
Last edited:

[Server] Online Json Tree Example

Attachments

  • ServerJsonTree.zip
    7.7 KB · Views: 1,534
Last edited:

Nodes / Views / Controls - Tips

I'll try to collect tips related to the UI elements in this thread.

In B4J (and JavaFX) the main UI element is named Node. It is similar to Basic4android View or Basic4ppc (.Net) Control.

B4J...
 

Modal dialogs

B4J allows you to show modal dialogs or modal forms.
The difference between a modal form to non-modal form is that with a modal form the calling code will only continue after the form is closed...
 

Attachments

  • ModalExample.zip
    2 KB · Views: 2,040
Last edited:

[example] [B4X] Control the desktop with your phone

This example shows how simple it is to create network solutions with B4J, B4A and B4i.

In this case the network communication is based on UDP.

It implements a remote desktop mouse, where the...
 

Attachments

  • RemoteDesktopControl_B4J.zip
    2.6 KB · Views: 2,134
  • RemoteDesktopControl_B4A.zip
    9.3 KB · Views: 2,131
  • RemoteDesktopControl_B4i.zip
    4.1 KB · Views: 1,381
Last edited:

[IoT][RPi] - Raspberry Pi Bluetooth Tutorial

Using the new jBluetooth library it is possible to communicate with Raspberry Pi devices over Bluetooth.

Bluetooth can be very useful in places where there is no local network.

The...
 

Attachments

  • bluecove_rpi_jars.zip
    449.8 KB · Views: 1,381
  • RPi_Bluetooth_B4J.zip
    1.4 KB · Views: 1,249
  • RPi_Bluetooth_B4A.zip
    9.7 KB · Views: 1,084

[B4X] Additional libraries folder

The additional libraries folder can be organized in a way that allows sharing cross platform libraries between B4A, B4J and B4i.

From now on, the recommended way to organize the additional...
 
Last edited:

Barcodes - QR Codes, PDF417, Aztec Codes, Code11, Code39, Code93, EAN8, EAN13, and Code128

This is my first attempt at B4J. Have not tried to do anything special to the layout etc. The aim was to get back the correct binary strings to draw Code11, Code39, Code93, EAN8 and EAN13 barcodes...
 

Attachments

  • BARCODES.zip
    181.9 KB · Views: 1,263
Last edited:

Print with PrintHtml tool

PrintHtml is a small Windows utility that you can use to print from your app.

First you should download PrintHtml.exe and also the DHTML Editing Control...
 

Attachments

  • Print.zip
    1.4 KB · Views: 1,859

[Server] Performance measures

B4J server library is based on an open source project named Jetty.
Jetty server performance is excellent which means that B4J server performance is also excellent.

The following numbers are the...
 

Floating ContextMenu using jNativeHookB4j

This is an example of using @Roycefer 's jNativeHook to monitor all mouse events, even outside of the current app. It uses a ContextMenu to replicate the right click functionality. Default...
 

Attachments

  • FloatingContextMenu-0-7.zip
    7.1 KB · Views: 477
  • cmenu.css.zip
    1 KB · Views: 472
  • FloatingContextMenu-0-8-6.zip
    10.3 KB · Views: 523
  • Test - cmenu.css.zip
    1 KB · Views: 445
  • FCMTest1.zip
    10.3 KB · Views: 450
Last edited:

[ABMaterial/ABMServer] Mini Template for absolute beginners (update 2022/09/08)

Hi all,

Since the lockdown everywhere, a lot of B4X users seem to want to learn ABM to make WebApps in B4J. That is great! :)

However, some seem to struggle a lot to get started. I understand...
 

Attachments

  • 1588503676773.png
    1588503676773.png
    8.3 KB · Views: 4,228
  • 1588532671395.png
    1588532671395.png
    15 KB · Views: 4,175
Last edited:

Msgbox / InputList

Simple message box:
B4X:
fx.Msgbox(MainForm, "This is the message", "This is the title")
SS-2015-12-17_12.19.19.png


Message box with result:
B4X:
...
 

CSS Example

Attachments

  • CSSExample.zip
    52.9 KB · Views: 2,586
Last edited:

Using JavaObject and JavaFx - LineChart

To help with my own learning I have played with JavaObject and JavaFX to create linecharts.

Here are the 3 examples I have made I have ported the code directly from the Oracle...
 

Attachments

  • 3-1.zip
    1.1 KB · Views: 1,050
  • 3-4.zip
    1.2 KB · Views: 844
  • 3-5.zip
    1.4 KB · Views: 951
Last edited:

[Server] Send and receive objects

This is an old example. Better use B4XSerializator to serialize objects.

One of the nice things about using B4J server as the backend of B4A applications is that you can send and receive...
 
Last edited:

TreeView Tutorial

B4J v1.05 adds support for the TreeView node.

TreeView as it name suggests visualizes a tree structure.

Each item in the TreeView is a TreeItem (or CheckBoxTreeItem). Each item has a list of...
 
Top