I am using the JColorChooser panel in which I have modified to use only RGB panel. Also, I removed the alpha input from it. (This image below is a standard image for reference)
Now I want to reposition the Color code text field right below the Blue field and move that Preview panel to the right of all the inputs. This is what I want it to be shown:
In short, I want to reposition some of the elements in the chooser panel. How to do that?


If you only need to move the preview panel to the right and remove another panels, you may write a custom UI for the color chooser. Here is the example: