+ cmb_filterOption.setFont(VERDANA_12);
+ cmb_filterOption.setToolTipText(
+ MessageManager.getString("info.select_filter_option"));
+ cmb_filterOption.addItemListener(this);
+ // add CustomComboSeparatorsRenderer to filter option combo-box
+ cmb_filterOption.setRenderer(new CustomComboSeparatorsRenderer(
+ (ListCellRenderer<Object>) cmb_filterOption.getRenderer())
+ {
+ @Override
+ protected boolean addSeparatorAfter(JList list, FilterOption value,
+ int index)
+ {
+ return value.isAddSeparatorAfter();
+ }
+ });
+
+ chk_invertFilter.addItemListener(this);
+ btn_queryTDB = new JButton();
+ if (Platform.isMac())
+ {
+ // needed to make icon button have round corners in vaqua
+ btn_queryTDB.putClientProperty("JButton.buttonType", "bevel");
+ }
+ btn_queryTDB.setMargin(new Insets(0, 16, 0, 20));
+ btn_queryTDB
+ .setText(MessageManager.getString("label.search_3dbeacons"));
+ btn_queryTDB.setIconTextGap(12);
+ btn_queryTDB.setIcon(tdbImage);
+ btn_queryTDB.setVerticalTextPosition(SwingConstants.CENTER);
+ btn_queryTDB.setHorizontalTextPosition(SwingConstants.TRAILING);
+ btn_queryTDB.setFont(VERDANA_12);
+ btn_queryTDB.setToolTipText(
+ MessageManager.getString("label.find_models_from_3dbeacons"));
+ // btn_queryTDB.setPreferredSize(new Dimension(200, 32));
+ btn_queryTDB.setVisible(false);
+
+ targetView.setVisible(false);
+
+ actionsPanel = new JPanel(new MigLayout());
+ actionsPanel.add(targetView, "left");
+ actionsPanel.add(btn_add, "wrap");
+ actionsPanel.add(chk_superpose, "left");
+ actionsPanel.add(btn_newView);
+ actionsPanel.add(btn_cancel, "right");
+
+ JPanel pnl_main = new JPanel(new BorderLayout());
+ JPanel pnl_controls = new JPanel();
+ pnl_queryTDB = new JPanel();
+ pnl_queryTDB.setLayout(new FlowLayout(FlowLayout.CENTER, 4, 4));
+ pnl_queryTDB.setBackground(getBackground());
+ pnl_queryTDB.add(btn_queryTDB);
+
+ pnl_queryTDB.setVisible(false);
+ pnl_main.add(pnl_queryTDB, BorderLayout.NORTH);
+ pnl_controls.add(cmb_filterOption);
+ pnl_controls.add(lbl_loading);
+ pnl_controls.add(chk_invertFilter);
+ pnl_main.add(pnl_controls, BorderLayout.CENTER);
+ lbl_loading.setVisible(false);
+
+ // JPanel pnl_fileChooser = new JPanel(new FlowLayout());
+ // pnl_fileChooser.add(btn_pdbFromFile);
+ // pnl_fileChooser.add(lbl_fromFileStatus);
+
+ JPanel pnl_fileOptions = new JPanel();
+ pnl_fileOptions.setLayout(new GridBagLayout());
+ GridBagConstraints gbc = new GridBagConstraints();
+ gbc.gridx = 0;
+ gbc.gridy = 0;
+ gbc.weightx = 0.0;
+ gbc.weighty = 0.0;
+ gbc.insets = new Insets(0, 0, 2, 0);
+ gbc.fill = GridBagConstraints.NONE;
+ gbc.anchor = GridBagConstraints.FIRST_LINE_START;
+ // pnl_fileOptions.add(pnl_fileChooser, gbc);
+ pnl_fileOptions.add(btn_pdbFromFile, gbc);
+ gbc.gridy++;
+ gbc.insets = new Insets(0, 0, 18, 0);
+ pnl_fileOptions.add(lbl_pdbFile, gbc);
+ gbc.gridy++;
+
+ gbc.insets = new Insets(0, 0, 2, 0);
+ pnl_fileOptions.add(new JLabel(
+ MessageManager.getString("label.structure_import_options")),
+ gbc);
+ gbc.gridy++;
+
+ gbc.insets = new Insets(0, 0, 6, 0);
+ pnl_fileOptions.add(lbl_chooseTempFacType, gbc);
+ gbc.gridy++;
+ gbc.insets = new Insets(0, 0, 18, 0);
+ pnl_fileOptions.add(combo_tempFacAs, gbc);
+ gbc.gridy++;
+ gbc.insets = new Insets(0, 0, 6, 0);
+ pnl_fileOptions.add(btn_paeMatrixFile, gbc);
+ gbc.gridy++;
+ gbc.insets = new Insets(0, 0, 2, 0);
+ gbc.weighty = 1.0;
+ pnl_fileOptions.add(lbl_paeFile, gbc);
+
+ JPanel pnl_fileChooserBL = new JPanel(new BorderLayout());
+ pnl_fileChooserBL.add(fileChooserAssSeqPanel, BorderLayout.PAGE_START);
+ pnl_fileChooserBL.add(pnl_fileOptions, BorderLayout.CENTER);
+
+ JPanel pnl_idInput = new JPanel(new FlowLayout());
+ pnl_idInput.add(txt_search);
+ pnl_idInput.add(lbl_pdbManualFetchStatus);
+
+ JPanel pnl_idInputBL = new JPanel(new BorderLayout());
+ pnl_idInputBL.add(idInputAssSeqPanel, BorderLayout.NORTH);
+ pnl_idInputBL.add(pnl_idInput, BorderLayout.CENTER);