# How can I make libGDX text buttons look like clickable buttons?

I have this problem with my game where UI build a nice menu and other stuff with TextButtons and labels, but it doesn't look nice because it's mostly displaying the text of the buttons (which don't look like they are buttons).

Right now I'm using this little snippet of code to style my TextButtons:

TextButton.TextButtonStyle buttonStyle = new TextButton.TextButtonStyle();
buttonStyle.font = new BitmapFont();
buttonStyle.fontColor = WHITE;


What do i need to add to make them look like a button and not like simple text? I'm using libGDX.

Do not just set font and fontColor, also set the properties that make up the vidual appearance such as up, down and checked etc. They take Drawable and will allow you to use any image to represent your button.
• @Bexx Setting up and down to appropriate nine-patch Drawables will make your buttons look like the example you provided. – bornander Feb 2 '16 at 17:10
The trick with the NinePatch is that you can make the button very small and set the stretching area so it will scale to the size you need. Do this after you created a button. There are tools to create ninepatches but if you make a atlas with the texturepacker in Gdx.tools you can add a split parameter.