b4j

  1. W

    Android Example [B4J] [B4A] Expandable CLV with sub-items (similar to a tree)

    Posted in the B4J forum: https://www.b4x.com/android/forum/threads/b4j-b4a-expandable-clv-with-sub-items-similar-to-a-tree.155113/
  2. W

    B4J Code Snippet [B4J] [B4A] Expandable CLV with sub-items (similar to a tree)

    I needed this and didn't find an existing solution: a CLV whose items - can be expanded/collapsed (available in @Erel's CLVExpandable) - and can have sub-items that can be shown or hidden In the screenshot below, you'll see the arrows that can be used to expand/collapse, and the +/- signs to...
  3. jkhazraji

    Share My Creation Creating javafx buttons with images

    Hi, 'b4jers' B4j can easily import and encompass the javafx controls and deals with them as native controls. As a demo of this power of b4j I present this outcome of a small app that took a considerable deal of research, trials and errors, and code organization.. It displays three buttons...
  4. R

    B4J Question jGoogleMaps Lib V2

    I am working on a project with Google Maps V2. The code is as Erel's example here Google Maps V2 I am using the recommended OpenJDK 19.0.2 + OpenJFX 17.0.6 and have included the #PackagerProperty code. Is this a problem?
  5. jkhazraji

    Share My Creation B4Xlib file maker

    Hi everybody, May I present to you this utility which was entirely made with b4j. It is a b4xlib library maker. It has a very simple job : archiving the required resource files into the b4xlib file which is, as stated by the creator, a zip file. It is a standalone package made with JPackager...
  6. K

    B4J Question jGoogleMaps issue in two pages

    Is it possible to add more than one Google Maps to different B4XPages? I have added 2 Google Maps into 2 different B4XPages, and the last B4XPage which was initialized is working fine, but the first initialized B4XPage's Google Maps is not loading. It's showing blank. If I remove the 2nd...
  7. jkhazraji

    B4J Question Exposing a Java code variable in a class to the main module

    Hi B4X community, I have the following as a part of a Java code in a class: #if Java { // //.... String msg ="blabla"; ba.raiseEvent(null,"get_msg",msg); //..... // } #end if Is the ba.raiseEvent written correctly? How would I expose 'msg' variable to the...
  8. K

    Android Question jGoogleMaps issue

    I'm using the jGoogleMaps library in my B4J project, and I'm receiving this error message when loading the Google Map. Additionally, the map is displaying the message 'For development purposes only.' Is this situation normal, or have I done something wrong?"
  9. S

    B4J Question Delete to Windows Recycle Bin

    Hi, File.Delete(FilePath,FileName) deletes a file directly from hard-disk, similar as holding Shift and then delete. I searched but can't find nothing on how to delete to Windows Recycle bin. (For sure I'm not the only one asking this right?) So I asked GPTchat and it came up with 2 scripts...
  10. K

    Share My Creation EchoEmail - Email Marketing App

    This is my first B4J app developed using B4J, SQLite, PHP & MySQL. Hope you like it, Demo Video If anyone wishes to try it, just PM
  11. S

    B4J Question When using variable with sqlite, error unrecognized token: ":"

    Hi, Can't figure out why this works: Dim RS3 As ResultSet = Main.SQL2.ExecQuery("SELECT Fullpath, Filename, Size, Date, Time FROM DblFiles WHERE Fullpath = 'C:\temp\{C}\'") But this does not, while the variable beholds the same string: Dim RS3 As ResultSet = Main.SQL2.ExecQuery("SELECT...
  12. Yafuhenk

    B4R Question [SOLVED] Can't connect B4R MQTT client to B4J MQTT broker

    Hi, I read several posts and studied several examples but I can't connect my ESP8266 D1 mini to the broker. Sub Process_Globals Private Broker As MqttBroker Private Client As MqttClient Private ESPTopic As String = "ESP8266_1" Private Name As String = "SKIKK_1" End Sub Sub...
  13. Pxs

    B4J Question How to get the Calling view from a context menu click

    Hello I'm trying to get the calling view upon selection of a context menu entry Context menu(from the editor): [ { Text:"Detailed Info", EventName : "ShowDetailedInfo" } ] Called sub: Private Sub ShowDetailedInfo_Action Dim mi As MenuItem = Sender End Sub I know...
  14. S

    B4J Question Items from Javaobject in Log but not in Listview

    Hello, The below code is checking files in a selected folder and uses the Java code I found here in the forum. Why do I see the JavaObject contents as Items in the Log but not in the Listview? Perhaps I'm doing something wrong, could someone point me how to fix this? Sub GetTheFolderContents...
  15. Diego Roman

    B4J Question Hide Window Console in B4J

    Hi, It's posible to hide window console in B4J console application? I need to do a Background Process App but I don't want show the black console when start the process when Windows starts. Anyone can help me please? Thank you
  16. stevel05

    B4J Library JSON Formatter and validator

    I am working on an app that needs to be able to manipulate JSON strings. They are stored in a compact format then prettified for display and editing. The main problem I have found is that if the json is invalid, it can't be prettified with the existing JSON lib. I found this project on github...
  17. W

    B4J Question [SOLVED] Linux/wine - program running from the IDE uses Greek(?) font?

    When running outside the IDE, all is well. However, when running the attached (based on the default project when creating a new UI one in B4J) from the IDE, it looks like a Greek font is being used for all views except the form title. Changing e.g. a button's font to Arial instead of the default...
  18. A

    German [B4J] intern jnet - ftp - dir list für einen VX Works ftp-Server

    Hallo miteinander, hab hier ein Problem mit jnet/ftp. Ich nutzte B4J 9.8 internal Version:1.81. Ich habe hier mal ein vereinfachtes Testprogramm meines Projekts private Sub Test ftp.Initialize("ftp","10.26.10.115",21,"User","pass") ftp.PassiveMode=True ftp.TimeoutMs= 60000 Log...
  19. aeric

    B4J Library [B4X] Velocity

    A wrap of Apache Velocity Engine library for B4A and B4J What is Velocity? Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code. Source: https://velocity.apache.org/ Download additional libraries...
  20. Z

    B4J Question [SOLVED]Gmail not working

    Hi, I'm trying to send a gmail through a B4J app but it's not working. I've updated my cacerts in Java and tested it with keytool and that's OK. My code is: Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("MainPage") smtp.Initialize("smtp.gmail.com", 465...
Top