I apologize for such a stupid question, but just started to comprehend java, I am interested in the following: how or with the help of what do they implement their own user interfaces? For example, I do not want to use a ready-made swing JButton, but I want to insert my own drawn. I have only one thought in my head, this is to rewrite the standard swing classes under my own way, with the addition of my images ...
2 answers
Write your class:
public class MyJButton extends JButton and wear out your heart's content, sculpt triangular, gray-brown crimson buttons, and so on. On that and OOP!
- onePaint method - RomanoO
- So I assumed, I just thought maybe I was wrong and I do everything through the fifth point) Thank you all, the question has been settled. - Artem Gribkov
- oneit is possible by simple and rough - to put a picture on top of a loaf, the form will always be a rectangle, but custom =) - Gorets
|
try to look in the direction of javafx. here customization of elements through CSS is well implemented
|