B4J Tutorials

Customized ListView

Use xCustomListView instead.
 
Last edited:

Building a mini "Email based server"

This example uses jNet library together with the MailParser module to build a program that responds to emails.

SS-2013-11-27_10.48.58.png


Although...
 

Attachments

  • EmailServer.zip
    3.5 KB · Views: 1,969

Nodes / Views / Controls - Tips

I'll try to collect tips related to the UI elements in this thread.

In B4J (and JavaFX) the main UI element is named Node. It is similar to Basic4android View or Basic4ppc (.Net) Control.

B4J...
 

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...
 

Using Sliders

This is a simple example that shows :
Using sliders
Re-sizing windows
Changing background colour of a window
Truncating/Expanding text
Moving labels to keep pace with a slider button
Text with...
 

Attachments

  • SlidersAndText.zip
    2 KB · Views: 887

SQL Tutorial

B4J jSQL library is similar to Basic4android SQL library.

This tutorial will cover the differences between the two libraries. You can read more about the library methods here...
 
Last edited:

Modules Attributes

The following module attributes are supported:

Main Module
  • MainFormWidth / MainFormHeight - Set the main form initial width and height.
  • AdditionalJar - An...
 
Last edited:

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:

Print with PrintHtml tool

PrintHtml is a small Windows utility that you can use to print from your app.

First you should download PrintHtml.exe and also the DHTML Editing Control...
 

Attachments

  • Print.zip
    1.4 KB · Views: 1,863

TableView Tutorial

TableView is useful to show data in a tabular view.

The data is held in a List. Each item in this list is an array of objects. The length of each array equals to the number of colums.

For...
 

Attachments

  • TableExample.zip
    2.8 KB · Views: 3,361
Last edited:

TreeView Tutorial

B4J v1.05 adds support for the TreeView node.

TreeView as it name suggests visualizes a tree structure.

Each item in the TreeView is a TreeItem (or CheckBoxTreeItem). Each item has a list of...
 

CSS Example

Attachments

  • CSSExample.zip
    52.9 KB · Views: 2,589
Last edited:

Create Windows native executables (exe files)

Last edited:

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:

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,851
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: 2,007
  • webview2.zip
    2.6 KB · Views: 1,206
  • webview3.zip
    3.6 KB · Views: 1,152
  • webview4.zip
    3.8 KB · Views: 1,311
Last edited:

B4J and Raspberry Pi boards

Last edited:

[Server] Building web servers with B4J

Attachments

  • ServerHelloWorld.zip
    79.8 KB · Views: 6,424
Last edited:

[Server] Upload files from your B4A app to your B4J server over the internet

This example shows how to make your B4J server application accessible over the internet.

The implemented server is a simple file server that allows you to upload files from your B4A application...
 

Attachments

  • FileClient-B4A.zip
    7.5 KB · Views: 4,869
  • FileServer-B4J.zip
    4.3 KB · Views: 5,166

[Server] Send and receive objects

This is an old example. Better use B4XSerializator to serialize objects.

One of the nice things about using B4J server as the backend of B4A applications is that you can send and receive...
 
Last edited:
Top