7084 rough changes to try and make scroll bar work

This commit is contained in:
William Schaefer 2020-12-18 10:53:26 -05:00
parent 7e3c28131b
commit d65c34b97d

View File

@ -377,6 +377,9 @@ public class GeneralPurposeArtifactViewer extends AbstractArtifactDetailsPanel i
gridBagConstraints.gridy++; gridBagConstraints.gridy++;
detailsPanel.add(new javax.swing.JLabel(" "), gridBagConstraints); detailsPanel.add(new javax.swing.JLabel(" "), gridBagConstraints);
addLineEndGlue(); addLineEndGlue();
headingLabel.setFocusable(false);
} else {
headingLabel.requestFocusInWindow();
} }
gridBagConstraints.gridy++; gridBagConstraints.gridy++;
gridBagConstraints.gridx = LABEL_COLUMN;; gridBagConstraints.gridx = LABEL_COLUMN;;
@ -434,6 +437,8 @@ public class GeneralPurposeArtifactViewer extends AbstractArtifactDetailsPanel i
gridBagConstraints.fill = GridBagConstraints.VERTICAL; gridBagConstraints.fill = GridBagConstraints.VERTICAL;
javax.swing.Box.Filler vertFiller = new javax.swing.Box.Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(0, 32767)); javax.swing.Box.Filler vertFiller = new javax.swing.Box.Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(0, 32767));
detailsPanel.add(vertFiller, gridBagConstraints); detailsPanel.add(vertFiller, gridBagConstraints);
detailsPanel.revalidate();
detailsScrollPane.revalidate();
detailsScrollPane.getVerticalScrollBar().setValue(0); detailsScrollPane.getVerticalScrollBar().setValue(0);
detailsScrollPane.getHorizontalScrollBar().setValue(0); detailsScrollPane.getHorizontalScrollBar().setValue(0);
} }
@ -448,6 +453,7 @@ public class GeneralPurposeArtifactViewer extends AbstractArtifactDetailsPanel i
private JLabel addKeyAtCol(String keyString) { private JLabel addKeyAtCol(String keyString) {
// create label // create label
javax.swing.JLabel keyLabel = new javax.swing.JLabel(); javax.swing.JLabel keyLabel = new javax.swing.JLabel();
keyLabel.setFocusable(false);
gridBagConstraints.gridy++; gridBagConstraints.gridy++;
gridBagConstraints.gridx = LABEL_COLUMN; gridBagConstraints.gridx = LABEL_COLUMN;
gridBagConstraints.gridwidth = LABEL_WIDTH; gridBagConstraints.gridwidth = LABEL_WIDTH;
@ -468,6 +474,7 @@ public class GeneralPurposeArtifactViewer extends AbstractArtifactDetailsPanel i
private JTextPane addValueAtCol(String valueString) { private JTextPane addValueAtCol(String valueString) {
// create label, // create label,
JTextPane valueField = new JTextPane(); JTextPane valueField = new JTextPane();
valueField.setFocusable(false);
valueField.setEditable(false); valueField.setEditable(false);
valueField.setOpaque(false); valueField.setOpaque(false);
gridBagConstraints.gridx = VALUE_COLUMN; gridBagConstraints.gridx = VALUE_COLUMN;