< prev index next >

src/com/sun/javatest/exec/TP_OutputSubpanel.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 698,709 **** } } } public void valueChanged(ListSelectionEvent e) { ! JList l = (JList) (e.getSource()); ! TOCEntry entry = (TOCEntry) (l.getSelectedValue()); if (entry == null) return; titleField.setText(entry.getTitle()); currentTOCEntry = entry.getID(); String outputName = entry.getOutputName(); --- 698,709 ---- } } } public void valueChanged(ListSelectionEvent e) { ! JList<TOCEntry> l = (JList<TOCEntry>) (e.getSource()); ! TOCEntry entry = (l.getSelectedValue()); if (entry == null) return; titleField.setText(entry.getTitle()); currentTOCEntry = entry.getID(); String outputName = entry.getOutputName();
*** 875,885 **** private TestResult.Section section; private String outputName; // null for section entry } private class TOCRenderer extends DefaultListCellRenderer { ! public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { JLabel l = (JLabel) super.getListCellRendererComponent(list, null, index, --- 875,885 ---- private TestResult.Section section; private String outputName; // null for section entry } private class TOCRenderer extends DefaultListCellRenderer { ! public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { JLabel l = (JLabel) super.getListCellRendererComponent(list, null, index,
< prev index next >