Stats: 3,191,718 members, 7,945,237 topics. Date: Tuesday, 10 September 2024 at 01:01 PM |
Nairaland Forum / Science/Technology / Programming / Java Gui Problem Solver (1009 Views)
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)
Java Gui Problem Solver by Akprof(m): 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(m): 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(m): 3:31pm On Jun 21, 2015 |
Thanks my bro 1 Like |
(1) (Reply)
Android Developers Lets Help Each Other / Macaranta.com:monetize Your Knowledge. / I Need Assistance To Build A Membership Website Script
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |