Just like the title says I wanna know if there is any way to have a MDI like control in Java.
Printable View
Just like the title says I wanna know if there is any way to have a MDI like control in Java.
From "The Complete Reference" -From Sun Documentation -Quote:
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.
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).Quote:
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.
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.
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
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...
Yeah i noticed it was kind of old. Don't mind me im just replying so i can fix something in my image. :D
How about posting your solution and then putting [resolved]? I'm sure it would be helpfull.