X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.core%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fcore%2Ftests%2FGUITest.java;h=544b064fe5bfc1122dcbb4854aa715c5ee91cc61;hb=cc4a905123efa6afb61c95cca21f22b78b194734;hp=7d0662195270a055431f2365a5dea7e8dc65a832;hpb=e202298a91603f3b8cfae3c1192e5be796db2786;p=Mograsim.git diff --git a/net.mograsim.logic.core/src/net/mograsim/logic/core/tests/GUITest.java b/net.mograsim.logic.core/src/net/mograsim/logic/core/tests/GUITest.java index 7d066219..544b064f 100644 --- a/net.mograsim.logic.core/src/net/mograsim/logic/core/tests/GUITest.java +++ b/net.mograsim.logic.core/src/net/mograsim/logic/core/tests/GUITest.java @@ -114,7 +114,7 @@ public class GUITest extends JPanel public Timeline getTimeline() { return t; - }; + } @Override public void paint(Graphics some_g) @@ -177,6 +177,7 @@ public class GUITest extends JPanel g.setFont(g.getFont().deriveFont(Math.min(height, width) / 40f)); } + @SuppressWarnings("static-method") private void drawString(Graphics g, String s, int x, int y, double anchorX, double anchorY) { int h = g.getFontMetrics().getAscent();