B4J Tutorials

WebGL library, working with physics engines - Part 1

Hi all,

here a simple shooter game using B4J WebGL libary and cannon.js physic engine.

Note that really I use cannon-es that is a port of cannon.js to use inside Javascript ES6 modules.

Note...
 

Attachments

  • jWebGL_Physics_Engines.zip
    8.6 KB · Views: 272
  • Screenshot 2025-03-17 020320.jpg
    244.9 KB · Views: 313
  • Screenshot 2025-03-17 020910.jpg
    257.3 KB · Views: 294
  • Screenshot 2025-03-17 021855.jpg
    164 KB · Views: 324
Last edited:

[PyBridge][server] Using PyBridge in web apps

PyBridge must be accessed from a single thread. In server solutions, each handler runs in its own thread so we need to add some barriers to ensure proper usage.

The way to implement it is by...
 

Attachments

  • ServerWithPyBridge.zip
    14.8 KB · Views: 289

[PyBridge] Communicating with Raspberry Pi

This sophisticated project does one thing - the user clicks on a hardware button, connected to the RPi, and a notification appears on the PC.



The setup:
RPi running Mosquitto broker...
 
Last edited:

Make a simple 3D game with WebGL library, with gravity and collisions in less than 300 lines of code.

Hi all,

this code will show how to make a simple 3D game, with gravity and collisions by code without use any physics engine.

I want to remember that with WebGL library you can use more than one...
 

Attachments

  • jWebGL_SimpleGame.zip
    292.8 KB · Views: 305
  • Screenshot 2025-03-11 150808.jpg
    160.6 KB · Views: 348
Last edited:

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:

Raspberry Pi 5 - first steps

Getting the RPi 5 to work with B4J is very simple.

I've tested it with the recommended 64 bit Raspbian OS (bookworm).

1. Download and unpack the Linux ARM Full JDK (21)...
 

Shrinking that SQLite JDBC library!

NOTE: This isnt recommened for everyone, this is just something that works for me. Removing support for specific platforms could cause your app to stop working.

I use SQLite for a lot of...
 
Last edited:

[B4X] [PyBridge] Desktop - Mobile Communication based on BLE (Bluetooth Low Energy)

Attachments

  • B4XPeripheral.zip
    181.1 KB · Views: 282
  • B4JCentral.zip
    4.6 KB · Views: 298

Deutsche Post Internetmarke - get Stamps per Api

This Thread is about the german Post and their free Api Service for Postalstamps and other Services...
 
Last edited:

[Web][SithasoDaisy5] Designing Web Forms with SDUIPreferences - Part 1

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
    69.6 KB · Views: 413
Last edited:

Cache for WebApp was keeping previous version of .js file - How to fix

This was the first time I faced something like this and it was Chrome's fault. Here is what happened:

I added in a .js file a new javascript function. When I tried to call it, Chrome was saying...
 

[Web][SithasoDaisy5] Designing Forms with the Abstract Designer

Hi Fam

SithasoDaisy5 Demo

Before you start this tutorial, please ensure that your dev environment is setup by following this tutorial...
 
Last edited:

FXThemes

Now I have a windows 11 PC and thanks to a prod from one of @Cableguy posts on another thread, I finally got round to looking at an alternative to my Replacement Titlebar lib.

This...
 
Last edited:

jBluetooth under Linux: also works

Last edited:

Creating Linux DEB-package for GUI B4J app

This tutorial is made for Linux JDK14 set Java + JavaFX for B4J practically, AI suggestions were partially OK only.
The .jar app file is compiled at Windows developer host.

Building a DEB...
 

Attachments

  • TempDownload.png
    10.5 KB · Views: 279
Last edited:

B4J-Bridge dockerimage

[PyBridge] Linear regression with scikit learn

Attachments

  • Project.zip
    27 KB · Views: 252

[PyBridge] Tips to make life easier

1, Download VSCode to edit the Python source files (you get hints etc)
2, Put the Python source code in files directory. (set external tool to VSCode for easy editing)
3, Run the code from...
 
Last edited:

MathArt

Sure you will figure it out. Four rotating/pivoting arms of different length and rotating at different speeds (some CW and some CCW) to make all kinds of interesting drawings. Change the speed /...
 

Attachments

  • b4jMathArt.zip
    2.9 KB · Views: 294
Cookies are required to use this site. You must accept them to continue using the site. Learn more…