#Variable type useage
1 messages · Page 1 of 1 (latest)
<@&987246487241105418> please have a look, thanks.
Because that's what JOptionPane.showConfirmDialog(...) returns?
Maybe you need to explain why this doesn't fit your expectations.
Java didn't always have enums if that's what you're getting at. It's just an old api
Swing (the desktop UI part of the Java library) was added in Java 1.2, and enums in Java 5.0 (some 5+ years later).
Here's the Java doc for JOptionPane and the showConfirmDialog method.
The class defines 'constants' that you can use to test the response - eg JOptionPane.YES_OPTION
declaration: module: java.desktop, package: javax.swing, class: JOptionPane