< prev index next >

src/demo/share/jfc/Metalworks/MetalworksPrefs.java

Print this page

        

@@ -160,20 +160,20 @@
         JPanel connectPanel = new JPanel();
         connectPanel.setLayout(new ColumnLayout());
 
         JPanel protoPanel = new JPanel();
         JLabel protoLabel = new JLabel("Protocol");
-        JComboBox protocol = new JComboBox();
+        JComboBox<String> protocol = new JComboBox<>();
         protocol.addItem("SMTP");
         protocol.addItem("IMAP");
         protocol.addItem("Other...");
         protoPanel.add(protoLabel);
         protoPanel.add(protocol);
 
         JPanel attachmentPanel = new JPanel();
         JLabel attachmentLabel = new JLabel("Attachments");
-        JComboBox attach = new JComboBox();
+        JComboBox<String> attach = new JComboBox<>();
         attach.addItem("Download Always");
         attach.addItem("Ask size > 1 Meg");
         attach.addItem("Ask size > 5 Meg");
         attach.addItem("Ask Always");
         attachmentPanel.add(attachmentLabel);
< prev index next >