Forum Discussion

karl_d's avatar
karl_d
New Contributor
11 years ago

Dynamic Java Object Manipulation

Hi all,



I'm attempting to select an object, that resides in the cell of a table in a dynamically generated Java GUI.



The object is a button (javax.swing.JButton) and sits at the end of the cell, in what I understand to be a "PropertyJTable".



My expertese is not in Java or it's derivatives, but it would appear that the button does not "exist" per sé, until the cell is selected. However, on selecting the cell in testing, the button is reported as not found.



Can anyone shed any light onto this? I'm happy to post more information where required.



K.
  • karl_d's avatar
    karl_d
    New Contributor
    Worked a treat!



    Clicked on the offending cell, Refresh(), click on button!



    Many thanks!!

    :)