In order to get non -1 for selected row, the table's row needs to be highlighted. So is your mf.PartToolOrderTable a table? When is the initComponents() method call? If it is for initializing like the name suggest, then your selectedRow() shouldn't be in this method.
K. Tsang OCPJP7 OCMJEA6
posted 8 years ago
Thanks for the reply I figured it out though. I was calling the wrong constructor