< prev index next >

src/com/sun/javatest/mrep/ConflictResolutionDialog.java

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


  49 import javax.swing.border.Border;
  50 import javax.swing.event.ListSelectionEvent;
  51 import javax.swing.event.ListSelectionListener;
  52 
  53 import com.sun.javatest.tool.UIFactory;
  54 import javax.swing.JOptionPane;
  55 
  56 public class ConflictResolutionDialog extends JDialog {
  57 
  58     private String resolveButtonStr = "resolve";
  59     private String cancelButtonStr = "cancel";
  60     private String useMostRecentCheckBoxStr = "useMost";
  61 
  62     private JCheckBox preferredReportCheckBox;
  63     private JCheckBox useMostRecentCheckBox;
  64 
  65     private JButton resolveButton;
  66     private JButton cancelButton;
  67 
  68     private DefaultListModel<String> listModel;
  69     private JList list;
  70 
  71     private int     selectedIndex;
  72     private boolean bPreferredReport;
  73     private boolean bUseMostRecent;
  74 
  75     private UIFactory uif;
  76 
  77     private boolean cancel = false;
  78 
  79 
  80     public ConflictResolutionDialog(JFrame parent, String testName, String[] reportsList, boolean bPreferredSet, UIFactory uif) {
  81         super(parent, true);
  82         this.uif = uif;
  83 
  84         setName("conflict");
  85         setTitle(uif.getI18NString("conflict.name"));
  86         setResizable(false);
  87 
  88         Container cp = getContentPane();
  89         cp.setLayout(new BorderLayout());




  49 import javax.swing.border.Border;
  50 import javax.swing.event.ListSelectionEvent;
  51 import javax.swing.event.ListSelectionListener;
  52 
  53 import com.sun.javatest.tool.UIFactory;
  54 import javax.swing.JOptionPane;
  55 
  56 public class ConflictResolutionDialog extends JDialog {
  57 
  58     private String resolveButtonStr = "resolve";
  59     private String cancelButtonStr = "cancel";
  60     private String useMostRecentCheckBoxStr = "useMost";
  61 
  62     private JCheckBox preferredReportCheckBox;
  63     private JCheckBox useMostRecentCheckBox;
  64 
  65     private JButton resolveButton;
  66     private JButton cancelButton;
  67 
  68     private DefaultListModel<String> listModel;
  69     private JList<?> list;
  70 
  71     private int     selectedIndex;
  72     private boolean bPreferredReport;
  73     private boolean bUseMostRecent;
  74 
  75     private UIFactory uif;
  76 
  77     private boolean cancel = false;
  78 
  79 
  80     public ConflictResolutionDialog(JFrame parent, String testName, String[] reportsList, boolean bPreferredSet, UIFactory uif) {
  81         super(parent, true);
  82         this.uif = uif;
  83 
  84         setName("conflict");
  85         setTitle(uif.getI18NString("conflict.name"));
  86         setResizable(false);
  87 
  88         Container cp = getContentPane();
  89         cp.setLayout(new BorderLayout());


< prev index next >