equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
3841 setLargeModel(tree.isLargeModel()); |
3841 setLargeModel(tree.isLargeModel()); |
3842 } |
3842 } |
3843 else if(changeName == JTree.SELECTION_MODEL_PROPERTY) { |
3843 else if(changeName == JTree.SELECTION_MODEL_PROPERTY) { |
3844 setSelectionModel(tree.getSelectionModel()); |
3844 setSelectionModel(tree.getSelectionModel()); |
3845 } |
3845 } |
3846 else if(changeName == "font") { |
3846 else if(changeName == "font" |
|
3847 || SwingUtilities2.isScaleChanged(event)) { |
3847 completeEditing(); |
3848 completeEditing(); |
3848 if(treeState != null) |
3849 if(treeState != null) |
3849 treeState.invalidateSizes(); |
3850 treeState.invalidateSizes(); |
3850 updateSize(); |
3851 updateSize(); |
3851 } |
3852 } |