b4j

  1. C

    B4J Library [Custom View] Year Planner View

    This Year Planner View is my first effort at a custom view! It depends on jXUI, XUI Views, & B4XCollections. It displays every day in the selected year and returns the clicked day(s). A bunch of Designer Script Extensions are used to keep everything neat as the form is resized (credit to @Erel...
  2. SinaDeveloper

    Admob income

    Hello I am building a browser with b4a for Android and b4j for Windows. I really don't know if it will be profitable to use Admob ads or to add vip subscription! That's why I ask a few questions, please answer them: 1- In addition to Android, will it be possible to use AdMob in b4j? 2- Can I...
  3. R

    B4J Question Call PayPal Api to get transactions .... ChatGPT can't do it.

    Hi there, i ask ChatCPT to write a function to log into PayPal Account get the transactions and write them to a file. It should use a fakeApi Key for the example..... Sub LoginToPaypalAndGetTransactions(apiKey As String) 'Create a new HttpRequest Dim request As HttpRequest...
  4. S

    B4A Class [B4X] PDF Generator - B4X Cross Platform - Class 100% B4X Code

    Hi, This class cPDF.bas (version 0.6 - 2024-01-03) generate PDF File with limited fonctionnalities (but enough for me) Add pages with different paper size (use constants or custom size) PDF standards font (Courier, Helvetica, Times, Symbol and Zapfdingbats), style (Normal, Bold, Italic...
  5. A

    Wish Minor improvement in modules tree view.

    Hi. I wonder if it would be easy to differentiate icon before listed subs (in modules tree) to distinguish private subs from public subs. Just a thought. Anyway, IDE is great. Andreas.
  6. W

    B4J Question B4XDialog resize not catching - what am I missing?

    When the main form is resized, I'd like the B4XDialog to be resized as well. However, I have the impression it just moves so that it remains centered on the form, and its dimensions don't change? Test project attached, and thanks in advance for any tips!
  7. james_sgp

    B4J Virus/Malware issues

    Hi, I'm having a lot of issues with my McAfee Anti-Virus and Malwarebytes quarantining my apps. It`s quarantining standalone apps, and now I`m trying to get my app to print to a printer (in debug mode) its quarantining that too. I do understand as Java is trying to open other windows and...
  8. erol34

    B4J Tutorial jSerial + AsyncStreamsText + com0com (virtual serial port)

    Hello friends, This is my first but not last post in forum :D When I checked B4J_chat.zip file in Erel's post, I see that there is an old .fxml designer file that can not be recognized by B4J 9.8. I succeed to convert 1.fxml to 1.bjl file and succeed to make communicate Hercules (a terminal...
  9. W

    B4J Question [SOLVED] Exception with ListSelectionView and B4XDialog? ("Button.disable : A bound value cannot be set.")

    Hi all, I hope someone can shed some light on this one. The attached project is intended to show a B4XDialog with a layout that contains a ListSelectionView from the jControlsFX9 library (the same happens with the jControlsFX library). When clicking either OK or Cancel on the B4XDialog, this...
  10. james_sgp

    B4J Question SD XUIScrollView2D , Horizontal Slider size

    HI, i`m using the SD XUI 2D slider library (version 0.13) in a B4J app but the horizontal slider doesn`t fill pane width (see picture). Pane is larger than screen, and object anchors are set to fill width? Can anyone help? Thanks, James
  11. stevel05

    B4J Library [B4j] Javax print wrapper for UI and non-UI apps.

    This is a wrap of the Javax print API. It is more complex to use than the Javafx print API but does have a few benefits such as being usable in non-UI apps and access to java Swing printable interface which makes it easy to print the content of swing nodes. The main example app contains an...
  12. A

    Share My Creation Books library1.0

    Hi All, i would like to share my humble contribution to this community , hope you like it it is an online books library where you can search and download books for any subject here is the UI snapshot: you can download and try it from here bookslibrary v1.0 please share your thoughts and...
  13. yo3ggx

    B4J Question Compiling b4j app for 32bit windows

    Hello everybody. I have a b4j 64bit application working with no issues. I want to make a build for 32bit Windows. If i just use the jar file with 32bit java8 from Oracle, I get the following error message: Exception in thread "JavaFX Application Thread" Exception in thread "main"...
  14. stevel05

    B4J Code Snippet B4j Print JavaFX8 Create custom paper

    I came across this snippet when helping a user on the forum and thought it may be more widely useful: Create a Paper instance, 'Create a new Paper 'Units should be one of MM, INCH or POINT Public Sub CreatePaper(Name As String, Width As Double, Height As Double, Units As String) As Paper...
  15. stevel05

    B4J Library [DSE] Shapes - Shape Nodes

    This class contains designer extension script methods based on the snippets I previously posted with some enhancements that make it too complex to post as snippets. You should now be able to shape and rotate any node, text alignment is currently handled for Button, Label, Radiobutton and...
  16. W

    B4J Code Snippet [XLUtils] [jPOI5] Detect/unhide hidden rows and columns in a worksheet

    Dim i As Int Dim theSheet As PoiSheet = ... Dim joTheSheet As JavaObject = theSheet Dim theSheetWriter As XLSheetWriter = ... Dim theSheetLastRow1 As Int = theSheet.LastRowNumber + 1 ' One-based index of the last row in the sheet Dim theSheetLastCol0 As Int = theSheet.GetRow(0).Cells.Size - 1 '...
  17. stevel05

    B4J Code Snippet {DSE] Button Shapes

    These methods are now included in DSE_Shapes class which provides more functionality. Here are several Designer script extension methods that allow buttons to be shaped and rotated. It's a bit of a novelty, but may come in useful at some time. Each shape method also attempts to apply...
  18. stevel05

    B4J Code Snippet [DSE] SetToggleGroup (RadioButton / ToggleButton)

    A designer script extension that allows control over the grouping of Toggles (RadioButton And ToggleButtons) so that only one from the group can be selected at a time. B4x automatically groups RadioButtons on the same Pane. You can use this to change that behaviour which may, or may not, make...
  19. stevel05

    B4J Code Snippet [DSE] SetLabelTextOverrun behaviour.

    It seems more appropriate to post small Designer Script Extensions here so here another one. Set the TextOverrun behavior for a Label. Usage: {Class}.SetLabelTextOverrun("CENTER_WORD_ELLIPSIS",Label2,Label3) {Class} is whichever class you put the method in. You can set the same behaviour on...
  20. stevel05

    B4J Library [B4j] [DSE] CSSStyleClass Designer Script Extension

    With the new Designer Script Extensions, Erel has given us Class Names for views similar to the B4j CSS class names. For those wanting to use the actual CSS classes and styling in B4j, it is just as easy to add CSS class names to Nodes directly in the designer using the Designer Script...
Top