Fix sim table not taking proper spotlight
This commit is contained in:
parent
36e0cf2168
commit
a47e2f416e
@ -1404,6 +1404,9 @@ public class SimulationPanel extends JPanel {
|
||||
* Focus on the simulation table and maintain the previous row selection(s).
|
||||
*/
|
||||
public void takeTheSpotlight() {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
simulationTable.requestFocusInWindow();
|
||||
if (simulationTable.getRowCount() == 0 || simulationTable.getSelectedRows().length > 0) {
|
||||
return;
|
||||
@ -1421,4 +1424,6 @@ public class SimulationPanel extends JPanel {
|
||||
}
|
||||
updateActions();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user