Skip to main content

How to undecorate Frames?

2 replies [Last post]
riepi
Offline
Joined: 2008-03-27
Points: 0

In the interpreter version there was the Frame attribute 'undecorated'

import javafx.ui.*;
Frame {
title: "Hello World JavaFX"
width: 200
height: 50
content: Label {
text: "Hello World"
}
visible: true
undecorated: true
}

Is this not supported by the compiled version any more? How to get an undecorated Frame?

Greetings

Message was edited by: riepi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
riepi
Offline
Joined: 2008-03-27
Points: 0

Just read that there is now a new Class called WindowStyle.

javafx.application.WindowStyle

Installed the newest version of the compiler and it works, but something is wrong with my mouseevents now.

rlasjunies
Offline
Joined: 2008-06-08
Points: 0

I had this kind of issue few weeks ago, but since the package changed again. Here is something I did. I do not know if it still works ... good luck

[code]
var fra = Frame {
...
}

//undecorate the Frame and put it full screen
var w : java.awt.Window = fra.owner.window;
fra.getJFrame().setUndecorated(true);
GraphicsEnvironment.getLocalGraphicsEnvironment ().getDefaultScreenDevice().setFullScreenWindow (w);
[/code]