Swing UI - printing component hierarchy

K

KN

Hi - can anyone help with this;

I remember being able to dump the contents of a swing user-interface
by focusing on the window/frame and pressing cntrl+print-scrn or some
other key (I think the jave console for the JRE had to be open). But
this resulted in a window being displayed with the entire hirarchical
structure of the swing component being printed in
a textual form, nicely formatted so the containment hierarchy could
be easily understood.

I used to do this years ago - when using a 1.3.1 JDK - but can't
remember how to do it now (now woring with a Sun 1.5 JDK) - can anyone
help.

Thanks in advance
 
S

Steve W. Jackson

KN said:
Hi - can anyone help with this;

I remember being able to dump the contents of a swing user-interface
by focusing on the window/frame and pressing cntrl+print-scrn or some
other key (I think the jave console for the JRE had to be open). But
this resulted in a window being displayed with the entire hirarchical
structure of the swing component being printed in
a textual form, nicely formatted so the containment hierarchy could
be easily understood.

I used to do this years ago - when using a 1.3.1 JDK - but can't
remember how to do it now (now woring with a Sun 1.5 JDK) - can anyone
help.

Thanks in advance

What I recall being able to do -- and it still works in 1.5 -- is to use
Control-Shift-F1. Our GUI application redirects the standard output and
error streams, and the output from this ends up in the standard output.

= Steve =
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top