I wan to make my JOption's Border to be Black color. As you can see, its default color is blue. The blue color is required to be change to Black. I tried
JOptionPane optionPane = new JOptionPane(....,
JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
final JDialog dialog = optionPane.createDialog(parentComponent, title);
dialog.getRootPane().setBorder( BorderFactory.createLineBorder(Color.Black) );
Is there any way to do this ?