Results 1 to 7 of 7

Thread: Is there any way to have MDI in Java? [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Is there any way to have MDI in Java? [RESOLVED]

    Just like the title says I wanna know if there is any way to have a MDI like control in Java.
    Last edited by CaptainPinko; Jan 23rd, 2002 at 11:11 AM.
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  2. #2
    VirtuallyVB
    Guest
    From "The Complete Reference" -
    The Observable class and the Observer interface allow you to implement sophisticated program architectures based on the document / view methodology. They are also useful in multithreaded situations.
    From Sun Documentation -
    public class Observable
    extends Object
    This class represents an observable object, or "data" in the model-view paradigm. It can be subclassed to represent an object that the application wants to have observed.

    public interface Observer
    A class can implement the Observer interface when it wants to be informed of changes in observable objects.
    It can be done with these, but I didn't find a ready-made solution like MDI that you wouldn't have to worry about calculating the boundaries (bounds) of the parent window to maintain the child positions. That's not to say that a more complete solution isn't already out there (or in your core java sdk).

  3. #3
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    You would want to use a JDeskTopPane container and have JInternalFrame's within it. Take note though JInternalFrames use InternalFrameListeners instead of WindowListeners because you are now working with InternalFrameEvent objects instead of WindowEvent objects.

  4. #4
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Not sure if you are in to writing applets at all, but the exciting thing about applets is you can build a windowed interface with multiple windows into an applet. Then on the web page between the applet tags you can build a minimal or invisible interface. For security purposes, the applet's windows are branded so that even if your brain only fires on a couple of neurons, you can still figure out that you're looking at an applet, not something masquerading as something else.

    cudabean

  5. #5

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    yeah, sorry that question, its ancient. i learned all this shiit ages ago. maybe i should del this thread then? or leave for others? idunno...
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  6. #6
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Yeah i noticed it was kind of old. Don't mind me im just replying so i can fix something in my image.

  7. #7
    VirtuallyVB
    Guest

    Lightbulb

    How about posting your solution and then putting [resolved]? I'm sure it would be helpfull.

Posting Permissions

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



Click Here to Expand Forum to Full Width