Originally posted by iManCE3:
<STRONG>I've played around with the examples but I still don't have a clue as to how to make my own interface and attach it to a java file. I've looked at the FAQ, and the help too. More specifically, how do I create a new NIB from w/in Project Builder? How do I add actions to that NIB from my custom Java file from Interface builder?</STRONG>
First off, I would highly recommend reading Apple's intro to Cocoa docs. To be really effective, you've got to understand the Cocoa programming paradigms, even though you're using Java instead of Objective-C. The Cocoa app design rules applies no matter what the programming language.
The first thing to do is subclass java.lang.Object and create your application controller. That is where actions will be sent. You need to create outlets and actions in your app controller. Then you can connect the UI elements and wire them to specific actions.
I tried to learn this without reading the docs, but quickly got lost. Spend the time to read Apple's material. Once you do, you'll quickly pick it up.
As an aside, you cannot use Interface Builder to create a 100% pure Java app -- something with a Swing interface for instance. IB only supports Cocoa and Carbon applications. You'll have to look elsewhere for a GUI-driven interface builder.
Good luck!