B4J Tutorials

Anyone for Another game of Chess....(lol)

Just for the fun of it - I like to see what the UI of some Java projects looks like and how it reacts when in use. The easiest way (at least for me) is to kick start it via a simple B4J project...
 

Attachments

  • b4jMyChess.zip
    1.6 KB · Views: 141
  • ChessPieces.zip
    40.8 KB · Views: 134
  • MyChess.jar
    46 KB · Views: 124
Last edited:

Anyone for a game of Chess...

Go to post #2 - all in B4J and no external lib required

It is based on this Github posting
 
Last edited:

B4Xsources: a B4X source code viewer using command line tools to extract and decompile the files.

In this tutorial you can learn how to extract files from a B4Xlib or Jar file.
1678873413355.png

You can select in the file menu the library type to open and extract.
1678873453507.png

For each...
 

Consuming http streams

Standard http communication is made of a request being sent from the client to the server and the server response sent back to the client.
As I'm sure you know you should use OkHttpUtils2 for such...
 

Attachments

  • MjpegWithOkHttp.zip
    4.5 KB · Views: 703
Last edited:

[SithasoDaisy] Using EmailJS rest api to send emails

Hi there

The purpose of this tutorial is showing the functionality of sending emails using EmailJS.

This was discussed on this link...
 

Simple Layout Designer (SLD) B4J application.

Simple Layout Designer (SLD) B4J application.

Check out message #31 for the latest update!

In this tutorial you can learn how to create a layout using the Simple...
 

Attachments

  • sld00.png
    sld00.png
    26.5 KB · Views: 1,065
  • simple_layout_designer.zip
    270.5 KB · Views: 277
  • sld_load_example.zip
    115.4 KB · Views: 246
Last edited:

Create a crypto trading bot using ccxt

_Bot_Template.jpg



Hello all,

I made a template to save time when creating a crypto trading bot with B4j. I'm posting this "as-is" for now, since I'm currently working on Tradingview's pine...
 

Attachments

  • _Bot_Template.zip
    242.9 KB · Views: 163

The easy way to install your B4J application on Linux

This is meant to be a tutorial for you to easily distribute your applications developed in linux.
Through B4JPackager11 and B4JPackager v1.50 the excellent tool developed by Erel gives us the...
 

[B4X] Faces, Assemblies, Traces, and Points. Standard Classes for creating a story.

Since retiring some time ago, I have been thinking about creating stories that involve
computer operated robots which carry out actions and speech - like actors in a drama.

It would have at least...
 

Attachments

  • Tutor_A.zip
    17.9 KB · Views: 145
Last edited:

[B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server...
 

Attachments

  • PHPExamples.zip
    6.1 KB · Views: 473
Last edited:

[BANano] Calling JavaScript methods with parameters explained

Suppose we use the plotly library (https://plotly.com) as an example to add a chart.

When we look at their example on how to use it:
B4X:
Plotly.newPlot( "chart", [{
    x: [1, 2, 3, 4, 5]...
 
Last edited:

[B4X, B4xPages]Using the Standard B4XPreferenceDialog Library with B4XPages to Create Effective Forms

If you are in a hurry, or if you don't want to design your own form, you can use the standard PreferencDialog
in combination with FormsBuilder to create a pretty nice form, one form per B4XPage...
 

Attachments

  • PrefFormsV3.zip
    29.3 KB · Views: 167
Last edited:

"Embedding" JSpice in B4J

Attachments

  • JSpice2.zip
    9.6 KB · Views: 143
Last edited:

Office Scanner tutorial

Hi friends,

I wrote a B4J program and a comprehensive tutorial in my blog page. It shows who is online in local network by names of persons. It scans 254 ip numbers in less than one...
 

Hansolo Charts

Hansolo Charts have some very nice looking charts. Download the Jars from the link below and copy the jars into your B4J additional library folder.
A sample project is attached ( draws 8x charts)...
 

Attachments

  • HansoloCharts.zip
    13.9 KB · Views: 246
Last edited:

Fxyz3d - samples

It is a sample project for this Github posting - using fxyz3d (have added it via inline Java code in a B4J class and then added some setters to the class.

Download...
 

Attachments

  • MathVis.zip
    4.1 KB · Views: 178
Last edited:

Galaxy

Not to scale but all planets as well as the sun rotating on their respective axis's at the same rate (for now) - a 3D view of all of the planets and the sun (have included Pluto)

Download it from...
 

[SithasoDaisy] - PocketBase - How to create a Web Push Notification Server with PocketBase SSE

Hi there

By the end of this, you should be able to have your own Web Push Notification Server running. Below is an example of a notification coming from a cloud deployed PocketBase server...
 
Last edited:

Web Push Notifications using the Notifications API

Hi

I just had the pleasure of looking at this Notifications API again. Below is my example.

1671621118774.png



You can get more infomation about it here...
 

[BANano] TIP: Running a test server

UPDATE: since december 2022, chrome plugins like this have stopped working. Luckcely, the author of this plugin has created a standalone alternative you can install on your computer:

Simple...
 
Last edited:
Top