protected JComboBox<String> structViewer = new JComboBox<>();
+ protected JTextField structureDimensions = new JTextField();
+
protected JTextField chimeraPath = new JTextField();
protected ButtonGroup mappingMethod = new ButtonGroup();
structViewer.addItem(ViewerType.JMOL.name());
structViewer.addItem(ViewerType.CHIMERA.name());
structViewer.addActionListener(new ActionListener()
+
{
@Override
public void actionPerformed(ActionEvent e)
});
structureTab.add(structViewer);
+ // BH 2019.07.12
+ ypos += lineSpacing;
+ JLabel dimLabel = new JLabel();
+ dimLabel.setFont(new java.awt.Font("SansSerif", 0, 11));
+ dimLabel.setHorizontalAlignment(SwingConstants.LEFT);
+ dimLabel.setText(
+ MessageManager.getString("label.structure_dimensions"));
+ dimLabel.setBounds(new Rectangle(10, ypos, 140, height));
+ structureTab.add(dimLabel);
+
+ structureDimensions.setFont(LABEL_FONT);
+ structureDimensions.setBounds(new Rectangle(160, ypos, 120, height));
+ structureTab.add(structureDimensions);
+
ypos += lineSpacing;
JLabel pathLabel = new JLabel();
pathLabel.setFont(new java.awt.Font("SansSerif", 0, 11));
fontLabel.setHorizontalAlignment(SwingConstants.RIGHT);
fontLabel.setText(MessageManager.getString("label.font"));
fontSizeCB.setFont(LABEL_FONT);
- fontSizeCB.setBounds(new Rectangle(320, 112, 65, 23));
+ fontSizeCB.setBounds(new Rectangle(320, 115, 65, 23)); // BH 2019.09.24 y
+ // added 3 pixels for
+ // Java/Windows
fontStyleCB.setFont(LABEL_FONT);
- fontStyleCB.setBounds(new Rectangle(382, 112, 80, 23));
+ fontStyleCB.setBounds(new Rectangle(382, 115, 80, 23)); // BH 2019.09.24 y
+ // added 3 pixels
+ // for Java/Windows
fontNameCB.setFont(LABEL_FONT);
- fontNameCB.setBounds(new Rectangle(172, 112, 147, 23));
+ fontNameCB.setBounds(new Rectangle(172, 115, 147, 23)); // BH 2019.09.24 y
+ // added 3 pixels
+ // for Java/Windows
gapSymbolCB.setFont(LABEL_FONT);
gapSymbolCB.setBounds(new Rectangle(172, 215, 69, 23));
DefaultListCellRenderer dlcr = new DefaultListCellRenderer();
sortAutocalc.setBounds(new Rectangle(290, 285, 165, 21));
JPanel annsettingsPanel = new JPanel();
- annsettingsPanel.setBounds(new Rectangle(173, 13, 320, 96));
+ annsettingsPanel.setBounds(new Rectangle(173, 13, 330, 100)); // BH
+ // 2019.09.24
+ // SwingJS
+ // needs a few
+ // more
+ // pixels.
+ // Java needs
+ // a bit more
+ // in height
+ // on Windows
+ // OS
+ // Was 320, 96
annsettingsPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
annsettingsPanel.setBorder(new EtchedBorder());
visualTab.add(annsettingsPanel);
backupsSetOptions(
BackupFilesPresetEntry.backupfilesPresetEntriesValues
.get(key));
- }
- else
- {
+ }
+ else
+ {
Cache.log.error(
"Preset '" + value + "' [key:" + key + "] not implemented");
- }
+ }
// Custom options will now be enabled when the customiseCheckbox is checked
// (performed above)
e = (IntKeyStringValueEntry) backupfilesPresetsCombo2
.getSelectedItem();
} catch (Exception ex)
- {
+ {
Cache.log.error(
"Problem casting Combo entry to IntKeyStringValueEntry.");
e = null;
{
e = (IntKeyStringValueEntry) backupfilesPresetsCombo2.getItemAt(i);
} catch (Exception ex)
- {
+ {
Cache.log.error(
"Problem casting Combo entry to IntKeyStringValueEntry. Skipping item. ");
continue;
boolean ret = false;
String warningMessage = MessageManager
.getString("label.warning_confirm_change_reverse");
- int confirm = JvOptionPane.showConfirmDialog(Desktop.desktop,
+ int confirm = JvOptionPane.showConfirmDialog(Desktop.getDesktopPane(),
warningMessage,
MessageManager.getString("label.change_increment_decrement"),
JvOptionPane.YES_NO_OPTION, JvOptionPane.WARNING_MESSAGE);