M201370367 / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 1 forks source link

Beanshell desktop error #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Beanshell desktop error hanging forever and never shown.

The error is due to swing show() outside a swing thread.

proposed correction 
file src/bsh/commands/desktop.bsh
replace following (lines 215 to 220)
        frame.show();

    Util.endSplashScreen();

    frame.toFront();
    workSpace.frame.selected=true;

by.
    Util.endSplashScreen();
        EventQueue.invokeLater(new Runnable() {
            public void run() {
               frame.setVisible(true);    
               frame.toFront();
           workSpace.frame.selected=true;
            }
           }
        );

it seems to correct the error.

Original issue reported on code.google.com by ChFa...@gmail.com on 10 Dec 2010 at 10:55

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r58.

Original comment by pejob...@gmail.com on 24 Feb 2011 at 4:44

GoogleCodeExporter commented 9 years ago
applied the provided fix

Original comment by pejob...@gmail.com on 24 Feb 2011 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by pejob...@gmail.com on 25 Feb 2011 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by pejob...@gmail.com on 20 Oct 2011 at 7:12