marcojakob / javafx-ui-sandbox Goto Github PK
View Code? Open in Web Editor NEWSandbox UI Controls from the official OpenJFX repository
License: MIT License
Sandbox UI Controls from the official OpenJFX repository
License: MIT License
There appears to be no maven dependency for this project.
Hello, first of all nice work with these dialogs. They are very useful.
I'm having a little problem showing an input dialog with choices. When i pick on the combo box the choices doesn't display (they are hidden behind the dialog box). I think that is related to a configuration of the javafx application because this problem did not happend few days ago.
Regards!
Federico.
I would like to use these dialogs for different language and I would like to have the ability to change the text of the buttons to the other languages equivalent text.
Maybe this is more of a suggestion than an issue, but if I want to use the dialogs in a different language's program, I need the feature.
Cheers
Gread dialogs!
When running from within java webstart and attempting to show an error dialog the image fails to load.
"Can't create ImageView for key 'error48.image', which has resource name '/com/sun/javafx/scene/control/skin/resources/error48.png' and URL 'null'"
Below is the code of interest from the Dialogs class.
/**
* Returns an <code>ImageView</code> given an image file name or resource name
*/
static public ImageView getIcon(final String key) {
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<ImageView>() {
@Override public ImageView run() {
String resourceName = getString(key);
URL url = ControlResources.class.getResource(resourceName);
if (url == null) {
System.out.println("Can't create ImageView for key '" + key +
"', which has resource name '" + resourceName +
"' and URL 'null'");
return null;
}
return getIcon(url);
}
});
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
}
Caused by: java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
at javafx.scene.control.Dialogs$FXDialog$RootPane.(Dialogs.java:1310)
at javafx.scene.control.Dialogs$FXDialog.(Dialogs.java:1131)
at javafx.scene.control.Dialogs$FXDialog.(Dialogs.java:1088)
at javafx.scene.control.Dialogs$DialogTemplate.(Dialogs.java:616)
at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:494)
at javafx.scene.control.Dialogs.showConfirmDialog(Dialogs.java:226)
It would be nice to have custom dialogs. The Dialogs
class would take care of displaying the OK / Cancel buttons while allowing custom compoments as the 'message'.
Something like Dialogs.showCustom(..., Stage dlgStage, ...) was suggested.
when the dialog is shown I get "java.lang.IllegalArgumentException: Invalid cursor specification" warning. I can't click anything on dialog window neither button nor window close button.
WARNING: com.sun.javafx.css.StyleHelper calculateValue caught:
java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.center_right
at java.lang.Enum.valueOf(Enum.java:236)
at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:60)
at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:37)
at com.sun.javafx.css.StyleHelper.calculateValue(StyleHelper.java:1537)
at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:1139)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:861)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Scene.doCSSPass(Scene.java:446)
at javafx.scene.Scene.preferredSize(Scene.java:1449)
at javafx.scene.Scene.impl_preferredSize(Scene.java:1516)
at javafx.stage.Window$10.invalidated(Window.java:718)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
at javafx.stage.Window.setShowing(Window.java:781)
at javafx.stage.Window.show(Window.java:796)
at javafx.stage.Stage.show(Stage.java:229)
at javafx.stage.Stage.showAndWait(Stage.java:395)
at javafx.scene.control.Dialogs$DialogTemplate.show(Dialogs.java:670)
at javafx.scene.control.Dialogs.showDialog(Dialogs.java:480)
at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:474)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:360)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:350)
at rageos.Veritabani.init(Veritabani.java:51)
at rageos.Rageos.initialize(Rageos.java:119)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2152)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2744)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2723)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2709)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2696)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2685)
at rageos.Rageos.start(Rageos.java:55)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
WARNING: com.sun.javafx.css.StyleHelper calculateValue caught:
java.lang.IllegalArgumentException: Invalid cursor specification
at javafx.scene.Cursor.cursor(Cursor.java:264)
at com.sun.javafx.css.converters.CursorConverter.convert(CursorConverter.java:55)
at com.sun.javafx.css.converters.CursorConverter.convert(CursorConverter.java:33)
at com.sun.javafx.css.StyleHelper.calculateValue(StyleHelper.java:1537)
at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:1139)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:861)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Scene.doCSSPass(Scene.java:446)
at javafx.scene.Scene.preferredSize(Scene.java:1449)
at javafx.scene.Scene.impl_preferredSize(Scene.java:1516)
at javafx.stage.Window$10.invalidated(Window.java:718)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
at javafx.stage.Window.setShowing(Window.java:781)
at javafx.stage.Window.show(Window.java:796)
at javafx.stage.Stage.show(Stage.java:229)
at javafx.stage.Stage.showAndWait(Stage.java:395)
at javafx.scene.control.Dialogs$DialogTemplate.show(Dialogs.java:670)
at javafx.scene.control.Dialogs.showDialog(Dialogs.java:480)
at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:474)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:360)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:350)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
WARNING: com.sun.javafx.css.StyleHelper calculateValue caught:
java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.center_right
at java.lang.Enum.valueOf(Enum.java:236)
at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:60)
at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:37)
at com.sun.javafx.css.StyleHelper.calculateValue(StyleHelper.java:1537)
at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:1139)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:861)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Scene.doCSSPass(Scene.java:446)
at javafx.scene.Scene.access$3800(Scene.java:170)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2202)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method)
at com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(GtkApplication.java:137)
at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:383)
at com.sun.glass.ui.EventLoop.enter(EventLoop.java:83)
at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:520)
at javafx.stage.Stage.showAndWait(Stage.java:397)
at javafx.scene.control.Dialogs$DialogTemplate.show(Dialogs.java:670)
at javafx.scene.control.Dialogs.showDialog(Dialogs.java:480)
at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:474)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:360)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:350)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
WARNING: com.sun.javafx.css.StyleHelper calculateValue caught:
java.lang.IllegalArgumentException: Invalid cursor specification
at javafx.scene.Cursor.cursor(Cursor.java:264)
at com.sun.javafx.css.converters.CursorConverter.convert(CursorConverter.java:55)
at com.sun.javafx.css.converters.CursorConverter.convert(CursorConverter.java:33)
at com.sun.javafx.css.StyleHelper.calculateValue(StyleHelper.java:1537)
at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:1139)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:861)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Scene.doCSSPass(Scene.java:446)
at javafx.scene.Scene.access$3800(Scene.java:170)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2202)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method)
at com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(GtkApplication.java:137)
at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:383)
at com.sun.glass.ui.EventLoop.enter(EventLoop.java:83)
at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:520)
at javafx.stage.Stage.showAndWait(Stage.java:397)
at javafx.scene.control.Dialogs$DialogTemplate.show(Dialogs.java:670)
at javafx.scene.control.Dialogs.showDialog(Dialogs.java:480)
at javafx.scene.control.Dialogs.showSimpleContentDialog(Dialogs.java:474)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:360)
at javafx.scene.control.Dialogs.showErrorDialog(Dialogs.java:350)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
Currently button labels is taken from internal resource bundle.
This bundle support english and spanish languages.
And there is no options to modify button labels.
Please, add option to set button labels.
Hello,
Thanks for developing such a great library. My colleagues and I have been using your Javafx-Dialogs library for a Java7 tool. We want to release our tool under GPLv3. However, since the current version of your tool is released under GPLv2 we cannot use it in our tool and release the subsequent package under GPLv3. (We have other GPLv3 dependencies as well).
It would be great if you too can release your software under GPLv2 or later rather than just GPLv2 as GPLv2 only doesn’t play well with GPLv3 release and the "GPLv2 or later" is compatible with more licenses.
A full compatibility matrix of licenses can be seen at:http://www.gnu.org/licenses/gpl-faq.html#AllCompatibility
Thanks again for open sourcing such a useful library. I look forward to your reply.
As far as I can tell, new dialogs are centering to the display and not to the current location of the owner stage.
We sign all of our jars and all of our dependencies with our companies certificate. Running a signed JavaFX application that was packaged as a native bundle using the official FX package tools we'll get this exception:
java.lang.SecurityException: class "javafx.scene.control.Dialogs"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:943)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:657)
at java.lang.ClassLoader.defineClass(ClassLoader.java:785)
This is because of the same package name as the original FX source.
Do you have any plans to modify the package name to prevent this issue?
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.