reset password
Author Message
Rayan Hyder
Posts: 15
Posted 16:03 Nov 30, 2019 |

Is there a way that I can make the combo box handle using the exception handling in such a way that when the value selected in the dropdown menu is student, I can create a node. Like a button or label.

Last edited by Rayan Hyder at 16:04 Nov 30, 2019.
kknaur
Posts: 540
Posted 17:38 Nov 30, 2019 |

I assume you mean event handling instead of exception handling. 

In theory what you ask should be possible.  What I would try is something like this.  A drop-down menu fires and ActionEvent when a value is selected.  In the event handler for the combo box, test the value that the user selected, and in response to that add a button to whatever portion of your GUI you want.