Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 28th, 2007, 6:21 PM   #1
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
Which is easier for making a GUI program?

I was wondering which language, Java or C# would be easier for making simple GUI applications. I mean, the stuff I wanna make is fairly simple and straightforward. Like for example, one program I'd like to do would have a form and then some option buttons on the side in which the user could choose if he wants to add, subtract, multiply, or divide the two numbers he will input into two different textboxes. Another simple GUI program I'd probably want to make is where the user enters a string in one box, and then clicks a button and then the string shows up reversed in another box. I think you get the idea.

I know C# is considered a RAD tool, and you can simply drag and drop components onto your form and start writing event handlers. I don't know if Java is really considered a RAD tool, and it may be more difficult to write these GUI projects.

What do you think?
357mag is offline   Reply With Quote
Old Jul 28th, 2007, 9:01 PM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4 lectricpharaoh will become famous soon enough
In C#, designing forms is very easy, as you can do it all visually, but the same can be said of Java if you use the right IDE. I believe NetBeans supports this, or is bundled with a plugin to provide this support. If you're curious about Java, reggaeton_king seems like a good guy to talk to, as he uses Java a fair bit and seems familiar with various Java IDEs and other tools.

If it were me, I'd go with C#, but that's strctly personal preference. I find C# to be a 'cleaner' language from a syntactic standpoint, since it provides features Java doesn't (properties, operator overloading, and indexers spring to mind). I also find the class libraries in the .NET Framework to be more comprehensive than the Java API, but to be fair, I don't use Java a whole lot. However, if you're aiming for a more cross-platform solution, then Java is probably a better choice.

Thus, my advice: if you're developing for Windows, C# gets my vote. If you want cross-platform, go with Java, coupled with a good visual-type IDE.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Old Jul 28th, 2007, 9:11 PM   #3
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
I've used JDeveloper for the little Java work that I've done. I think, although I'm not sure, that there is a component palette so you can choose a component and drop it on your form. I agree with you though, that C# really seems to have a lot going for it, and the faster RAD approach is appealing to me. I'm not interested in portability at all, since I'm just doing this on my own as a hobby.
357mag is offline   Reply With Quote
Old Jul 28th, 2007, 9:41 PM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
With Java, you can use Netbeans to design your GUI applications. Eclipse also has a plug-in for a Form Designer too. I personally don't like either tool but since you have no interest in creating portable programs, then I'd stick with C#. I like Form Designers but programming my GUI apps line by line taught me a lot so I did benefit from that.

I highly recommend you understand how a Form Designer works and what code it creates when you add different GUI components to the form. It can only benefit.

@lectricpharaoh: Thanks for your kind words!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Jul 29th, 2007, 1:04 AM   #5
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
I've tried Netbeans and didn't like it nearly as much as JDeveloper. Every time I ran my program that asked the user to input two integers and then output the sum, the previous values that the user entered were still sitting in the input box. I'm not talking a GUI application type input box, but I still was working with just a console program. But when you use the Scanner class to get input from the keyboard, a long text box(input box) shows up at the bottom of the window. That's where you input your integers into the program.

But when I was done with the program, and I wanted to run it again just using different integers, the previous values were always sitting in the input box. It drove me nuts, and I never did find a solution.
357mag is offline   Reply With Quote
Old Jul 29th, 2007, 3:41 AM   #6
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 572
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
C# is a lot easier, and more visual.
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 is offline   Reply With Quote
Old Jul 29th, 2007, 5:08 PM   #7
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by reggaeton_king
I like Form Designers but programming my GUI apps line by line taught me a lot so I did benefit from that.
Agreed. I'm not sure which is more painful though; doing it in Java, or using the raw Win32 API.
Quote:
Originally Posted by reggaeton_king
I highly recommend you understand how a Form Designer works and what code it creates when you add different GUI components to the form. It can only benefit.
Yes, if you're using visual tools, at the very least, read through the code it generates. Learn how it declares and initializes your controls, and how it registers the event handlers. It makes the whole process seem much less like magic.
Quote:
Originally Posted by reggaeton_king
@lectricpharaoh: Thanks for your kind words!
Well, from your posts, you seem not only knowledgeable about Java, but you seem to enjoy it too. Thus, you can balance out the 'dump Java, go for C#' opinions.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
program resulting in an executable. sagedavis C++ 30 Jan 31st, 2007 3:06 PM
Language display in program Prm753 C++ 3 May 30th, 2006 5:45 PM
Creating a program to test a program sixstringartist C 8 Jan 21st, 2006 1:15 PM
Nonsense Name generator program chillster13 C 14 Jun 17th, 2005 2:05 AM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC