Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java GUI for C Application?

Status
Not open for further replies.

JavaKat

Programmer
Jun 27, 2002
11
US
Is this even possible?

I've found a lovely open-source C application that only has a bare-bones text interface (type a for add, b for browse, etc.).

This application really deserves a nice GUI. That, and I hate text prompts with a passion. I can make Java sit up and beg, but I don't know anything about C! Is there any way to use this C code for the back-end, and run it through a Java GUI?

Or do I just need a long nap in a rubber room?

Blessings upon you and your descendants unto the third generation for ANY help you can give!
 
I think Java native methods might work. I dunno much about them, cos I've never used them personally, but books Such as Cay Horstmann : Java Volume 2, Advanced Features has a little section on it. I think the Java tutorial at java.sun.com also has some useful info.
 
If you had long nap in Microsoft's rubber room, then they might let you out if you looked at the Win32 API and C++. Then you'd be able to call your C code from a nice GUI willy nilly.

But then you'd have joined the dark side and will never be able to play in the lovely land of free stuff.

Sorry I have nothing constructive to say!
 
Hey, how about that... page 843 in Core Java II... "Calling a C Function from the Java Programming Language" Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top