mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 04:42:10 +00:00
Drawing actions fix.
Frame index fix.
This commit is contained in:
@@ -56,7 +56,7 @@ public class LibraryTreeTable extends JTreeTable {
|
||||
getTree().setShowsRootHandles(true);
|
||||
addKeyListener(new KeyAdapter() {
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
public void keyPressed(KeyEvent e) {
|
||||
int selectedRow = getSelectedRow();
|
||||
JTree tree = getTree();
|
||||
|
||||
@@ -67,7 +67,7 @@ public class LibraryTreeTable extends JTreeTable {
|
||||
|
||||
int parentRow = tree.getRowForPath(path);
|
||||
changeSelection(parentRow, 0, false, false);
|
||||
} else {
|
||||
} else if (path != null) {
|
||||
TreePath parentPath = path.getParentPath();
|
||||
if (parentPath != null) {
|
||||
int parentRow = tree.getRowForPath(parentPath);
|
||||
|
||||
Reference in New Issue
Block a user