mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
7084 rough changes to try and make scroll bar work
This commit is contained in:
parent
7e3c28131b
commit
d65c34b97d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user