b[i].setVerticalAlignment(JLabel.BOTTOM);
b[i].setHorizontalTextPosition(JLabel.RIGHT);
//b[i].setVerticalTextPosition(JLabel.BOTTOM);
b[i].setPreferredSize(d);
repertoire.add(b[i]);
b[i].addMouseListener(new MouseListener() {
@Override
public void mouseReleased(MouseEvent e) {
// TODO Auto-generated method stub
}
@Override
public void mousePressed(MouseEvent e) {
// TODO Auto-generated method stub
}
@Override
public void mouseExited(MouseEvent e) {
// TODO Auto-generated method stub
}
@Override
public void mouseEntered(MouseEvent e) {
// TODO Auto-generated method stub
}
@Override
public void mouseClicked(MouseEvent e) {
repertoire.removeAll();
build(file, l);
repertoire.setVisible(false);
repertoire.validate();
repertoire.setVisible(true);
}
});
}
else
{
texteDetail.delete(0, texteDetail.length());
texteDetail.append("<HTML>");
texteDetail.append("nom : "+file.getName());
texteDetail.append("<br>");
texteDetail.append("Taille : "+file.getUsableSpace()/1000);
texteDetail.append("<br>");
texteDetail.append("modifié : "+dateFormat.format(new Date(file.lastModified())));
if(getRightPlugin(getFileExtension(file), l) != null)
b[i] = new JLabel(texteDetail.toString(),getRightPlugin(getFileExtension(file), l).getIcon(),JLabel.CENTER);
else
b[i] = new JLabel(texteDetail.toString(),new ImageIcon("../Plugin/bin/plugins/repertoireDetail/noIcon.png"),JLabel.CENTER);
b[i].setVerticalAlignment(JLabel.BOTTOM);
b[i].setHorizontalTextPosition(JLabel.RIGHT);
//b[i].setVerticalTextPosition(JLabel.BOTTOM);
b[i].setPreferredSize(d);
b[i].setOpaque(true);
repertoire.add(b[i]);
b[i].addMouseListener(new MouseListener() {
@Override
public void mouseReleased(MouseEvent e) {
// TODO Auto-generated method stub