B4J Library jCustomWindow

Hi,

I am very happy to share the first version of my jCustomWindow Library with you guys. jCustomWindow allows you to customize completely the window container of your application and have a consistent style cross-platform.

This is a list of what you can do:
  • Customize the title's text and style.
  • Set a custom icon.
  • Add an infinite number of buttons
  • Set custom images for each button
  • Set a pre-built action (Exit, full screen, maximize, minimize) for each button or call your own events.
  • Get notified for each pre-built actions.
  • Full screen mode, with no title bar.
  • Set the window resizable or not.
  • Set a custom style and width for the window's borders.
  • Animations when maximizing.
  • Adjustable animation speed.
  • Uniform style, cross-platform.
  • Window is resizable (now only at right and bottom corners).
  • Maximizing will maximize on the active screen in the case of multi-monitor setup.
Note:
  • You should initialize the jCustomWindow BEFORE calling the Form.Show (as in the example)
  • You should set the formStyle of your form to "UNDECORATED" (as in the example)
  • You need to copy the jCustomWindow.fxml to your files folder.

Some images:

CustomWindow.png


Additional info:

Enjoy. :cool:

Change Log:
2014-02-20: Fixed a few bugs:
  • bugFix: Window borders would disappear when the window was scaled down.
  • BugFix: Window borders were still visible in fullscreen mode.
  • Change: iBorderWidth changed from Int to Double (not script breaking).
2014-02-19: Version 1 released.

2014-02-18: Alpha version.
 

Attachments

  • jCustomWindow_Example.zip
    27.1 KB · Views: 1,222
  • jCustomWindow_Source.zip
    31.1 KB · Views: 1,023
  • jCustomWindow.zip
    10.5 KB · Views: 821
Last edited:

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hi,

I am very happy to share the first version of my jCustomWindow Library with you guys. jCustomWindow allows you to customize completely the window container of your application and have a consistent style cross-platform.

This is a list of what you can do:
  • Customize the title's text and style.
  • Set a custom icon.
  • Add an infinite number of buttons
  • Set custom images for each button
  • Set a pre-built action (Exit, full screen, maximize, minimize) for each button or call your own events.
  • Get notified for each pre-built actions.
  • Full screen mode, with no title bar.
  • Set the window resizable or not.
  • Set a custom style and width for the window's borders.
  • Animations when maximizing.
  • Adjustable animation speed.
  • Uniform style, cross-platform.
  • Window is resizable (now only at right and bottom corners).
  • Maximizing will maximize on the active screen in the case of multi-monitor setup.
Note:
  • You should initialize the jCustomWindow BEFORE calling the Form.Show (as in the example)
  • You should set the formStyle of your form to "UNDECORATED" (as in the example)
  • You need to copy the jCustomWindow.fxml to your files folder.

Some images:

View attachment 22843

Additional info:

Enjoy. :cool:

Change Log:


Hello JMON, is possible to create some windows like this?

upload_2019-5-30_21-13-28.png
 
Top