Forums Register Login

is this possible

+Pie Number of slices to send: Send
Hi i was wondering if its possible to somehow observer and listen to a mysql table for changes of data and then auto update a node from a jtree. i basicly want to remove a node not from say parent node 1, and than move it to parent node 2 automaticly when a item from my MYSQL table has changed...

i been reading on how to create a jtree model for this but trying to avoid it has i have reletivly no experience in customized jtree models and that i kinda need a solution as soon as possible.

cheers
+Pie Number of slices to send: Send
You could certainly create a thread that queries your database every now and then and update your graphical user interface accordingly.

If you do so, it is important that you understand well how multithreading works with Swing. Take a look at the API for SwingUtilities.invokeLater().

I hope this helps!
+Pie Number of slices to send: Send
This cannot be achieved with JDBC, however, you can fiddle with triggers for reverse notification. I encountered this issue when writing the 'JDBC Adapter for IBM Tivoli Risk Manager'. Your best case is to abstract the busy/wait so that it appears to clients as if they are registering for notification, then write implementations to suit - each with their own trade-offs.
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 866 times.
Similar Threads
Searching a JTree
dynamic JTree
prevent + sign to vanish in JTree
jtree problem
JTree
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:45:45.