Merge pull request #738 from teyrana/fix/699-select-sustainer
[fixes #699] pre-select first AxialStage on Rocket-Open
This commit is contained in:
commit
73bd52fde9
@ -282,6 +282,9 @@ public class BasicFrame extends JFrame {
|
|||||||
|
|
||||||
tree = new ComponentTree(document);
|
tree = new ComponentTree(document);
|
||||||
tree.setSelectionModel(componentSelectionModel);
|
tree.setSelectionModel(componentSelectionModel);
|
||||||
|
if( tree.isSelectionEmpty() ){
|
||||||
|
tree.setSelectionRow(1);
|
||||||
|
}
|
||||||
|
|
||||||
// Remove JTree key events that interfere with menu accelerators
|
// Remove JTree key events that interfere with menu accelerators
|
||||||
InputMap im = SwingUtilities.getUIInputMap(tree, JComponent.WHEN_FOCUSED);
|
InputMap im = SwingUtilities.getUIInputMap(tree, JComponent.WHEN_FOCUSED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user