user6737469 user6737469 - 1 year ago 84
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");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download