Results 1 to 4 of 4
  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    261
    Rep Power
    6

    Default JFrame.setAlwaysOnTop()

    I've been using JFrame.setAlwaysOnTop() to make my "sub-frames" always appear on top of the "main" JFrame. I do not want to use InternalJFrames because I want them to behave as their own windows; however, I want them to appear on top of the main application JFrame but NOT on top of other windows. How would I accomplish this?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: JFrame.setAlwaysOnTop()

    Simple -- don't use secondary JFrames. Instead use JDialogs. This is exactly what they're used for.

  3. #3
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    261
    Rep Power
    6

    Default Re: JFrame.setAlwaysOnTop()

    Oh o.O I shall try that xD thanks

    Yep, works wonderfully. Thanks!
    Last edited by AndrewM16921; 12-27-2012 at 03:53 AM.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. Replies: 3
    Last Post: 11-27-2011, 05:18 AM
  2. Replies: 5
    Last Post: 06-14-2010, 06:10 PM
  3. Replies: 2
    Last Post: 03-30-2010, 05:36 PM
  4. Passing data from one JFrame to another JFrame
    By tarami in forum New To Java
    Replies: 3
    Last Post: 08-06-2009, 05:44 PM
  5. Replies: 4
    Last Post: 04-22-2009, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •