Okay, I know how to make an NSWindow in java (new NSWindow(....)), but how do I add different objects to it in code? Sometimes I use the nib file, but other times (like now) I need to edit the objects in my WIndow at run time (like insert an NSTextView one time ot an NSButton another). Here's my current code:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
NSWindow theSheet = new NSWindow(aRect, NSWindow.TitledWindowMask, NSWindow.Buffered, true);
NSApplication.sharedApplication().beginSheet(theSh eet, aWindow, null, null, null);
</font>[/code]
So, how would I add an NSButton to theSheet?
Thanks,
F-bacher