mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Bugfix attempt #6: improved visibility of paintComponent from protected to public
This commit is contained in:
@@ -148,9 +148,6 @@ public final class FControl {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
Singletons.getView().validate();
|
|
||||||
Singletons.getView().repaint();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Gets the match controller.
|
/** Gets the match controller.
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ public class ViewMatchUI extends FPanel {
|
|||||||
* Graphics object
|
* Graphics object
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void paintComponent(final Graphics g) {
|
public void paintComponent(final Graphics g) {
|
||||||
h = getHeight();
|
h = getHeight();
|
||||||
w = getWidth();
|
w = getWidth();
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ public class FPanel extends JPanel {
|
|||||||
* @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
|
* @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void paintComponent(final Graphics graphics0) {
|
public void paintComponent(final Graphics graphics0) {
|
||||||
super.paintComponent(graphics0);
|
super.paintComponent(graphics0);
|
||||||
|
|
||||||
pnlW = this.getWidth();
|
pnlW = this.getWidth();
|
||||||
|
|||||||
Reference in New Issue
Block a user