|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| ||||
| ||||
| 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 :-) <<------------------------------>> |
|
#4
| |||
| |||
| 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." |
|
#5
| ||||
| ||||
| 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 :-) <<------------------------------>> |
|
#6
| ||||
| ||||
| ??? Did it work? |
|
#7
| ||||
| ||||
| 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 :-) <<------------------------------>> |
|
#8
| |||
| |||
| 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! |
![]() |
| Thread Tools | |
|
|
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 |