thejaka samarakoon wrote:I'll post in the swing forum
No, please. Since this is not related to Swing/AWT, please continue the discussion here.
thejaka samarakoon wrote:How to get the rt object to the below code
As Deepak has already pointed out, you can't get rt object, as it resides in another local scope.
OK, if I spill the beans over here, you need to have a static variable in the class that holds a reference to that 'rt object'.