Thanks for that Tim - perfect.
On Mar 19, 11:49 pm, Timothy Pratley wrote:
> http://clojure.org/java_interop
> "Note that while method fns can be provided to override protected
> methods, they have no other access to protected members, nor to super,
> as these capabilities cannot be proxied."
>
http://clojure.org/java_interop
"Note that while method fns can be provided to override protected
methods, they have no other access to protected members, nor to super,
as these capabilities cannot be proxied."
However this solution might be adequate:
(proxy [SwingWorker] []
It would be a great pity if there was no way to do this, as
SwingWorker is the 'proper' way for long-running code to interact with
Swing objects.
Any ideas for how to achieve this would be appreciated.
On Mar 19, 7:35 pm, MikeM wrote:
> > However the code (proxy-superpublish m) throws this exce
> However the code (proxy-super publish m) throws this exception:
>
> # matching method found: publish for class
> clojure.proxy.javax.swing.SwingWorker>
>
publish is a protected method, and I don't think proxy (even with
proxy-super) lets you access it. Also, even if it was public, it is a
var-
I am trying to understand how to use SwingWorker to do time-consuming
work that needs to update a Swing GUI. The following makes a frame
with a button (which starts a SwingWorker on the first click).
Thereafter, clicking the button increments an integer n that is
displayed in the first JTextField