Stretching like buttons

Hey Guys,

I am making a gui system for my game and I noticed that whenever I stretch an image it get all disoriented. I heard of some 9patch files that may solve the problem but even then, how could I use them. thanks :wink:

Hereโ€™s a link for libgdx nine-patch tutorial. It should be generic enough to explain what ninepatch is:
https://code.google.com/p/libgdx/wiki/GraphicsNinePatch