Removed repaint override in CardPanel.

Ccaused awt deadlocks.
This commit is contained in:
magenoxx 2011-09-25 15:08:21 +04:00
parent f3316853a2
commit e63bec1977

View file

@ -481,14 +481,14 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
setBounds(x + xOffset, y + yOffset, width, height); setBounds(x + xOffset, y + yOffset, width, height);
} }
@Override /*@Override
public void repaint() { public void repaint() {
Rectangle b = getBounds(); Rectangle b = getBounds();
JRootPane rootPane = SwingUtilities.getRootPane(this); JRootPane rootPane = SwingUtilities.getRootPane(this);
if (rootPane == null) return; if (rootPane == null) return;
Point p = SwingUtilities.convertPoint(getParent(), b.x, b.y, rootPane); Point p = SwingUtilities.convertPoint(getParent(), b.x, b.y, rootPane);
rootPane.repaint(p.x, p.y, b.width, b.height); rootPane.repaint(p.x, p.y, b.width, b.height);
} }*/
public int getCardX() { public int getCardX() {
return getX() + cardXOffset; return getX() + cardXOffset;