-
1. Re: Has TreeCacheView Been Updated?
belaban Nov 5, 2004 2:57 PM (in response to jiwils)You are right; the reason is that I'm not a good GUI developer... :-)
If anyone volunteers fixing the GUI, I'd be more than happy !
Maybe even write a better GUI that what we currently have...
Bela -
2. Re: Has TreeCacheView Been Updated?
jiwils Nov 5, 2004 3:31 PM (in response to jiwils)I may look into making some changes to the TreeCacheView application/class, and if I improve it, I will e-mail those changes to you.
-
3. Re: Has TreeCacheView Been Updated?
ben.wang Nov 5, 2004 4:33 PM (in response to jiwils)Just want to add one comment. Have you checked out TreeCacheView2? It's a bit up to date than TreeCacheView since it's used in the simple GUI.
-Ben -
4. Re: Has TreeCacheView Been Updated?
belaban Nov 7, 2004 5:16 AM (in response to jiwils)Great ! Okay, there are 2 classes: TreeCacheView (the MBean, supposed to run inside JBoss) and TreeCacheView2, the standalone GUI. Then, there is also TreeCacheViewAop.
We need to merge those 3 classes into 1, for obvious reasons. We could start by dumping TreeCacheView, b/c the MBean view is not really important for now.
Bela -
5. Re: Has TreeCacheView Been Updated?
camel Nov 8, 2004 12:49 AM (in response to jiwils)Bela,
I looked at the TreeCacheView2.java source. One reason the GUI may not be updating correctly is because TreeCacheListener events are causing the GUI to be updated on a non-Swing event queue thread. It's easy to fix, for each method of the TreeCacheListener interface, wrap the code with:// Example, nodeCreated method: public void nodeCreated(Fqn fqn) { EventQueue.invokeLater(new Runnable() { public void run() { // Original code goes here } }); }
"bela" wrote:
You are right; the reason is that I'm not a good GUI developer... :-)
If anyone volunteers fixing the GUI, I'd be more than happy !
Maybe even write a better GUI that what we currently have...
Bela -
6. Re: Has TreeCacheView Been Updated?
belaban Nov 8, 2004 2:42 AM (in response to jiwils)"camel" wrote:
Bela,
I looked at the TreeCacheView2.java source. One reason the GUI may not be updating correctly is because TreeCacheListener events are causing the GUI to be updated on a non-Swing event queue thread. It's easy to fix, for each method of the TreeCacheListener interface, wrap the code with:// Example, nodeCreated method: public void nodeCreated(Fqn fqn) { EventQueue.invokeLater(new Runnable() { public void run() { // Original code goes here } }); }
Did you verify this works ? I'll do it right away once you let me know whether you have tested it.
Bela"bela" wrote:
You are right; the reason is that I'm not a good GUI developer... :-)
If anyone volunteers fixing the GUI, I'd be more than happy !
Maybe even write a better GUI that what we currently have...
Bela -
7. Re: Has TreeCacheView Been Updated?
camel Nov 9, 2004 1:11 AM (in response to jiwils)
Did you verify this works ? I'll do it right away once you let me know whether you have tested it.
I haven't tried to reproduce the original problem (in fact I don't have JBossCache running yet, other than the demo). As with most threading issues, it's probably hard to reproduce; does anyone have a testcase that causes the problem?
-Chris