B4J Tutorials

B4J HowTo's

Dear All,

While learning and exploring B4J, captured B4J HowTos. The B4J HowTos are either from own experience or inspired by hints from the B4J forum (Thanks to All!).

Please note, due to...
 
Last edited:

B4J and Raspberry Pi boards

Last edited:

[WebApp] Hello World Web App

In this tutorial we will develop the following web app:

SS-2014-04-10_15.45.57.png


There are three components to this solution:

Main module...
 

Attachments

  • WebAppHelloWorld.zip
    3.2 KB · Views: 3,755
Last edited:

Customized ListView

Use xCustomListView instead.
 
Last edited:

Designer Menu Items

Menus in the internal designer are declared as JSON strings.

If you have never worked with the JSON format then it is a good time to learn this format. It is simple and very popular. Short...
 
Last edited:

AsyncStreamsObject - Send and receive objects over the network

For new projects it is recommended to use B4XSerializator instead of this solution.



SS-2013-11-14_13.26.52.png


AsyncStreamsObject allows you...
 

Attachments

  • AsyncStreamsObject.zip
    4.1 KB · Views: 3,289
Last edited:

Working with JavaFX Scene Builder

This is an old and irrelevant tutorial.
 
Last edited:

Integrated B4JPackager11 - The simple way to distribute standalone UI apps

B4JPackager11 is a utility written in B4J that uses the underlying Java tools to create a standalone package that doesn't depend on any other software being installed.
It works with OpenJDK 11 and...
 

Attachments

  • jssc.zip
    38 KB · Views: 761
Last edited:

[WebApp] Chatroom - Threads, Sessions and Server events

Attachments

  • Chatroom.zip
    6.8 KB · Views: 1,668
Last edited:

[server] Run a Server on a VPS

The steps required to run a B4J server on a hosted server (such as a VPS) are:

1. Download Java...
 
Last edited:

DBUtils Example

Attachments

  • DBUtils.zip
    6.6 KB · Views: 1,740
Last edited:

[ABMaterial] For Dummies (beginner lessons)

ABMaterial For Dummies

This has often been asked for - so it is high time to produce a simple set of guidelines to help get you across the short...
 

Attachments

  • about.jpg
    399.4 KB · Views: 1,358
Last edited:

B4J CCTV example

SS-2013-11-20_10.37.00.png


This example is similar to the previous example...
 

Attachments

  • CCTV-B4A.zip
    9.8 KB · Views: 2,596
  • CCTV-B4J.zip
    1.4 KB · Views: 2,686

Working with files

The File methods in B4J are identical to B4A File methods.

Text file methods

File.WriteString - Writes the given text to a new file.
File.ReadString - Reads a file and...
 
Last edited:

[Server] Data Collection Solution - Device, Desktop and Web reports

This is an example of building a data collection solution. The solution is made of three components:
- (B4J) Server - Manages the data in a SQLite database.
- (B4A) Device client and (B4J) desktop...
 

Attachments

  • DataCollectionServer.zip
    4.7 KB · Views: 1,952
  • DataCollectionDevice.zip
    8 KB · Views: 1,709
  • DataCollectionDesktop.zip
    2.1 KB · Views: 964
Last edited:

[Server] Login System & Filters Tutorial

Attachments

  • LoginExample.zip
    11.7 KB · Views: 2,184
Last edited:

TabPane Example

SS-2016-01-07_08.27.05.png


The TabPane container allows the user to switch between different tab pages.

Working with TabPane is similar to working...
 

Attachments

  • TabPane.zip
    6.8 KB · Views: 1,840
Last edited:

Getting Started Examples

This package includes several simple examples to help developers get start with B4J.

The following examples are included:
  • Hello World - One line example that prints Hello World.
  • Guess...
 
Last edited:

[Server] SSL Connections

Starting from B4J v2.00 the server can listen to two ports, the standard insecure port (http) and a secure port (https).

The default port for http is 80 and for https is 443. These ports are used...
 
Last edited:

Non-UI Applications

B4J currently supports two types of applications: UI applications (based on JavaFX) and Non-UI applications.

Non-UI applications are standard Java applications. Usually the input to such...
 

Attachments

  • curl.zip
    2.8 KB · Views: 1,191
Last edited:
Top