Java Gui Problem Solver - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Java Gui Problem Solver (1154 Views)
| Java Gui Problem Solver by Akprof(op): 4:48pm On Jun 20, 2015 |
Hi my fellow Programmer/Nairalander, pls I need an assistance on to use the confirm dialog. YES or NO (i`e JOptionPane.showComfirmDialog(.........). Thanks a lot ). |
| Re: Java Gui Problem Solver by FincoApps(m): 7:19pm On Jun 20, 2015 |
What exactly do you need, how to get what the person clicked on ? Akprof: |
| Re: Java Gui Problem Solver by Akprof(op): 9:00pm On Jun 20, 2015 |
Exactly, pls can u help out? |
| Re: Java Gui Problem Solver by FincoApps(m): 9:12pm On Jun 20, 2015 |
Akprof:The showConfirmDialog returns an integer so you assign the method to an int variable. Then you can check by checking the value of the int variable. JOptionPane class has some fields you can use to check the exact button that was clicked. See an example:
Replace the annoying smiley face with a closing bracket |
| Re: Java Gui Problem Solver by Akprof(op): 3:31pm On Jun 21, 2015 |
Thanks my bro |
How Do I Make My Java GUI Stuff Executable (like desktop shortcut) • Stack Overflow Just Launched Real-world Developer Problem Solver • Java Gui Gurus • 2 • 3 • 4
Final Year Project • How To Automatically Repeat Youtube Videos • Urgent Vacancy
;