B4J Tutorials

[Server] Using Let's Encrypt on Ubuntu VPS

So I have created a few JRDC2 apps. I put them on a VPS as live demo. It is running on Ubuntu 18.04 64 bit. Today I wanted to make the app more secure by...
 

SolarSystem

It is a B4J "kick-start" project for the JAR of this Github project. How to use it:
1. Copy the attached B4J project - the B4J code is very simple:
B4J code:
#Region Project Attributes...
 

Attachments

  • SolarSystemRunnable.jar
    8.7 KB · Views: 256
  • b4jSolarSystem.zip
    1.6 KB · Views: 237

Maximize, minimize, restore and full screen (programmatically)

Based on this post and in other internet searches:

(Attached sample project)

B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
#End Region

Sub Process_Globals...
 

Attachments

  • MaximizeFullscreen.zip
    2.3 KB · Views: 618

Running Jar with double click (in Java OpenJDK 11+ )

As shared in multiple places in this forum Java 11 OpenJDK does not allow to run jar files directly. (here)

Here is an easy workaround...

1. Run cmd with administrator privilege.
2...
 
Last edited:

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: 268
  • ChessPieces.zip
    40.8 KB · Views: 264
  • MyChess.jar
    46 KB · Views: 240
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.

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

For each...
 

[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
    26.5 KB · Views: 1,181
  • simple_layout_designer.zip
    270.5 KB · Views: 409
  • sld_load_example.zip
    115.4 KB · Views: 354
Last edited:

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: 262
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: 590
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: 293
Last edited:

"Embedding" JSpice in B4J

Attachments

  • JSpice2.zip
    9.6 KB · Views: 239
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: 363
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: 282
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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…