Decorate "Undecorated" JavaFX windows

Related tags

GUI Undecorator
Overview

   DEPRECATED: The latest version of this project is UndecoratorBis
   https://github.com/in-sideFX/UndecoratorBis

Undecorator

Decorate undecorated JavaFX stages with custom skin.

This helper brings a custom look to your JavaFX stages. All details here: http://arnaudnouard.wordpress.com/2013/02/02/undecorator-add-a-better-look-to-your-javafx-stages-part-i/ This software is released under the BSD license, but I'd really appreciate if you could share screen shot of your app developped with this component. Thanks!

/*

  • BSD License All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the In-SideFX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */

Testimony from an user (http://blog.mynotiz.de/) "Undecorator is awesome! Thank you soooo much. It makes my application 10 times more beatiful!!!":

Comments
  • No resize possible when padding is set to 0 [with fix]

    No resize possible when padding is set to 0 [with fix]

    Hi, First of all, many thanks for this great project! I found 1 little bug, if you set the padding to 0, you cannot resize the windows anymore. If you overwrite the following rules, you can resize the window without the padding:

    Undecorator.java line 241:

    undecoratorController.setStageResizableWith(stage, clientArea, RESIZE_PADDING, SHADOW_WIDTH);
    

    Undecorator.java line 266:

    super.getChildren().addAll(shadowRectangle, clientArea, stageDecoration, glassPane);
    

    I don't know if this is a good solution, but it works for me..

    opened by arwinvdv 2
  • Cannot drag across screens when using dual displays

    Cannot drag across screens when using dual displays

    Problem with dragging across screen boundary in dual screen setup. Using sample application (UndecoratorSceneDemoTouch.java and UndecoratorSceneDemo.java) to test with both apps can be resized and dragged within the primary screen the app launched in but I cannot drag scene from one display to another. Note: I can use simple app with a decorated scene and drag across displays. FYI. Test environment is Windows 10, Netbeans 8.1, jdk 1,8.

    opened by mikedavison 1
  • Replace stage with other

    Replace stage with other

    I had this piece of code :

         `FXMLLoader signUpLoader = new FXMLLoader();
        signUpLoader.setResources(Configuration.getSignUpBundle());
        signUpLoader.setLocation(Indigo.class.getResource("/com/javafx/pattern/mvc/views/fxml/SignUp.fxml"));
        Parent parent = signUpLoader.load();
        //Create undecorator stage (Using Undecorator library https://arnaudnouard.wordpress.com/2014/12/20/undecorator-bis/)
        Undecorator undecorator = new Undecorator(primaryStage, (Region) parent);
    

    `

    As far as i know each constructor parameter has a getter and setter ,but it seems they are absents for first parameter "Stage",because I need to replace the old stage like this undecorator.setStage();

    opened by MenaiAla 0
  • I had a problem,

    I had a problem,

    I had a problem, and I didn't know how to solve.App.showView, and I made a mistake: Java.lang.IllegalStateException: Cannot set style once stage has been set visible

    opened by i-CNNN 0
  • Provide license information

    Provide license information

    It would be helpful if a license information is put on the project. http://choosealicense.com/ might be helpful. That page also lists reasons why no explicit license might be problematic: http://choosealicense.com/no-license/

    opened by koppor 4
  • [Bug] Menubars confuse undecorator

    [Bug] Menubars confuse undecorator

    It seems that menubars cause undecorator to barf and fail at determining the correct area to place the decoration: image

    The demo projects work as expected. I tried to just swap the fxml file to mine in the demo project and comment out any lines that causes failures at startup. It still renders as above so I believe this to be a bug.

    The FXML file that is causing this behavior is here: https://gist.github.com/EmilyBjoerk/1488e748c89be75e8bee

    opened by LiSongMWO 2
Owner
null
💠 Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls.

Support me joining PI Network app with invitation code AlexKent FX-BorderlessScene ( Library ) ?? Undecorated JavaFX Scene with implemented move, resi

Alexander Kentros 125 Jan 4, 2023
A library for JavaFX that gives you the ability to show progress on the Windows taskbar.

A clean and easy way to implement this amazing native Windows taskbar-progressbar functionality in javaFX Background Since Windows 7 there is a taskba

Daniel Gyoerffy 77 Nov 28, 2022
A prayer times (Adhan) app for Windows and GNU/Linux written in JavaFX.

Salawat Salawat - سالوات A prayer times and Adhan application for Windows, macOS and GNU/Linux written in Java Download » View Demo · Report Bug · Req

DarkBlackChocolate 8 Nov 17, 2022
Custom captions (window decorations) on Windows for JavaFX

javafx-customcaption javafx-customcaption is designed to allow customizing the native window caption on Microsoft Windows Usage: You can use the follo

null 3 Dec 15, 2022
InstallRepos - Install GitHub Repository on any Operating System (Linux, MacOS or Windows).

Install Repos Install GitHub Repository on any Operating System (Linux, MacOS or Windows). Requires Java JRE 17.0.0.1 or later. Repository Includes: s

Tushar Chaurasia 2 Apr 21, 2022
Terminal GUI library for simple ANSI console tools and graphical interfaces with Windows/Linux support

TerminalCore Terminal GUI library for Windows/Linux. This library contains all colors as ascii codes, native functions of the respective operating sys

Pascal 3 Oct 19, 2022
WavesFX an open-source Waves wallet for Windows, macOS and Linux

WavesFX WavesFX is an open-source Waves wallet for Windows, macOS and Linux. Telegram Chat Releases can be found on the release list. How to build Wav

WavesFX 22 Apr 15, 2022
Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.

FXTrayIcon Library intended for use in JavaFX applications that makes adding a System Tray icon easier. The FXTrayIcon class handles all the messy AWT

Dustin Redmond 248 Dec 30, 2022
Lib-Tile is a multi Maven project written in JavaFX and NetBeans IDE 8 and provides the functionalities to use and handle easily Tiles in your JavaFX application.

Lib-Tile Intention Lib-Tile is a multi Maven project written in JavaFX and NetBeans IDE and provides the functionalities to use and handle easily Tile

Peter Rogge 13 Apr 13, 2022
DataFX - is a JavaFX frameworks that provides additional features to create MVC based applications in JavaFX by providing routing and a context for CDI.

What you’ve stumbled upon here is a project that intends to make retrieving, massaging, populating, viewing, and editing data in JavaFX UI controls ea

Guigarage 110 Dec 29, 2022
Collection of Binding helpers for JavaFX(8)

Advanced-Bindings for JavaFX (8) advanced-bindings is a collection of useful helpers and custom binding implementations to simplify the development of

Manuel Mauky 63 Nov 19, 2022
Docking framework for JavaFX platform

Docking framework for JavaFX platform AnchorFX is a gratis and open source library for JavaFX to create graphical interfaces with docking features Anc

Alessio Vinerbi 197 Oct 15, 2022
A library of +70 ready-to-use animations for JavaFX

AnimateFX A library of ready-to-use animations for JavaFX Features: Custom animations Custom interpolators Play/Stop animation Play an animation after

Loïc Sculier 366 Jan 5, 2023
BootstrapFX: Bootstrap for JavaFX

BootstrapFX BootstrapFX is a partial port of Twitter Bootstrap for JavaFX. It mainly provides a CSS stylesheet that closely resembles the original whi

Kordamp 810 Dec 28, 2022
A Java framework for creating sophisticated calendar views (JavaFX 8, 9, 10, and 11)

CalendarFX A Java framework for creating sophisticated calendar views based on JavaFX. A detailed developer manual can be found online: CalendarFX 8 D

DLSC Software & Consulting GmbH 660 Jan 6, 2023
Allow runtime modification of JavaFX CSS

cssfx âš  WARNING âš  In version 11.3.0 we have relocated & refactored the project. maven groupId has been changed to fr.brouillard.oss java module name h

Matthieu Brouillard 134 Jan 2, 2023
MDI components for JavaFX

DesktopPaneFX DesktopPaneFX is a JavaFX version of Swing’s JDesktopPane which can be used as a container for individual "child" similar to JInternalFr

Kordamp 58 Sep 23, 2022
Efficient VirtualFlow for JavaFX

Flowless Efficient VirtualFlow for JavaFX. VirtualFlow is a layout container that lays out cells in a vertical or horizontal flow. The main feature of

null 163 Nov 24, 2022
A framework for easily creating forms for a JavaFX UI.

FormsFX Forms for business application made easy. Creating forms in Java has never been this easy! Maven To use this framework as part of your Maven b

DLSC Software & Consulting GmbH 534 Dec 30, 2022