Listing 2. Show the JColorChooser object.
Color selColor = JColorChooser.showDialog(
                    chooseButton,
                    "Choose color",
                    new Color(redInt,greenInt,blueInt));