Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Interface Builder Java questions

Interface Builder Java questions
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2001
Status: Offline
Reply With Quote
Nov 10, 2001, 09:34 AM
 
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?

Thanks!
iManCE3
iMan
     
Forum Regular
Join Date: Jan 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Nov 10, 2001, 02:44 PM
 
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!
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Nov 12, 2001, 01:48 PM
 
I would start here (yes, on your drive):

/Developer/Documentation/Cocoa/JavaTutorial/JavaTutorial.pdf

I found it enlightening.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:51 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2