Skip to main content

Crazy behavior of JXTreeTable in the Webstart demo on the project page

10 replies [Last post]
tjwolf
Offline
Joined: 2004-10-28
Points: 0

On my Mac (JDK 1.6_20), when I go to the JXTreeTable panel in the Webstart demo (at https://swingx.dev.java.net/ ), the selected row of the table seems to randomly move as I move the cursor around the application; also the checkboxes in the tree don't seem to be editable. Is the selection craziness only on the Mac or does it behave this way on other platforms?

What version of swingx does the demo use?

Finally, can someone point me to some sample code of an editable JXTreeTable (that was the reason I went to the demo page in the first place)?

Many thanks,
Tom

JW: fixed the link

Message was edited by: kleopatra

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tl5
Offline
Joined: 2008-11-20
Points: 0

Haha! Oooh my god! That's a real WTF, ROFL, holy s**t, I can't believe it!

Every now and then in the last months (years?) I started these SwingLabs Demos and showed all the nice components to someone not aware of SwingX. I clicked through all demos, always avoiding the JXTreeTable Panel because of the unlogical flickering and scrolling. While mumbling something like "the TreeTable is not quite ready yet..." I advanced to the CollapsiblePane: "See! Animations, smooth and useful!". :-)

Pleeease, please remove the MouseHover-"feature" because of the simple-minded developers like me...

kleopatra
Offline
Joined: 2003-06-11
Points: 0

well, I might consider to add a switch to enable/disable - so the simple minded to get used to the feature

BTW, the flesh of the behaviour is some base (experimental...) support of getting all mouse- and focusEvents of all children in the complete hierarchy below a container without the need for a global AWTEventListener. That's quite sweet, IMO.

CU
Jeanette

kschaefe
Offline
Joined: 2006-06-08
Points: 0

Especially since AWTEventListener requires security priveliges.

Karl

kleopatra
Offline
Joined: 2003-06-11
Points: 0

Karl,

you lost me completely - the example _does not_ require a global AWTEventListener. So what are you trying to tell me :-)

CU
Jeanette

kschaefe
Offline
Joined: 2006-06-08
Points: 0

That any solution that can avoid AWTEventListener is a better solution since AWTEventListener requires priveleges.

So, nothing for you. ;) Just everyone else wondering why someone might want a different way to do something that can already be done.

Karl

kleopatra
Offline
Joined: 2003-06-11
Points: 0

Tom,

it's a feature not a bug

The treetable is showing the component hierarchy of the demo, moving the mouse highlights the component under the mouse position. The "checkBox" is a stand-in icon for the component if it has none.

Hmm ... probably should explain that somewhere ;-)

There should be examples for editable treeTables in the tests (I hope)

CU
Jeanette

tjwolf
Offline
Joined: 2004-10-28
Points: 0

Hi Jeanette,
The idea was probably a good one, but in practice what is seen is pretty disconcerting/unintuitive: there's endless flickering and the only changes you see are that the the selected tree node becomes either JXTreeTable (as the cursor enters the JXTreeTable demo panel), JXTaskPane (as the cursor hovers over the various sections in the demo), or JXHyperlink (as the cursor goes over any of the items). It would have been much more useful if the tree actually selected the classes pointed to by the JXHyperlink rather than the JXHyperlink class itself.

kleopatra
Offline
Joined: 2003-06-11
Points: 0

Hi Tom,

I agree that it is unintuitive - no time to fix, though ;-)

And no, it's not only those few components you listed which get highlighted: all components which have the awtMouseEvents enabled are. F.i. when hovering the mouse over the label "Highlight code to" the highlighted row is the JXMultipleSplitPane. Hovering over the combo of code snippets highlights the row with the combo/arrow

Don't understand what you wanted to express in your last sentence (didn't try overly hard, though)

Cheers
Jeanette

kschaefe
Offline
Joined: 2006-06-08
Points: 0

Filing bugs in the swinglabs-demos project is the correct place to keep track of these problems, so that we can address them.

Karl

kleopatra
Offline
Joined: 2003-06-11
Points: 0

fine - but why do you respond to my post? It was Tom who found it and should file the issue

Cheers
Jeanette