08 December 2004 - java_dev (original) (raw)

01:12 pm - welshbard - HTML Parsing Is it possible to use the XML parsing classes in the Java Platform to parse HTML 4.0? Or are there other HTML parsing classes that I'm missing?I'm familiar with parsing XML in Java, but have never done much with HTML in Java.Thanks.
11:07 pm - util - Get notified of change in row selection Is there a better method for getting notified of changes in the row selected in a JTable than listening for mouse events and checking to see if the row selected has changed?table.addMouseListener(new MouseAdapter() { public void mouseReleased(MouseEvent e) { //do something with table.getSelectedRow() or table.getSelectedRows() } });Both adding a TableColumnModelListener to the table's column model and adding a ListSelectionListener to that model's selection model only give access to the event of a change in the column selected, not in the row selected, as far as I can tell. What is a better method than using a mouse listener for getting notified of changes in the row or rows selected in a JTable?