Results 1 to 8 of 8
  1. #1
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default hide one frame under another

    i have two jframe running but i want to keep one jframe in the background
    but not destroy. it will only appear on button click and will not use the memory resource when not in use.cannot use cardlayout

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Java Code:
    frame.setVisible(false)
    ?

  3. #3
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    cannot use frame.setVisible();
    is there any other way

  4. #4
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    think that when one frame is there the other frame does not exist.it is called only on button click

  5. #5
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    OK so you are making very little sense. First you say you have two Frames running and want to hide the other. Now you say you only have one Frame running (the other one does not exist). So why do you need to hide a Frame that does not exist?

    You'll have to be more accurate in your descriptions or post the relevant code that you are struggling with.

  6. #6
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    what i am trying to say is that when i am working with one panel i dont want the other panel to occupy my memory resource
    or be shown on the frame .it will be only loaded when called....

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

  8. #8
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by marodia View Post
    what i am trying to say is that when i am working with one panel i dont want the other panel to occupy my memory resource
    or be shown on the frame .it will be only loaded when called....
    And now they are panels not frames? You really have to make up your mind on what you are talking about.

Similar Threads

  1. How to Hide cursor
    By priya in forum Java Software
    Replies: 1
    Last Post: 12-09-2010, 09:39 PM
  2. How to hide Download Link
    By tarzan1234 in forum Advanced Java
    Replies: 1
    Last Post: 02-11-2009, 06:11 PM
  3. How to hide Download Link
    By tarzan1234 in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 02-05-2009, 02:49 PM
  4. How to hide a window of application
    By Jktu in forum AWT / Swing
    Replies: 4
    Last Post: 10-29-2008, 06:53 AM
  5. Hide Object in the Taskbar when Frame is down to Tray
    By hannehomuth in forum Advanced Java
    Replies: 2
    Last Post: 07-12-2008, 06:54 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
  •