Guys im having a problem. I tried solving this for 3 days… Some friends gave some ideas but none of them solved.
Heres the thing,
I have a class Named Enemy
The Class Gnome Extends Enemy
The Class Gnome have a Class Named “Trade Diamonds” :
http://pastebin.java-gaming.org/d41100c1a8b
The Class Trade Diamonds Extends NpcWindow :
http://pastebin.java-gaming.org/4110c1a1b8a
So far, so good.
Now i can click in the Gnome And trade items with him…BUT, When i click in an item, a label Text changes, And when it does, the screen layout goes crazy for some seconds and then goes back to normal…
http://imagizer.imageshack.us/v2/1024x768q90/132/u7bh.jpg
In The Screenshot, what happens is that i clicked in Mana Potion and the Label Text Changed, for some time(maybe half a second?) the screen stays like that.
I had to be fast with the Print Screen.
Anyway, The resize() method is always called because its inside the Gnome Class and i think i shouldnt have done that… But for now i will keep like that until i can solve that.Unless the problem is that the resize() is always called , which after some tests, i figure its not.
The problem also happens if i call invalidateHierarchy in Window.
I tried calling invalidate in everything, layout etc…
Im unsure whats happening…
Heres a video to illustrate.
Any help/Tip is totally appreciated.