Commit 913b143f authored by hpi1's avatar hpi1

BDFramePeer: dispose Graphics object after use

parent 744ca2c4
......@@ -177,7 +177,9 @@ public class BDFramePeer extends BDComponentPeer implements FramePeer
public void setVisible(boolean b) {
//Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new WindowEvent((Frame)component, WindowEvent.WINDOW_ACTIVATED));
if (b == true) {
component.paint(getGraphics());
Graphics g = getGraphics();
component.paint(g);
g.dispose();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment