0

I have been rewriting a 100,000 line application from 2009 in modern Java/Eclipse/Mac os12, and there are two problem with the windows and menus that open within my main window. 1. Sometimes the text in a drop down box is missing (in which case closing and re-opening will cause it to appear) and 2. When dragging a small window around within my main window, the small window will flash on and off (during which time the background where the small window should be). This flashing is pretty annoying and hurts my eyes after a while.

Most of the GUI code is the same as in 2009, but I did have to comment out several lines that referred to the apple eawt.xxx such as the ones below - the application runs okay though, other than than and some other problems I am posting separately.

Commented out lines:

com.apple.eawt.Application application =  Application.getApplication();
application.addApplicationListener(new com.apple.eawt.ApplicationAdapter()     {        
    public void handleAbout(ApplicationEvent ae) {
            new AboutDialog();  
            ae.setHandled(true);                 
    }
. . . 

}
Paul
  • 11
  • 3
  • 1
    There is no way to know the cause of your first paragraph without seeing the code behind it. As for the about handler, the replacement for eawt is [Desktop.setAboutHandler](https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/Desktop.html#setAboutHandler(java.awt.desktop.AboutHandler)). – VGR Mar 14 '23 at 20:38

0 Answers0