title: Java read and save GUI elements
body: <p>I have a question regarding accessing GUI elements. For example having a simple GUI program on Java, how can I read and save the Swing GUI elements hierarchy on a tree (ex. including main window, frames, button, textfield, combobox etc.).</p>