Package weavingdraft

Examples of weavingdraft.PatternSquare


  public void drawDesign(int[][] design, JPanel the_panel, JFrame frame) {
    int pos = 0;
    PatternSquare[] squares = new PatternSquare[16*16];
    for(int i = 0; i < 16; i++){
      for(int j = 0; j < 16; j++){
        PatternSquare panel = new PatternSquare(i, j);
        if (design[i][j] == 1) {
          panel.setBlack();
        }
        else {
          panel.setWhite();
        }
        the_panel.add(panel);
        squares[pos] = panel;
        pos++;
      }
View Full Code Here

TOP

Related Classes of weavingdraft.PatternSquare

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.