Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>your code isn't runnable, </p> <p>1) don't mixing AWT Frame with Swing JComponents, not sure (never tested) but I think that <a href="http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html" rel="nofollow">AWTUtilities</a> is only for Swing JComponent, then </p> <pre><code>public class GameView extends Frame </code></pre> <p>could be </p> <pre><code>public class GameView extends JFrame </code></pre> <p>2) </p> <pre><code>this._boardview = new BoardView(); </code></pre> <p>must be </p> <pre><code>BoardView _boardview = new BoardView(); </code></pre> <p>3) for why reason is there code line, </p> <pre><code>RepaintManager.currentManager(null).setDoubleBufferingEnabled(true); </code></pre> <p>I saw code for printing where is for faster printing turn double buffering off, but value <code>currentManager(null)</code>, simply doesn't make me any sence</p> <p>4) never use <code>public void update(Graphics g)</code>, this method is used internally in the API, use <code>paintComponent</code> instead</p> <p>5) for moving with <code>JComponents</code> use <a href="http://docs.oracle.com/javase/tutorial/uiswing/misc/timer.html" rel="nofollow">Swing Timer</a> with calling <code>repaint()</code></p> <p>6) <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/label.html" rel="nofollow">JLabel</a> is transparent by default remove <code>this.setOpaque(false);</code></p> <p>7) <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/label.html" rel="nofollow">JLabel</a> haven't got imlemented any <a href="http://docs.oracle.com/javase/tutorial/uiswing/layout/index.html" rel="nofollow">LayoutManager</a>, remove <code>this.setLayout(null);</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload