Swing UI - printing component hierarchy

Discussion in 'Java' started by KN, Mar 6, 2008.

  1. KN

    KN Guest

    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
    KN, Mar 6, 2008
    #1
    1. Advertising

  2. In article
    <>,
    KN <> wrote:

    > 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 =
    --
    Steve W. Jackson
    Montgomery, Alabama
    Steve W. Jackson, Mar 6, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christopher Deckers
    Replies:
    0
    Views:
    455
    Christopher Deckers
    Oct 15, 2003
  2. Big Daddy

    Java 1.2 Swing vs. Java 1.5 Swing

    Big Daddy, Apr 15, 2005, in forum: Java
    Replies:
    2
    Views:
    489
    Pete Barrett
    Apr 16, 2005
  3. mkrause
    Replies:
    0
    Views:
    662
    mkrause
    May 6, 2005
  4. lizard
    Replies:
    0
    Views:
    1,753
    lizard
    Jan 30, 2006
  5. S.T
    Replies:
    2
    Views:
    566
Loading...

Share This Page