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:
Some images:
Additional info:
Enjoy.
Change Log:
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.
- 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:
Additional info:
- Icons in the folder have been created from the Android Icon Pack by Google. (I modified them a bit). I allow you to use the icons I modified freely, just check the Google's policy regarding their icon pack.
- The CSS for the buttons and title have been inspired by this page: http://fxexperience.com/2011/12/styling-fx-buttons-with-css Check it out, some good stuff there.
Enjoy.
Change Log:
2014-02-20: Fixed a few bugs:
2014-02-19: Version 1 released.
- 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-18: Alpha version.
Attachments
Last edited: