<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/protoreto/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/protoreto/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/protoreto/bugs/</id><updated>2010-06-29T15:00:50Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Menu sometimes stays open and doesn't react to keyb. input</title><link href="https://sourceforge.net/p/protoreto/bugs/1/" rel="alternate"/><published>2010-06-29T15:00:50Z</published><updated>2010-06-29T15:00:50Z</updated><author><name>Daniel Herding</name><uri>https://sourceforge.net/u/wikipedian/</uri></author><id>https://sourceforge.net75c447443b0b497574239b3fc943a039cfb3086b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sometimes the menu doesn't close properly after clicking somewhere, and it no longer responds to keyboard input. There is a similar bug in Jacareto, but I haven't yet found anyone else who is affected by this problem.&lt;br /&gt;
Jacareto bug: &lt;a href="https://sourceforge.net/tracker/?func=detail&amp;amp;aid=2847602&amp;amp;group_id=138313&amp;amp;atid=740403"&gt;https://sourceforge.net/tracker/?func=detail&amp;amp;aid=2847602&amp;amp;group_id=138313&amp;amp;atid=740403&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By trial and error, I found out that removing an invokeLater() call in ScreenPanel helps.&lt;/p&gt;
&lt;p&gt;Before:&lt;/p&gt;
&lt;p&gt;public void refreshLookAndFeel() {&lt;br /&gt;
SwingUtilities.invokeLater(new Runnable() {&lt;br /&gt;
public void run() {&lt;br /&gt;
lookAndFeelManager.applyLookAndFeel(ScreenPanel.this);&lt;/p&gt;
&lt;p&gt;ComponentAutosizer.get().autosize(getComponents());&lt;br /&gt;
}&lt;br /&gt;
});&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;After:&lt;/p&gt;
&lt;p&gt;public void refreshLookAndFeel() {&lt;br /&gt;
lookAndFeelManager.applyLookAndFeel(ScreenPanel.this);&lt;/p&gt;
&lt;p&gt;ComponentAutosizer.get().autosize(getComponents());&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;However, the problem still occurs from time to time.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>