Okay, so I was wondering, how is it that this person has a different colour title bar, or border, along with a different icon for a JOptionPane.QUESTION_MESSAGE?
Then, we come to mine, I don't know if this is a layout thing, or what, but mine looks like this:
http://gyazo.com/afb7610cf65627fef07cab45485f7dfc // His
http://gyazo.com/5da7722a908169253559f5903509c2cd // Mine ( Can't post images, low rep )
How would I change mine, to the top one? I'd really appreciate any help, thanks.
What you want to do is find out how to use Look and Feel of an application. That is how different systems have different looks, and also what separates yours from his. Here is a link to describe it to you :) JOptionPane look and feel
Another option you can do is check the javadoc(s) for the JOptionPane. It gives you many constructor defaults so that you have the ability to change the way it looks such as:
A list of options that you can do with JOptionPane that can be viewed here
public JOptionPane()
JOptionPane optionPane = new JOptionPane();
public JOptionPane(Object message)
JOptionPane optionPane = new JOptionPane("Message");
public JOptionPane(Object message, int messageType)
JOptionPane optionPane = new JOptionPane("Message", JOptionPane.WARNING_MESSAGE);
public JOptionPane(Object message, int messageType, int optionType)
JOptionPane optionPane = new JOptionPane("Question?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);
public JOptionPane(Object message, int messageType, int optionType, Icon icon)
Icon printerIcon = new ImageIcon("yourFile.gif");
JOptionPane optionPane = new JOptionPane("Question?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION, printerIcon);
public JOptionPane(Object message, int messageType, int optionType, Icon icon, Object options[ ])
Icon greenIcon = new DiamondIcon(Color.GREEN);
Icon redIcon = new DiamondIcon(Color.RED);
Object optionArray[] = new Object[] { greenIcon, redIcon} ;
JOptionPane optionPane = new JOptionPane("Question?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION, printerIcon, optionArray);
public JOptionPane(Object message, int messageType, int optionType, Icon icon, Object options[], Object initialValue)
JOptionPane optionPane = new JOptionPane("Question?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION, printerIcon, optionArray, redIcon
hope this helps