< prev index next >

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

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

*** 1581,1599 **** /** * @param prefix i18n bundle prefix * @param args Arguments for the user message string, which is prefix.txt. */ ! private int showConfirmListDialog(String prefix, Object[] args, ListModel model) { // resources needed: // prefix.title JPanel p = uif.createPanel("ttp.confirmPanel", false); JTextArea msg = uif.createMessageArea(prefix, args); p.setLayout(new BorderLayout()); p.add(msg, BorderLayout.NORTH); ! JList list = uif.createList("treep.nodeList", model); p.add(uif.createScrollPane(list, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), BorderLayout.CENTER); return uif.showCustomYesNoDialog(prefix, p); --- 1581,1599 ---- /** * @param prefix i18n bundle prefix * @param args Arguments for the user message string, which is prefix.txt. */ ! private int showConfirmListDialog(String prefix, Object[] args, ListModel<?> model) { // resources needed: // prefix.title JPanel p = uif.createPanel("ttp.confirmPanel", false); JTextArea msg = uif.createMessageArea(prefix, args); p.setLayout(new BorderLayout()); p.add(msg, BorderLayout.NORTH); ! JList<?> list = uif.createList("treep.nodeList", model); p.add(uif.createScrollPane(list, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), BorderLayout.CENTER); return uif.showCustomYesNoDialog(prefix, p);
< prev index next >