user6737469 user6737469 - 9 months ago 54
Java Question

Click JButton and open a

I have a jComoBox and JButton How to pen when i select "A" in JComboBox?

if (jComboBox1.getSelectedItem() == "A"){;
else {

Answer Source

If you are trying to open a file you could use a Desktop Object like so.

Desktop d = Desktop.getDesktop();"your File object here");