![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 148
Rep Power: 4
![]() |
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? |
|
|
|
|
|
#2 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 148
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#4 |
|
Sexy Programmer
|
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! |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 148
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#6 |
|
Expert Programmer
|
C# is a lot easier, and more visual.
__________________
|
|
|
|
|
|
#7 | |||
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4
![]() |
Quote:
Quote:
Quote:
![]()
__________________
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 |
|||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |