No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I've got a JTree that's a file browser. At startup, the selection path is set to the user's home directory. This tree is in a JScrollpane. What I'd like to do is to set the vertical scroll bar position to have this cell (the user's home dir.) on top of … |
|
I could use some help. I've got a JTree, it's a file browser. I'm trying to programatically select a cell in the tree. I'm making the following calls: [code] File home = new File(System.getProperty(HOME_DIR)); setTree(home, newFile); TreePath path = this.pathFromFile(home); tree.setSelectionPath(path); [/code] But, that doesn't seem to highlight the cell. … |
|
Re:
Hi, I am trying to create a simon-says type game, where there are four icons of different colors. One icon lights up. The user clicks it. Next, a new icon lights up. The user clicks the sequence... etc, etc, etc. Right now, the first round works. Unfortunately, the icons do … |