All Projects → goxr3plus → Fx Borderlessscene

goxr3plus / Fx Borderlessscene

💠 Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls.

Projects that are alternatives of or similar to Fx Borderlessscene

Night Shift On Unsupported Macs
Enable Night Shift on older Unsupported Macs
Stars: ✭ 86 (-20.37%)
Mutual labels:  mac
Neptunes
simple and reliable Last.fm scrobbler for iTunes and Spotify for macOS
Stars: ✭ 98 (-9.26%)
Mutual labels:  mac
Tensorflow Gpu Macosx
Unoffcial NVIDIA CUDA GPU support version of Google Tensorflow for MAC OSX
Stars: ✭ 103 (-4.63%)
Mutual labels:  mac
Ytmdesktop
A Desktop App for YouTube Music
Stars: ✭ 1,297 (+1100.93%)
Mutual labels:  mac
Keylogger
🔐 Open Source Python Keylogger Collection
Stars: ✭ 97 (-10.19%)
Mutual labels:  mac
Esteem Surfer
Ecency desktop formerly known as Esteem Surfer - reimagined desktop social wallet, contribute and get rewarded (for Windows, Mac, Linux)
Stars: ✭ 100 (-7.41%)
Mutual labels:  mac
Dev
The only truly universal productive development platform with Docker on macOS, Linux and Windows! http://blog.teracy.com/2016/12/20/teracy-dev-the-only-truly-universal-productive-development-platform-with-docker-on-macos-linux-and-windows/ http://slides.teracy.net/hoatle/productive-dev-workflow-with-teracy-dev/latest/
Stars: ✭ 84 (-22.22%)
Mutual labels:  mac
Bingpaper
Use Bing daily photo as your wallpaper for macOS.
Stars: ✭ 105 (-2.78%)
Mutual labels:  mac
Clean Me
A macOS system analyser and cleaner
Stars: ✭ 1,346 (+1146.3%)
Mutual labels:  mac
Menutube
Catch YouTube into your macOS menu bar! 🦄
Stars: ✭ 102 (-5.56%)
Mutual labels:  mac
Plug
macOS app for Hype Machine
Stars: ✭ 93 (-13.89%)
Mutual labels:  mac
Carol Xamarin
A minimal and beautiful lyrics app for macOS built with Xamarin and C#
Stars: ✭ 97 (-10.19%)
Mutual labels:  mac
Webmidikit
Simplest MIDI Swift library
Stars: ✭ 100 (-7.41%)
Mutual labels:  mac
Wechatdemo
macOS WeChat 仿微信MAC端 QQ NSCollectionView,NSSplitView,ect..
Stars: ✭ 87 (-19.44%)
Mutual labels:  mac
Cis For Macos Sierra
Stars: ✭ 104 (-3.7%)
Mutual labels:  mac
500days Of Github
⭐ 瞎JB折腾Mac/Linux/Windows过程中遇到的所有问题和解决方式 ⭐
Stars: ✭ 86 (-20.37%)
Mutual labels:  mac
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+1157.41%)
Mutual labels:  mac
Awesome Mac
 Now we have become very big, Different from the original idea. Collect premium software in various categories.
Stars: ✭ 46,674 (+43116.67%)
Mutual labels:  mac
Redtamarin
AS3 running on the command line / server side
Stars: ✭ 105 (-2.78%)
Mutual labels:  mac
Bilibili Client
📺 可以摸鱼的 Bilibili Mini-Client # 支持Mac/Win
Stars: ✭ 102 (-5.56%)
Mutual labels:  mac

AlexKent Support me joining PI Network app with invitation code AlexKent AlexKent


FX-BorderlessScene ( Library )

💠

Undecorated JavaFX Scene with implemented move, resize, minimise, maximise, close and Windows Aero Snap controls. Implement any style you want for your JavaFX application using custom css or default .


Latest Version GitHub contributors HitCount Total Downloads

java_2019-04-30_17-43-54

Donate if you love me

Patreon donate button PayPal donate button

Features

  • Done ✔️
    • Implemented drag and move
    • resize, minimise, maximise, close
    • Windows Aero Snap controls.
    • Styling Aero Snap window
    • Styling Main window
  • TODO 🚧
    • Multiple Screens Support
    • Fix lagging on resizing

This project has been forked and further developed from this github repository

Use it with Maven , Gradle etc ... with

https://jitpack.io/#goxr3plus/FX-BorderlessScene

Add JitPack on your repositories :

<repositories>
   <repository>
     <id>jitpack.io</id>
     <url>https://jitpack.io</url>
   </repository>
</repositories>

Add the dependency :

<dependency>
  <groupId>com.github.goxr3plus</groupId>
  <artifactId>FX-BorderlessScene</artifactId>
  <version>4.4.0</version>
</dependency>

> Advanced example (styling AeroSnap Window , spying window maximize status etc ) with ready code for you to run

Main Window -> here

Main Window Controller -> here

Simple example

import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import com.goxr3plus.fxborderlessscene.borderless.BorderlessScene;

/**
 * Testing the application to see if it works
 * 
 * @author GOXR3PLUS
 *
 */
public class Main extends Application {
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		
		//BorderPane
		BorderPane borderPane = new BorderPane();
		
		//Create a Top Label
		Label topLabel = new Label("Drag Me :)");
		topLabel.setMinHeight(50);
		topLabel.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
		topLabel.setStyle("-fx-background-color:#303030; -fx-text-fill:white; -fx-font-weight:bold;");
		topLabel.setAlignment(Pos.CENTER);
		borderPane.setTop(topLabel);
		
		//Close Button
		Button closeButton = new Button("Exit");
		closeButton.setOnAction(a -> primaryStage.close());
		
		// Constructor using your primary stage and the root Parent of your content.
		BorderlessScene scene = new BorderlessScene(primaryStage, StageStyle.UNDECORATED, borderPane, 250, 250);
		primaryStage.setScene(scene); // Set the scene to your stage and you're done!
		
		//Close Button
		Button removeDefaultCSS = new Button("Remove Default Corners CSS");
		removeDefaultCSS.setOnAction(a -> scene.removeDefaultCSS());
		
		//BorderPane
		HBox hbox = new HBox(removeDefaultCSS,closeButton);
		hbox.setAlignment(Pos.CENTER);
		hbox.setSpacing(15);
		borderPane.setCenter(hbox);
		
		//remove the default css style
		//scene.removeDefaultCSS();
		
		// Maximise (on/off) and minimise the application:
		//scene.maximizeStage();
		//scene.minimizeStage();
		
		// To move the window around by pressing a node:
		scene.setMoveControl(topLabel);
		
		// To disable resize:
		//scene.setResizable(false);
		
		// To switch the content during runtime:
		//scene.setContent(yourNewParent);
		
		// Check if maximised:
		//Boolean bool = scene.isMaximised();
		
		// Get windowed* size and position:
		//scene.getWindowedSize();
		//scene.getWindowedPosition();
		
		//Show
		primaryStage.setTitle("Draggable and Undecorated JavaFX Window");
		primaryStage.show();
		
	}
	
	public static void main(String[] args) {
		launch(args);
	}
	
}

XR3Player is using this Library

Video
First

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].