I am using showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object selectionValues, Object initialSelectionValue)
to display a list of choices the user can choose from. I want the initial selection to be null/empty. Even if I pass null as the initialSelectionValue, I still see the first item to be the default selection in the optionpane. Is there a way to be able to achieve this without creating a custom dialog.
posted 11 years ago
add an empty string as the first item in the array