Windows Focus for Java application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnnetteB
    New Member
    • Oct 2007
    • 10

    Windows Focus for Java application

    I have a small Java frame with a couple of buttons and text fields but I would like it to reside on top of Notepad and any other pacakges I have open. Is this possible?? If so does anyone know how I go about it?

    Thanks.

    Annette
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by AnnetteB
    I have a small Java frame with a couple of buttons and text fields but I would like it to reside on top of Notepad and any other pacakges I have open. Is this possible?? If so does anyone know how I go about it?

    Thanks.

    Annette
    Have a look at the setAlwaysOnTop( ) method in the Window class (it's a
    parent class of the JFrame class).

    kind regards,

    Jos

    Comment

    • AnnetteB
      New Member
      • Oct 2007
      • 10

      #3
      Originally posted by JosAH
      Have a look at the setAlwaysOnTop( ) method in the Window class (it's a
      parent class of the JFrame class).

      kind regards,

      Jos
      Thank you - I will take a look at this and see if I can manage to get it working.

      Regards.

      Annette

      Comment

      Working...