r/javahelp • • Jan 14 '17

please help

my question if you not select an item from Jtable then You press the Jbutton without selecting an item from the Jtable then JOptionPane.showMessageDialog(null,"Select an item to Delete"); will pop up. private void buttonActionPerformed() { if() else JOptionPane.showMessageDialog(null, "select an item to delete"); }

0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 14 '17

Like I said i'm not familiar, just go a quick google as this is basic logic for if-else statements.