Package model

Examples of model.Artist


  }
  public void valueChanged(ListSelectionEvent e) {
    if (!e.getValueIsAdjusting()) {
      int row =table.getSelectedRow();
      if (row>=0) {
        Artist selection = ((Artist) table.getModel().getValueAt(row, 0));
        view.artistSelected(selection);
      }
    }
  }
View Full Code Here


    };
   
    //übertragen der Artists in table-gerechtes array
    int length=lib.getArtists().length;
    Artist[][] art = new Artist[length+1][length+1];
    art[0][0] = new Artist(0, "Alle ("+length+")");   //<-- Die 0 als ID signalisiert, dass Alle angezeigt werden sollen
    for (int i = 1; i <= length; i++) {
      art[i][0] = lib.getArtists()[i-1];// i-1 weil alle noch oben drüber steht und i bei eins beginnt.
    }
    artists = new ScrollByClickOnHeaderTable(art, new String[]{"Interpreten"}, ml);
   
View Full Code Here

TOP

Related Classes of model.Artist

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.