145 respondGroup.add(none); 146 respondGroup.add(vaca); 147 respondGroup.add(thx); 148 149 autoRespond.add(none); 150 autoRespond.add(vaca); 151 autoRespond.add(thx); 152 153 none.setSelected(true); 154 filters.add(autoRespond); 155 156 return filters; 157 } 158 159 public JPanel buildConnectingPanel() { 160 JPanel connectPanel = new JPanel(); 161 connectPanel.setLayout(new ColumnLayout()); 162 163 JPanel protoPanel = new JPanel(); 164 JLabel protoLabel = new JLabel("Protocol"); 165 JComboBox protocol = new JComboBox(); 166 protocol.addItem("SMTP"); 167 protocol.addItem("IMAP"); 168 protocol.addItem("Other..."); 169 protoPanel.add(protoLabel); 170 protoPanel.add(protocol); 171 172 JPanel attachmentPanel = new JPanel(); 173 JLabel attachmentLabel = new JLabel("Attachments"); 174 JComboBox attach = new JComboBox(); 175 attach.addItem("Download Always"); 176 attach.addItem("Ask size > 1 Meg"); 177 attach.addItem("Ask size > 5 Meg"); 178 attach.addItem("Ask Always"); 179 attachmentPanel.add(attachmentLabel); 180 attachmentPanel.add(attach); 181 182 JCheckBox autoConn = new JCheckBox("Auto Connect"); 183 JCheckBox compress = new JCheckBox("Use Compression"); 184 autoConn.setSelected(true); 185 186 connectPanel.add(protoPanel); 187 connectPanel.add(attachmentPanel); 188 connectPanel.add(autoConn); 189 connectPanel.add(compress); 190 return connectPanel; 191 } 192 193 protected void centerDialog() { 194 Dimension screenSize = this.getToolkit().getScreenSize(); | 145 respondGroup.add(none); 146 respondGroup.add(vaca); 147 respondGroup.add(thx); 148 149 autoRespond.add(none); 150 autoRespond.add(vaca); 151 autoRespond.add(thx); 152 153 none.setSelected(true); 154 filters.add(autoRespond); 155 156 return filters; 157 } 158 159 public JPanel buildConnectingPanel() { 160 JPanel connectPanel = new JPanel(); 161 connectPanel.setLayout(new ColumnLayout()); 162 163 JPanel protoPanel = new JPanel(); 164 JLabel protoLabel = new JLabel("Protocol"); 165 JComboBox<String> protocol = new JComboBox<>(); 166 protocol.addItem("SMTP"); 167 protocol.addItem("IMAP"); 168 protocol.addItem("Other..."); 169 protoPanel.add(protoLabel); 170 protoPanel.add(protocol); 171 172 JPanel attachmentPanel = new JPanel(); 173 JLabel attachmentLabel = new JLabel("Attachments"); 174 JComboBox<String> attach = new JComboBox<>(); 175 attach.addItem("Download Always"); 176 attach.addItem("Ask size > 1 Meg"); 177 attach.addItem("Ask size > 5 Meg"); 178 attach.addItem("Ask Always"); 179 attachmentPanel.add(attachmentLabel); 180 attachmentPanel.add(attach); 181 182 JCheckBox autoConn = new JCheckBox("Auto Connect"); 183 JCheckBox compress = new JCheckBox("Use Compression"); 184 autoConn.setSelected(true); 185 186 connectPanel.add(protoPanel); 187 connectPanel.add(attachmentPanel); 188 connectPanel.add(autoConn); 189 connectPanel.add(compress); 190 return connectPanel; 191 } 192 193 protected void centerDialog() { 194 Dimension screenSize = this.getToolkit().getScreenSize(); |