java - How to locate another object in a JFrame? -
let's suppose there object in specific jframe uses same abstract class.
now i'm wondering how find location of object inside jframe it's moving automatically.
i have superclass that's board.
inside board, have bunch of objects share same abstract class coded differently.
i want use objects locate each other without editing field class.
how that?
store objects in list<abstractclassname>
, can iterate on them every time want perform action on of them, or search specific 1 based on it's properties if want 1 of them.