How to make borders around GuiComponents? #681
Replies: 2 comments
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). ImageComponent button3 = new ImageComponent(300, 520, 200, 50, "forever <3"); this.getComponents().add(button1); |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2019-08-16 14:12:44
User: CalvinMT [] (age: 1451 days 🔥; posts: 114)
Hi!
I'm having trouble to add borders around some GuiComponents (e.g.: DropdownListFields, Sliders). Nothing appears when setting their appearances to show borders.
Here's what I've tried so far:
`
```// I also tried with 'getAppearance()'this.dropdownList.getAppearanceHovered().setBorderRadius(5.0f);
this.dropdownList.getAppearanceHovered().setBorderColor(Color.BLACK);````
Is there something wrong in what I've done or is there another way of doing it?
Beta Was this translation helpful? Give feedback.
All reactions