B4J Tutorials

[B4X] Modules, Files, Groups and Folders

The latest IDE update adds support for grouping files and modules.

Groups

SS-2017-11-27_12.25.00.png


You can add groups with a right click...
 
Last edited:

[B4X] Using/running B4A and/or B4J on 64 bit Linux Mint 20.2 Cinnamon with 64 bit Wine

*** Contents ***
Intro
Acknowledgements
Disclaimer
Environment
Conventions used in this post
Making it work
Compiling and running your programs
A semi-automated way to get your B4J UI...
 

Attachments

  • linuxify screenshot.PNG
    linuxify screenshot.PNG
    21.1 KB · Views: 533
  • linuxify screenshot.PNG
    linuxify screenshot.PNG
    21.1 KB · Views: 476
  • CopyFilesForLinuxify.zip
    3.1 KB · Views: 492
  • Linuxify.zip
    26.3 KB · Views: 491
Last edited:

[Server] CCTV Server

In a previous example we shown you how you can use B4J to create a desktop application that connects to a number of devices and shows the camera frames: B4J CCTV example

In this example we...
 

Attachments

  • CCTV-Client.zip
    9.7 KB · Views: 1,653
  • CCTVServer.zip
    2.5 KB · Views: 1,641
Last edited:

WebView

Been trying WebView and WebEngine.

Here's a little example of using both. (requires additional library to run)

Shows how to retrieve the hyperlinks in a page and put them in a comboBox, also...
 

Attachments

  • webview.zip
    1.9 KB · Views: 1,991
  • webview2.zip
    2.6 KB · Views: 1,196
  • webview3.zip
    3.6 KB · Views: 1,141
  • webview4.zip
    3.8 KB · Views: 1,297
Last edited:

[WebApp][IoT] PiFace (Raspberry Pi) Server Example

SS-2014-04-17_10.51.25.png


This example demonstrates how a Raspberry Pi board can be controlled from the browser.

It tracks the switches state and...
 

Attachments

  • PiFaceServer.zip
    6 KB · Views: 1,307

Share encrypted data with B4A

For new projects it is recommended to use B4XEncryption to create a cross platform solution.

RandomAccessFile library v1.10 includes the beloved ReadEncrypredObject /...
 
Last edited:

Open external documents

jFX.ShowExternalDocument method allows you to open external documents with the default installed app.

It expects a single parameter which is the document or resource Uri (link).

You can use...
 

[Server] Table report with Export feature

Attachments

  • TableExample.zip
    5.7 KB · Views: 1,107

Raspberry Pi with Java 11

Running UI apps on Raspberry Pi with Java 11 is relatively simple.

1. Download Liberica JDK.
Download the lite version...
 
Last edited:

Raspberry Pi B4J UI Applications with Liberica JDK

Tutorial Raspberry Pi B4J UI Applications with Liberica JDK v20180513

Objectives
To build B4J UI applications, using the Liberica JDK10, running on the Raspberry Pi.
This tutorial covers...
 

Attachments

  • B4JHowToRPiLiberica.zip
    189.4 KB · Views: 729
Last edited:

[IoT] Raspberry 2 & B4J from the scratch...

This tutorial is about:

- Installing a brand new RaspBerry 2 (RB) (older models will do, too)
- configure WiFi on the RB
- get remote access to the RB from your PC via "Putty"
- share files...
 
Last edited:

💡 JDBCSQL Connector/J - Connect directly to MySQL, MSSQL, PostgreSQL, MariaDB and Oracle databases

Hello fellow B4X'ers,
Here is some example code for connecting your B4J projects to 5 different types of database engines, this tutorial is for learning purposes only and nothing else...
 

Attachments

  • Database4ConnectionTypes.zip
    1.6 KB · Views: 2,108
  • Database5ConnectionTypes.zip
    1.6 KB · Views: 2,432
Last edited:

Parsing huge text files

The JVM (Java Virtual Machine) performance is quite amazing.

This means that we can use B4J to build apps that handle huge files.
I downloaded a 3.7GB log file from this server. Each line...
 

BANano for Dummies by Example

Ola

BANAno4Dummies

TERMS OF ENGAGEMENT: Please DO NOT POST QUESTIONS ON THIS THREAD.

I AM ONLY DOING THIS DUE TO THE NUMEROUS REQUESTS I HAVE RECEIVED TO DO IT. I AM NOT A BANANO...
 

Attachments

  • DummiesLikeMe01.zip
    1.2 KB · Views: 1,205
Last edited:

[Server] Regex Tool

Attachments

  • regex.zip
    2.4 KB · Views: 958

[server] Automatic Reconnecting WebSocket

When working with WebSocket handlers the client maintains an online connection. The connection is expected to be kept alive for as long as needed.

However there are cases where the connection can...
 

Attachments

  • GuessMyNumberWithReconnection.zip
    9.4 KB · Views: 1,344

[ABMaterial] B4JS - 00 Introduction

After a delay of more of a year working on other ABM stuff, I finaly got back on track with B4JS. I will make a series of tutorials explaining how it works. This post would be the main entry...
 
Last edited:

B4J Arduino Demo

Here's a really simple demonstration of connecting an Arduino Uno to an app written in B4J.

You will need to modify the code around line 25 to reflect the correct COM Port that your Arduino is...
 

Attachments

  • B4J_Arduino_V2.zip
    1.5 KB · Views: 876
Last edited:

SplitPane Tutorial

B4J v4.00 adds support for SplitPane container. SplitPane is a container made of two or more sections divided with movable dividers.

The SplitPane orientation is either horizontal or vertical...
 

Attachments

  • SplitPane.zip
    8.5 KB · Views: 1,668

[ABMaterial] CustomJQPlot

I was curious as to whether I would be able to create my first ABMaterial component. Well, the journey has been very interesting.

This comprises of more than 60 examples of setting the chart...
 

Attachments

  • CustomJQPlot.bas
    24 KB · Views: 532
Last edited:
Top