Skip to content

Commit 90a305f

Browse files
hansohanso
authored andcommitted
remove sun.awt.AWTAccessor reference for simple validate()
1 parent 9abca06 commit 90a305f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTreeUI.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
import javax.swing.tree.TreeSelectionModel;
9898
import javax.swing.tree.VariableHeightLayoutCache;
9999

100-
import sun.awt.AWTAccessor;
101100
import sun.swing.DefaultLookup;
102101
import sun.swing.SwingUtilities2;
103102
import sun.swing.UIAction;
@@ -2264,7 +2263,7 @@ protected boolean startEditing(TreePath path, MouseEvent event) {
22642263
tree.add(editingComponent);
22652264
editingComponent.setBounds(nodeBounds.x, nodeBounds.y, nodeBounds.width, nodeBounds.height);
22662265
editingPath = path;
2267-
AWTAccessor.getComponentAccessor().revalidateSynchronously(editingComponent);
2266+
editingComponent.validate();//revalidateSynchronously();
22682267
editingComponent.repaint();
22692268
if (cellEditor.shouldSelectCell(event)) {
22702269
stopEditingInCompleteEditing = false;

0 commit comments

Comments
 (0)