Getting a Color from a String input

后端 未结 5 1296
不知归路
不知归路 2021-01-23 18:41

I am making an application where at some point i need the user to select a color, but as to not just have 50 radioButtons, I was wondering if it is possible to actually get the

5条回答
  •  礼貌的吻别
    2021-01-23 19:21

    Why don't you use a JColorChooser that is a standard Swing component?

    You can read a tutorial here but it is quite straightforward to use, as every Swing dialog, the result is something like:

    color chooser

提交回复
热议问题