Swing Cleanup
This commit is contained in:
parent
f6cf25cd2f
commit
fc36f3562d
1 changed files with 10 additions and 4 deletions
|
@ -78,7 +78,9 @@ public abstract class PaneUpdaterThread implements Runnable
|
||||||
//this still freezes the swing UI
|
//this still freezes the swing UI
|
||||||
synchronizePane();
|
synchronizePane();
|
||||||
|
|
||||||
attachCtrlMouseWheelZoom(updateUpdaterTextArea.getScrollPane(), updateUpdaterTextArea);
|
//attach CTRL + Mouse Wheel Zoom
|
||||||
|
SwingUtilities.invokeLater(()->
|
||||||
|
attachCtrlMouseWheelZoom(updateUpdaterTextArea.getScrollPane(), updateUpdaterTextArea));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void attachCtrlMouseWheelZoom(RTextScrollPane scrollPane, RSyntaxTextArea panelArea) {
|
public void attachCtrlMouseWheelZoom(RTextScrollPane scrollPane, RSyntaxTextArea panelArea) {
|
||||||
|
@ -266,8 +268,12 @@ public abstract class PaneUpdaterThread implements Runnable
|
||||||
panel.add(updateUpdaterTextArea.getScrollPane().getColumnHeader().getComponent(0), BorderLayout.NORTH);
|
panel.add(updateUpdaterTextArea.getScrollPane().getColumnHeader().getComponent(0), BorderLayout.NORTH);
|
||||||
panel.add(methodsList, BorderLayout.SOUTH);
|
panel.add(methodsList, BorderLayout.SOUTH);
|
||||||
methodsList.setBackground(BLANK_COLOR);
|
methodsList.setBackground(BLANK_COLOR);
|
||||||
|
|
||||||
|
SwingUtilities.invokeLater(()->
|
||||||
|
{
|
||||||
updateUpdaterTextArea.getScrollPane().getColumnHeader().removeAll();
|
updateUpdaterTextArea.getScrollPane().getColumnHeader().removeAll();
|
||||||
updateUpdaterTextArea.getScrollPane().getColumnHeader().add(panel);
|
updateUpdaterTextArea.getScrollPane().getColumnHeader().add(panel);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue