I need to use a value of one jTable (the table is located in another jFrame, inside the same Package) in another jFrame of Java, for this I am using a getSelectedRow (), so far everything is fine, but the code throws me an error, saying that: "jTable has private access in ...." Apparently the only thing I need is to make the table go from being private to public, but I do not know how to do it ... By the way, I'm using netbeans;)