|
-
Sep 8th, 2001, 10:53 AM
#1
Thread Starter
Hyperactive Member
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
-
Sep 10th, 2001, 12:00 AM
#2
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).
-
Jan 16th, 2002, 04:19 PM
#3
Dazed Member
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.
-
Jan 16th, 2002, 04:45 PM
#4
Addicted Member
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
-
Jan 19th, 2002, 12:58 AM
#5
Thread Starter
Hyperactive Member
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
-
Jan 20th, 2002, 05:51 PM
#6
Dazed Member
Yeah i noticed it was kind of old. Don't mind me im just replying so i can fix something in my image.
Last edited by Dilenger4; Jan 22nd, 2002 at 01:34 PM.
-
Jan 22nd, 2002, 01:08 PM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|