Bonjour
j'ai un jTable je voudrai qu'au passage de la sourie sur les lignes de la 5 éme colonne le contenu s'affiche dans un Tool Tips
voici mon jTable:
for (int i = 1; i <= 5; i++)
{
columnNames.addElement( md.getColumnName(i) );
}
while (rs.next())
{
Vector rowPP = new Vector(columnsPP);
for (int i = 1; i <= 5; i++)
{
rowPP.addElement( rs.getObject(i) );
}
data.addElement( rowPP );
}
rs.close();
stmt.close();
}
catch(Exception e1)
{
System.out.println( e1 );
} catch (Throwable ex) {
/** @todo Handle this exception */
}JTable tablePO = new JTable(data, columnNames);
JScrollPane scrollanePO = new JScrollPane(tablePO );
tablePO.setPreferredScrollableViewportSize(new Dimension(570, 50));
jPanel10.add(jPanel4);
jPanel4.add(scrollanePO, new GridBagConstraints(0, 0, 4, 1, 1.0, 1.0
, GridBagConstraints.NORTH, GridBagConstraints.NONE,
new Insets(9, 0, 14, 1), 108, 107));
scrollanePO.getViewport().add(tablePO);