fix to set scroll position

This commit is contained in:
Greg DiCristofaro 2020-08-10 07:48:04 -04:00
parent f56b66a8ed
commit c574336449
2 changed files with 3 additions and 3 deletions

View File

@ -57,8 +57,6 @@
</Property> </Property>
</Properties> </Properties>
<AuxValues> <AuxValues>
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
</AuxValues> </AuxValues>

View File

@ -100,6 +100,7 @@ public class DataSourceSummaryUserActivityPanel extends javax.swing.JPanel {
topProgramsTable.getColumnModel().getColumn(2).setCellRenderer(RIGHT_ALIGNED_RENDERER); topProgramsTable.getColumnModel().getColumn(2).setCellRenderer(RIGHT_ALIGNED_RENDERER);
topProgramsTable.getColumnModel().getColumn(2).setPreferredWidth(80); topProgramsTable.getColumnModel().getColumn(2).setPreferredWidth(80);
topProgramsTable.getColumnModel().getColumn(3).setPreferredWidth(150); topProgramsTable.getColumnModel().getColumn(3).setPreferredWidth(150);
topProgramsScrollPane.getVerticalScrollBar().setValue(0);
this.repaint(); this.repaint();
} }
@ -224,7 +225,7 @@ public class DataSourceSummaryUserActivityPanel extends javax.swing.JPanel {
private void initComponents() { private void initComponents() {
javax.swing.JLabel programsRunLabel = new javax.swing.JLabel(); javax.swing.JLabel programsRunLabel = new javax.swing.JLabel();
javax.swing.JScrollPane topProgramsScrollPane = new javax.swing.JScrollPane(); topProgramsScrollPane = new javax.swing.JScrollPane();
topProgramsTable = new javax.swing.JTable(); topProgramsTable = new javax.swing.JTable();
org.openide.awt.Mnemonics.setLocalizedText(programsRunLabel, org.openide.util.NbBundle.getMessage(DataSourceSummaryUserActivityPanel.class, "DataSourceSummaryUserActivityPanel.programsRunLabel.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(programsRunLabel, org.openide.util.NbBundle.getMessage(DataSourceSummaryUserActivityPanel.class, "DataSourceSummaryUserActivityPanel.programsRunLabel.text")); // NOI18N
@ -256,6 +257,7 @@ public class DataSourceSummaryUserActivityPanel extends javax.swing.JPanel {
// Variables declaration - do not modify//GEN-BEGIN:variables // Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JScrollPane topProgramsScrollPane;
private javax.swing.JTable topProgramsTable; private javax.swing.JTable topProgramsTable;
// End of variables declaration//GEN-END:variables // End of variables declaration//GEN-END:variables
} }