Ignore:
Timestamp:
05/06/20 10:52:22 (4 years ago)
Author:
bnemhaus
Message:

org.expeditee.gui.Browser ->
org.expeditee.items.widgets.JfxBrowser ->
Fixed exception that was sometimes happening when Expeditee was closed after a JfxBrowser had been in use. Issue was that JfxBrowser runs operations on JFXThread which needed to be shut down nicely. Sometimes when Expeditee gets closed, and the JfxBrowser had something run in another thread, an exception would be caused when the JFXThread got terminated unexpectedly while running something. The solution was to detect if the JfxBrowser ever gets used, and if it is used then Expeditee must nicely close JFX thread as part of its shut down process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/JfxBrowser.java

    r1102 r1526  
    103103public class JfxBrowser extends DataFrameWidget {
    104104       
     105        public static boolean JFXBROWSER_IN_USE = false;
     106       
    105107        private static final String BACK = "back";
    106108        private static final String FORWARD = "forward";
     
    136138               
    137139                Font.loadFont(ClassLoader.getSystemResourceAsStream("org/expeditee/assets/resources/fonts/FontAwesome/fontawesome-webfont.ttf"), 12);
    138                
    139140                try {
    140141                MouseEvent_x = MouseEvent.class.getDeclaredField("x");
     
    179180                        }
    180181                });
     182               
     183                JFXBROWSER_IN_USE = true;
    181184        }
    182185       
Note: See TracChangeset for help on using the changeset viewer.