Hi!
I'm sitting with a gui bug that I have been stuck with for a while. When a "view" is changed from one "view" to another, the new "view" doesn't get painted properly. The previous view is visibile randomly in the background.
I can't reproduce this in the dev environment so its hard to debug, but It can easily be reproduced in a remote testlab which I don't have access to and can't remote debug from.
So I was going through the code and noticed this:
proteted void updatebuttonsToModel() {
// some code...
SwingUtilities.invokeLater(new Runnable() {
// some gui changes...
validate()
repaint()
}
}
I am thinking about if changing validate to revalidate() might do me any good? What are the differences beteween these two? It sound like they should do the samt thing. The javadocs doesn't say much. Could this possibly be the problem?