Why are you adding MouseListeners to JButton controls?
Shouldn't you use ActionListener instead?
The quieter you are, the more you are able to hear.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> How do i refresh the object with new parameters without destroying it and creating a new one?
create a refresh() method to update the components.
this may mean moving the scope of some components from the constructor to a class field.
if the new parameters are just changes in text or icons etc, the update will occur immediately,
some other changes may require you to revalidate()/repaint() the parent container 'contentPane'
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.