Comments (13)
Thanks for reporting this! Well, I will try to reproduce the issue and see that there will be a fix.
from fxfilechooser.
Please try out the branch issue-44. It is quite a hack as the controller now also has a reference to the dialog.
In general, a rethinking of the current structure is needed.
But, if this works for you, I'd release it as 0.0.7 to Maven Central.
I was testing it manually with net.raumzeitfalle.fx.demos.DemoJavaFxDialog.java
.
Beside the double click issue, the dark mode in the Dialog is not working properly - need to put some work in there as well.
from fxfilechooser.
Hi,
so there is now a new version 0.0.7
, just uploaded it. It contains the fix for the broken double click in the Dialog. The fix for the broken dark mode will then become part of 0.0.8
or later. This change comprises the internal API, hence going with 0.0.7
should be okay.
<dependency>
<groupId>net.raumzeitfalle.fx</groupId>
<artifactId>filechooser</artifactId>
<version>0.0.7</version>
</dependency>
or
implementation 'net.raumzeitfalle.fx:filechooser:0.0.7'
Thanks for sharing your setup details - so I will get this project into a little better shape and ready for Java11 soon, there will be also a module-info then but this is not a mandatory requirement. There will be a solution for darkmode in Dialog within a few days,
The stage version It works as a drop-in, looks a little different. Well, there is the directory chooser, which is in a quite early stage. It should then also be suitable for huge directory trees.
For development on this I am currently using the Azul Java 8 JDK, zulu
where JavaFX is included. Think Azul also offers Java-11 and Java-17 with FX included. This is quite convenient for development.
from fxfilechooser.
The dark mode inside Dialog is now working again. Also the resize behavior improved for the dialog as the minimum size is now properly constrained. There will be a 0.0.8
release tomorrow bringing the improvements.
from fxfilechooser.
@ArchibaldBienetre The new version 0.0.8
is now available. Its been tested on MacOS and Windows 10, works for both. Would be glad if you could share if it eventually works as intended on Ubuntu!
from fxfilechooser.
Thanks for checking in!
I've been using the 0.0.8
since this afternoon, the update introduced no serious problems (just the default skin, I had to change that to MODENA
now), my integration tests (testfx) still work as before. ✔️
Manual test works, dark layout too.
My project uses FXFileChooserStage
now, but I'll take the Dialog implementation for another spin 🔍
EDIT: Dialog implementation is still (i.e., like the 0.0.7
) working like a charm ✔️
from fxfilechooser.
Well yes. I can reproduce this. And you are right, the result converter is not triggered on double click. I need to look into the dialog API to understand how to call this. Very good, thanks for pointing this out.
Nevertheless, I was planning to completely remove the Dialog part. Do you actually prefer the Dialog version over the Stage version?
from fxfilechooser.
Do you actually prefer the Dialog version over the Stage version?
You mean, this? https://github.com/Oliver-Loeffler/FXFileChooser#a-version-with-a-completely-customizable-stage
I have not given it a try, yet.
I was glad to get something to work with TestFX ':D
I can have a look.
from fxfilechooser.
Yes this one. Was playing with both approaches, using a modal stage vs. using a JavaFX dialog. Nevertheless, this project deserves some more love over next time. It should now work with the modal Stage and the dialog,
TestFX is awesome - but I think it needs more people working on it. It is really underrated and underappreciated.
Btw, which Java version are you using? Would this be still useful to you if the project would move to Java 11?
from fxfilechooser.
...
I was testing it manually withnet.raumzeitfalle.fx.demos.DemoJavaFxDialog.java
.Beside the double click issue, the dark mode in the Dialog is not working properly - need to put some work in there as well.
I can confirm both
- it's working in the demo with the doubleclick
- the dark layout demo is broken :(
It was a bit of a struggle to make it work. I installed JDK 8 as that is the target version, and then some dependencies were still missing (Java 8 does not support modules yet, I'd rule out those):
Index: pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/pom.xml b/pom.xml
--- a/pom.xml (revision 437f9a90fbd3fa8f46898ae0348e9e296baa12c5)
+++ b/pom.xml (date 1639946873593)
@@ -19,6 +19,7 @@
<junit.platform.version>1.7.1</junit.platform.version>
<junit.jupiter.version>5.7.1</junit.jupiter.version>
<awaitility.version>4.0.3</awaitility.version>
+ <javaFx.version>18-ea+8</javaFx.version>
<testfx.version>4.0.6-alpha</testfx.version>
<testfx.monocle.version>8u76-b04</testfx.monocle.version> <!-- jdk-9+181 for Java 9 -->
@@ -241,6 +242,31 @@
</build>
<dependencies>
+ <dependency>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-base</artifactId>
+ <version>${javaFx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-controls</artifactId>
+ <version>${javaFx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-fxml</artifactId>
+ <version>${javaFx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-graphics</artifactId>
+ <version>${javaFx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.openjfx</groupId>
+ <artifactId>javafx-swing</artifactId>
+ <version>${javaFx.version}</version>
+ </dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
Thank you for putting in your time, I'd be superglad for a 0.0.7 alpha that I could use without the workaround :) .
from fxfilechooser.
Do you actually prefer the Dialog version over the Stage version?
You mean, this? https://github.com/Oliver-Loeffler/FXFileChooser#a-version-with-a-completely-customizable-stage I have not given it a try, yet. I was glad to get something to work with TestFX ':D
I can have a look.
Nice, it seems I can just use it as a drop-in replacement, that's fine then.
from fxfilechooser.
Kudos for your work-around!
from fxfilechooser.
Dark mode and resizing are now properly working with version 0.0.8
. Closed with 5e27cb4 and bebd9dd.
New version is available at Maven Central.
<dependency>
<groupId>net.raumzeitfalle.fx</groupId>
<artifactId>filechooser</artifactId>
<version>0.0.8</version>
</dependency>
from fxfilechooser.
Related Issues (20)
- Reduce memory consumption for large folders
- Progress Bar slowing down refresh of large directories down
- FileChooser hangs when a (removable) drive letter/location is entered via textfield
- FileChooserDialog does not show the actual location in some cases HOT 1
- Add checkstyle and editorconfig to ensure consistent formatting conventions HOT 1
- POM dependencies outdated
- Exclude demo code from build artifact
- Create Java-8 compatible release without demos HOT 1
- Fix performance issue in directory browser for huge directories HOT 1
- Create Java-9 compatible release including the module-info HOT 1
- Create Java-11/OpenJFX11 compatible release including the module-info HOT 1
- Create Java-16/OpenJFX16 compatible release including the module-info HOT 1
- Make DirectoryChooser and FileChooser compatible with SceneBuilder HOT 1
- Make file chooser configurable using FXML tags.
- Replace progress bar in director ychooser with an animation + add control to abort folder scanning.
- Make `SwingFileChooser` a true drop in replacement for `JFileChooser`
- When entering ".." in the FileBrowser text field, the directory should navigate one level up HOT 1
- Add option to make file search case insensitive HOT 2
- Problems with v0.0.11 in a Gradle build HOT 7
- Add flatten-maven-plugin to build in order to avoid need for parent pom to be published HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fxfilechooser.