openjfx / openjfx.github.io Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://openjfx.io
Home Page: https://openjfx.io
project uses travis to build and deploy the website which doesn't work any longer for some reason. we need to move it to Github actions.
There are a number of community maintained documentation for JavaFX like FXDocs. These should be added to openjfx.io so that users can easily access them.
add 2019 events
Hi, i think i found an issue when playing audio file using javafx.scene.media.MediaPlayer. I am trying to build a "toy" media player from which the user can choose an audio file and then play it. The first playback is fine then if the user clicks on the "pause" button the audio stops, then if i resume the audio playback using mediaPlayer.play() the audio starts, it plays for about 100ms, then pauses for about another 100ms and then starts again playing normally.
I am on a linux system and i tried using an .mp3 file and a .wav file. Using the javafx gradle plugin i tried with OpenJavaFx version 17.02, 17.06 and 19. Am i maybe doing something wrong? The code that i am using is the following:
package it.arena.audioplayer.audioplayer;
import javafx.beans.binding.Bindings;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.stage.FileChooser;
class AudioPlayerController {
@FXML
private Label statusLabel;
@FXML
private Button openButton;
@FXML
private Button playPauseButton;
private SimpleBooleanProperty fileChosen = new SimpleBooleanProperty(false);
private SimpleBooleanProperty playing = new SimpleBooleanProperty(false);
private MediaPlayer mediaPlayer;
public void initialize() {
statusLabel.textProperty().bind(Bindings.when(playing).then('Playing').otherwise('Stopped'));
playPauseButton.disableProperty().bind(fileChosen.not());
}
@FXML
public void onOpenButtonClicked() {
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Open File");
File file = fileChooser.showOpenDialog(statusLabel.getScene().getWindow());
URI uri = file.toURI().toString();
mediaPlayer = new MediaPlayer(new Media(uri));
fileChosen.set(true);
}
@FXML
public void onPlayPauseClick() {
playing.set(!playing.get());
if (playing.get()) {
mediaPlayer.play();
}
else {
mediaPlayer.pause();
}
}
}
`
Prepare for JavaFX 22
https://gluonhq.com/products/javafx/ should have download links to all the src.zip versions or at least a link to where they can be found.
https://openjfx.io/openjfx-docs/ page should show how to set up IDEs for javafx src.zip and javafx online documentation.
The page https://openjfx.io/openjfx-docs/#gradle needs to update the compatibility table at the bottom.
Prepare for JavaFX 20
Prepare for JavaFX 21
You may have followed the inception of JFX-Central by @dlemmermann.
I think that jfx-central is a great page, fully powered with OpenJFX and openjfx.io should mention it in the community page.
change text and links to relevant 12 locations.
The current example at https://openjfx.io/openjfx-docs/#maven doesn't work.
First after creating the archtype, the plugin is 0.0.3 and not 0.0.8 as indicated on the webpage.
Second, when I try to build using mvn clean javafx:run, it will not compile the classes because none of the javafx packages exist. If I edit the pom and use javafx 16 it works fine.
Thank you
The JavaFX 19 API docs URL, which is linked from openjfx.io, gives a 404:
Instead of keeping 2 separate repositories, we can merge both the repositories.
My proposal is to host code from hugo-site on master
branch and move the generated html files (currently on master) to gh-pages
branch.
We can then configure github pages to host from gh-pages
branch.
Having presented ValidatorFX at the JFX days 2020 (online conference) I would like to add it to the Community Section of https://openjfx.io.
Would a PR for this be acceptable? If yes, is there a HOWTO for working with the contents of the develop branch of this repo? I've already cloned it and installed hugo. But what next?
=> Maybe there should be a CONTRIBUTING.md in the repo?
On the Mac OS, Menubar sets setUseSystemMenubar (true); after starting the app, menu can't be clicked (clicking doesn't respond), You need to switch to other applications and return to the current application again to click normally(Click to respond)
java version 11.0.10 javafx version 13
Hello,
Recently Khronos released the first version of ANARI.
To make it short it's a basic API for 3D rendering.
Javafx has some simple 3D capabilities, and I believe there isn't a huge interest in the community to make a full 3d engine in javafx, it's not it's purpose.
But still, being able to do some 3D rendering is more and more useful for data visualisation.
Make a full 3D engine is a lot of work but implementing ANARI would not be so hard I believe and there are multiple benefits.
What is the javafx dev team opinion on it ?
When trying to download OpenJFX on ubuntu 16.04, it shows a mass amount of 404 not found errors then aborts the download.
Entries in the community section are completely random. Adding a sort algorithm would be ideal. Sorting using the 'title' seems to be an easy win.
Under the Community Documentation section, the link to "Jenkov.com" is broken.
The link is: http://tutorials.jenkov.com/javafx/
But should be: http://tutorials.jenkov.com/javafx/index.html
for some reason it doesn't work without the "index.html".
The hosted website is always referred to as https://openjfx.io and doings so works fine.
It happened to me to type in the URL manually (since I know the domain) and I typed www.openjfx.io.
Having said that, with the www
prefix it does not load.
I assume this is just a configuration option that can fix that problem.
This might be a non-issue (please close issue if you think so).
The API documentation for version 13 is missing: https://openjfx.io/javadoc/13/
Should we add a video section?
e.g. Videos from JavaFX Days Zurich 2018 and YouTube could be added.
I am getting an error page 404 when trying to reach openjfx.io
A continuation of javafxports/openjdk-jfx#213. It was suggested to add links to the CSS ref and maybe to the FXML refs from the release site. Is it something we want to do?
Please add a new link called installation or download on https://openjfx.io/.
I can not figure out how to install openjfx. There is so much visual candy that I can't
find anything. The existing instructions are very poor. I was very much surprised
that everyone recommends this as the new future for GUIs in java, but then lack
basic instructions how to install this for semi-newcomers.
I don't need refererals or ads or promo - I need quality content. Not sure who designed
the website but whoever did was not a good UI designer.
The first block of code does not encapsulate the StackPane within an AnchorPane, and it results in the observed discrepancy in the corner radii:
StackPane sp = new StackPane();
//AnchorPane ap = new AnchorPane(sp);
Rectangle rectangle = new Rectangle(100.0, 100.0);
rectangle.setArcWidth(10.0);
rectangle.setArcHeight(10.0);
sp.setPrefSize(100.0, 100.0);
sp.setMaxWidth(100.0);
sp.setMaxHeight(100.0);
sp.setShape(rectangle);
sp.setClip(rectangle);
sp.setStyle("-fx-background-color: red");
Scene scene = new Scene(sp, 600.0, 700.0);
primaryStage.setScene(scene);
primaryStage.show();
However, when i wrap the StackPane with an AnchorPane, as shown in the second block of code, the issue appears to be resolved:
StackPane sp = new StackPane();
AnchorPane ap = new AnchorPane(sp);
Rectangle rectangle = new Rectangle(100.0, 100.0);
rectangle.setArcWidth(10.0);
rectangle.setArcHeight(10.0);
sp.setPrefSize(100.0, 100.0);
sp.setMaxWidth(100.0);
sp.setMaxHeight(100.0);
sp.setShape(rectangle);
sp.setClip(rectangle);
sp.setStyle("-fx-background-color: red");
Scene scene = new Scene(ap, 600.0, 700.0);
primaryStage.setScene(scene);
primaryStage.show();
I'm wondering if this behavior is a bug in the openJFX library
It should be clear for visitors on openjfx.io that they can create PR's to modify the content here.
Move references to JavaFX to link to 11.0.2
SOAP UI is using Open JFX for some functionality and there are multiple DLLs copied to user profile. Location of cache folder -> %OSDRIVE%\Users%username%\OpenJFX\Cache folder.
These are the files without any digital signatures:
glass.dll
glib-lite.dll
javafx_font.dll
jfxwebkit.dll
prism_d3d.dll
Digital signatures are often used by security tools to check if the files are not malicious, so adding signatures would improve security level of Open JFX.
I see a localized site https://openjfx.cn, is this site officially maintained? Or is it maintained by local hobbyists?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.