Results 1 to 12 of 12
  1. #1
    sharmapiyush is offline Member
    Join Date
    Apr 2014
    Posts
    74
    Rep Power
    0

    Default Mutiple Frames in single frame

    i want to know how i can add more than one frame in a single frame means main window or frame will be constant and only components will be chang or vary as in a software or game .

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    990
    Rep Power
    2

    Default Re: Mutiple Frames in single frame

    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: Mutiple Frames in single frame

    Punctuation is the next victim of society I see.

    i want to know how i can add more than one frame in a single frame means main window or frame
    That would be answered by SurfMan...

    means main window or frame will be constant and only components will be chang or vary as in a software or game .
    But then the explanation of the requirement changes 100%. This reads like "I want to know how to swap out the content of a frame" which would be more the territory of a CardLayout.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    sharmapiyush is offline Member
    Join Date
    Apr 2014
    Posts
    74
    Rep Power
    0

    Default Re: Mutiple Frames in single frame

    @SurfMan


    can you tell me one more thing could i add JPanel to JDesktopPane instead of JInternalFrame.
    or how could i use JInternalFrame as a dragdrop gui as we use JFrame form.

  5. #5
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    990
    Rep Power
    2

    Default Re: Mutiple Frames in single frame

    Quote Originally Posted by sharmapiyush View Post
    @SurfMan
    can you tell me one more thing could i add JPanel to JDesktopPane instead of JInternalFrame.
    or how could i use JInternalFrame as a dragdrop gui as we use JFrame form.
    This is where things get confusing. All of a sudden drag/drop comes into play? You need to backup a few steps and redefine your question. If you ask incomplete questions, how can I even begin with a sensible answer?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  6. #6
    sharmapiyush is offline Member
    Join Date
    Apr 2014
    Posts
    74
    Rep Power
    0

    Default Re: Mutiple Frames in single frame

    could i add JPanel to JDesktopPane instead of JInternalFrame?

  7. #7
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    990
    Rep Power
    2

    Default Re: Mutiple Frames in single frame

    Quote Originally Posted by sharmapiyush View Post
    could i add JPanel to JDesktopPane instead of JInternalFrame?
    Since JDesktopPane inherits from Container I think you can, but it wouldn't make much sense. JDesktopPane was built to host JInternalFrames, not JPanels. A piece of testing code would make this clear in seconds.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  8. #8
    sharmapiyush is offline Member
    Join Date
    Apr 2014
    Posts
    74
    Rep Power
    0

    Default Re: Mutiple Frames in single frame

    how could i remove the title bar of JInternalFrame ?

  9. #9
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    990
    Rep Power
    2

    Default Re: Mutiple Frames in single frame

    You can't.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  10. #10
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: Mutiple Frames in single frame

    Still on internal frames I see. Based on the continued questions I'm 100% positive that this is about changing the content of a single frame (cardlayout or simply removing child components and putting in new ones), not about being able to open multiple frames.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  11. #11
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    990
    Rep Power
    2

    Default Re: Mutiple Frames in single frame

    Quote Originally Posted by gimbal2 View Post
    Still on internal frames I see. Based on the continued questions I'm 100% positive that this is about changing the content of a single frame (cardlayout or simply removing child components and putting in new ones), not about being able to open multiple frames.
    Well, we have to work with what we are handed... MDI is dead anyway.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

  12. #12
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: Mutiple Frames in single frame

    I'm not blaming you mr. Godlike, I just get very sad when I see people not even attempting to understand what they want themselves.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Mutiple Connections problem
    By bikashlama in forum New To Java
    Replies: 7
    Last Post: 12-19-2011, 11:35 AM
  2. Showing multi frames within a single main frame
    By chandrupsekar in forum AWT / Swing
    Replies: 6
    Last Post: 11-24-2011, 03:55 PM
  3. mutiple object
    By ahmed80 in forum New To Java
    Replies: 1
    Last Post: 01-07-2011, 12:57 AM
  4. issue of mutiple panels
    By de.megha in forum AWT / Swing
    Replies: 1
    Last Post: 07-26-2010, 09:27 AM
  5. GUI - how do I get frames within a frame
    By AJArmstron@aol.com in forum New To Java
    Replies: 1
    Last Post: 04-28-2010, 02:00 AM

Posting Permissions

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