image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 17th, 2000, 10:36 AM
Registered User
 
Join Date: Oct 2000
Location: Netherlands
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
The DJ is on a distinguished road
Question

Is there someone out there who can tell me how i can program a GUI frontend to CLI programs?
I have no idea where to start.
My only experience in programming is JAVA.

Please help out a starting developer.

DJ
Reply With Quote
  #2  
Old October 17th, 2000, 10:24 PM
Registered User
 
Join Date: Oct 2000
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
jakal is on a distinguished road
Yeah, just use the Swing libraries in java. OS X has a java compiler built in "javac". There are heaps of sites with info about how to construct UI's with swing, in fact the Apple Developer's Connection has a downloadable .pdf file which walks you through greating a GUI-based java app in OS X. If you've downloaded the developer's resources from the ADC then this tutorial will show you how to create a GUI with those tools - http://developer.apple.com/techpubs/...vaTutorial.pdf

Other than that, you can use swing/AWT to create a GUI. There's a good AWT tute on the Sun website: http://developer.java.sun.com/develo.../contents.html

Finally, Bruce Eckel has written a good java text book - and published the whole thing on the net: http://www.bruceeckel.com/TIJ2/index.html

If you use swing to create a GUI, by default it will use the "metal" look and feel. Add this line to your code to use the Aqua look and feel instead:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

hope this helps, for more info on programming in java on the mac - have a look at http://www.macs.unisa.edu.au/~jakal/mac_java.htm
Reply With Quote
  #3  
Old October 18th, 2000, 10:12 AM
AdmiralAK's Avatar
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
Question Java for OS X

Does anyone know when Java is coming out for OS X ?
Is it going to be a GUI like the current one for MacOS,
or is it going to be in the CLI (like the sun one I use now)?
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote
  #4  
Old October 18th, 2000, 04:10 PM
Registered User
 
Join Date: Oct 2000
Location: U of I @ Champaign
Posts: 208
Thanks: 0
Thanked 0 Times in 0 Posts
Ghoser777 is on a distinguished road
Wink

Uhmmm... I'm pretty sure Java2 is completely integrated into OSX as is. I'm not sure if I understand ur question, though... I can compile and run java code fine from terminal, and u can use project manager to make gui java apps. I hope I actually answered your question.

F-bacher
__________________
James Tiberius Kirk : "Spock,
the women are your planet are
logical. No other planet in the
universe can make that claim."
Reply With Quote
  #5  
Old October 18th, 2000, 05:36 PM
AdmiralAK's Avatar
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
Talking Really ???

WOw...
So you mean that I can go into my terminal...
open up emacs... write my code...save it
then go back to the CLI type javac MyProgram.java
and it will do it ???
they I can run it by typig java mYprogram and it will run ??
No extra stuff needed ???
WOW! Need to test this out....

<< leaves really fast >>
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote
  #6  
Old October 19th, 2000, 12:27 AM
MasonMcD's Avatar
Registered User
 
Join Date: Sep 2000
Location: Alpharetta, GA
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
MasonMcD is on a distinguished road
???

Did it work?
Reply With Quote
  #7  
Old October 19th, 2000, 09:07 AM
AdmiralAK's Avatar
Simply Daemonic
 
Join Date: Oct 2000
Location: Classified
Posts: 5,787
Thanks: 0
Thanked 0 Times in 0 Posts
AdmiralAK is on a distinguished road
Talking It workeeedd!!!

It worked I tell ya!
It woooooooorled
__________________
<<------------------------------>>
Seid ihr bereit fuer Club Admiralty ????
Club Admiralty: Http://www.club-admiralty.com
Copyright 1996-present
Bonified Gadget Geek :-)
<<------------------------------>>
Reply With Quote
  #8  
Old October 31st, 2000, 11:37 PM
Registered User
 
Join Date: Sep 2000
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
IamBob is on a distinguished road
some time ago..I had had bruce eckel's book in pdf for a good 3 months and didn't know it then went and got the book!

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); seems to only work if you don't create any swing components before you call it.

If anyone has gotten the appletviewer to work..tell me how! I'm trying to be able to chat in Yahoo. I've extracted the applet tag burried in Yahoo's frames crap and have used this method in OS9 to avoid having to load it in the browser. Since OSX I haven't been able to do this.

I'm currently working on a chat server and client if anyone's interested in helping drop me a line at the_name_thief@yahoo.com and I'll send the code I've got so far or something...watch out, it's sloppy!
Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ldapv3 GUI problem com160 Networking & Compatibility 0 September 29th, 2003 10:11 AM
Secure Copy Client (GUI) for Mac... loom001 Unix & X11 3 July 16th, 2003 07:31 PM
Thoughts on OS-X/UNIX/and MacOS devnul Apple News, Rumors & Discussion 110 September 17th, 2002 06:34 PM
new FTP client is a cocoa front end GUI for a UNIX CLI!!! solrac Mac OS X System & Mac Software 2 May 19th, 2002 04:34 PM
how do we print back to front in mac os x epson C80 buggs1a Hardware & Peripherals 0 January 2nd, 2002 09:16 PM


All times are GMT -5. The time now is 01:40 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.