Git Product home page Git Product logo

javafx-ui-sandbox's People

Contributors

guldner avatar marcojakob avatar mbsanchez avatar skinner927 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

javafx-ui-sandbox's Issues

Performing an Input Dialog "Combo Box"

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.

text on buttons

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!

images fail to load when running in webstart

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;
    }
}

jdk8 incompatible

NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J

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)

Ability for Custom Dialogs

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.

Invalid cursor specification

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)

Localization support

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.

License Issue - GPLv2 compatibility with GPLv3

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.

Dialog not centered to owner

As far as I can tell, new dialogs are centering to the display and not to the current location of the owner stage.

Project can't be used when the jar is signed (original javafx package)

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.