Menu

Compatibility Java Web Start

Adrien
2013-06-26
2013-06-26
  • Adrien

    Adrien - 2013-06-26

    I want to launch SQLeo with Java Web Start, but there is a problem with the loading of one icon (the other icons are fined). For some reason, ClassLoader.getSystemResource("images/sqleo.png") doesn't work in Java Web Start.

    So could you please apply this small patch ?

    --- src/com/sqleo/environment/Application.java  (révision 122)
    +++ src/com/sqleo/environment/Application.java  (copie de travail)
    @@ -309,7 +309,7 @@
             Application.window = new MDIWindow();
            //set icon
            JFrame.setDefaultLookAndFeelDecorated(true);
    -       URL imgUrl = ClassLoader.getSystemResource("images/sqleo.png");
    +       URL imgUrl = Resources.class.getResource("/images/sqleo.png");
            Application.window.setIconImage(new ImageIcon(imgUrl).getImage());
            Application.window.show();
    

    Thanks a lot...

    Adrien

     
  • PAscal

    PAscal - 2013-06-26

    Tested on windows,
    we will see for linux/macOS later...

    demand validated ticket #126, should be released with 2013.07 version.

    Regards
    PAscal

    rem: it wil cost you a donation to the project :-)

     

Anonymous
Anonymous

Add attachments
Cancel