Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

#74 - reduce flickering of overview table#75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
PhilippSalvisberg merged 1 commit intoutPLSQL:masterfromPhilippSalvisberg:feature/74_flickering
Jul 15, 2019
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,6 +45,7 @@ import javax.swing.JSeparator
import javax.swing.JSplitPane
import javax.swing.JTabbedPane
import javax.swing.JTable
import javax.swing.RepaintManager
import javax.swing.SwingConstants
import javax.swing.UIManager
import javax.swing.border.EmptyBorder
Expand DownExpand Up@@ -368,9 +369,11 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
testOverviewTableModel.fireTableDataChanged
} else {
if (testOverviewTableModel.rowCount > row) {
testOverviewTableModel.fireTableRowsUpdated(row, row)
val positionOfCurrentTest = testOverviewTable.getCellRect(row, 0, true);
testOverviewTable.scrollRectToVisible = positionOfCurrentTest
testOverviewTableModel.fireTableRowsUpdated(row, row)
Thread.sleep(5) // reduce flickering
testOverviewTable.scrollRectToVisible = positionOfCurrentTest
}
}
statusLabel.text = currentRun.status
Expand DownExpand Up@@ -863,7 +866,8 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
testOverviewTable.rowHeight = OVERVIEW_TABLE_ROW_HEIGHT
testOverviewTable.tableHeader.preferredSize = new Dimension(testOverviewTable.tableHeader.getPreferredSize.width, OVERVIEW_TABLE_ROW_HEIGHT)
testOverviewTable.selectionModel.addListSelectionListener(new TestOverviewRowListener(this))
testOverviewTable.addMouseListener(this)
testOverviewTable.addMouseListener(this)
RepaintManager.currentManager(testOverviewTable).doubleBufferingEnabled = true // reduce flickering
val testTableHeaderRenderer = new TestTableHeaderRenderer
val overviewTableStatus = testOverviewTable.columnModel.getColumn(0)
overviewTableStatus.minWidth = INDICATOR_WIDTH
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp