Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/11/2008, 16:16
PachuG
 
Fecha de Ingreso: septiembre-2008
Ubicación: Córdoba
Mensajes: 67
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: change type of "variable" to Object

Según la api de java

static String showInputDialog(Component parentComponent, Object message)
Shows a question-message dialog requesting input from the user parented to parentComponent.

static String showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)
Shows a question-message dialog requesting input from the user and parented to parentComponent.

static String showInputDialog(Component parentComponent, Object message, String title, int messageType)
Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.

static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.


static String showInputDialog(Object message)
Shows a question-message dialog requesting input from the user.

static String showInputDialog(Object message, Object initialSelectionValue)
Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue.

Por lo visto te muestra unas opciones, pues esas opciones son objects (que pueden o no ser Strings), por lo tanto al seleccionar, te devolvera un object, o sea el objeto seleccionado.

Es lo que deduzco...

Saludos