I am a beginner programmer...well, not really a programmer at all yet but I'm interested in it.
I've learned a bit of visual basic in a beginner college course.
I liked how you could set the exact position and size of controls within the
forms, and even write script to make the controls move around.
I want to learn a language that:
1. Allows you to create GUIs.
2. Allows you to set exact pixel positions and sizes, and change their
positions/sizes throughout the script.
3. Allows you to create an executable file that can run on basically any
Windows OS.
VB has 1 and 2, but not 3.
I have read up on Java a little, and I see that it has 1, and I'm pretty sure it has 3. However, from what I read, Java does not have 2. I couldn't find anything explaining how to set positions of controls to your exact specifications, only some "layouts" that automatically do it.
Is it possible to do that in Java, or should I be considering a different language? What language do I need?
Thanks.
Should I Learn Java or...?
Started by EddieInOhio, Aug 17 2009 11:36 AM
10 replies to this topic
#1
Posted 17 August 2009 - 11:36 AM
|
|
|
#2
Posted 17 August 2009 - 12:07 PM
2 is possible, but Java is not a RAD environment, under normal circumstances. Delphi also has 1, 2, and 3.
#3
Guest_Jordan_*
Posted 17 August 2009 - 01:13 PM
Guest_Jordan_*
Yes, it is possible. You can use Netbeans to do this via point-and-click like VB or you can do it in the code.
#4
Posted 17 August 2009 - 01:15 PM
Java proper isn't a RAD environment, like Winged said, but when you add NetBeans to programming with Java, NetBeans contains a GUI Building environment for generating Java code. So that could work out rather well for you if you tried it. :)
Also Java doesn't need to be recompiled to work on multiple machines, even Linux, Mac, and Solaris.
Also Java doesn't need to be recompiled to work on multiple machines, even Linux, Mac, and Solaris.
Wow I changed my sig!
#5
Posted 17 August 2009 - 04:04 PM
Although the code made with the Netbeans editor can be a real pain to work with. It is really useful though!
#6
Posted 17 August 2009 - 04:16 PM
Thanks for the info everyone. But can someone explain what a RAD environment is? From the context I figure it has to do with the positioning and sizing of controls and such.
#7
Posted 17 August 2009 - 04:38 PM
A RAD environment means "Rapid-Application Development", it's the visual interface that allows you to drag-and-drop controls onto a generated window and position them. Visual Basic has that, when you start it up it shows you a window you can drag-and-drop controls onto to later use in the code. That's what is generally accepted as RAD. RAD is essentially a WYSIWYG for GUI development.
Quite a few BASIC flavors employ RAD, including VB. Also REALbasic, Gambas, and a few others. Other languages employ GUI development by simply positioning controls using widgets/absolute positioning in code. So with C++ you'd code write your interface, which requires a bit of a build-test-rewrite-build... cycle, but it works well.
Some C++ toolkits come with their own RAD systems, like Qt and WxWidgets (if you find it ;)). You can also do all that stuff as above in C++, Delphi/Lazarus, or pretty much any common language to be honest. It's a matter of personal preference.
Quite a few BASIC flavors employ RAD, including VB. Also REALbasic, Gambas, and a few others. Other languages employ GUI development by simply positioning controls using widgets/absolute positioning in code. So with C++ you'd code write your interface, which requires a bit of a build-test-rewrite-build... cycle, but it works well.
Some C++ toolkits come with their own RAD systems, like Qt and WxWidgets (if you find it ;)). You can also do all that stuff as above in C++, Delphi/Lazarus, or pretty much any common language to be honest. It's a matter of personal preference.
Wow I changed my sig!
#8
Posted 17 August 2009 - 09:50 PM
2. Allows you to set exact pixel positions and sizes, and change their positions/sizes throughout the script.I have read up on Java a little, and I see that it has 1, and I'm pretty sure it has 3. However, from what I read, Java does not have 2. I couldn't find anything explaining how to set positions of controls to your exact specifications, only some "layouts" that automatically do it.
You seem to not have read enough.
Let me tell you this you can position everything you want in a panel or frame in java. You can use setLayout(null); this means you don't have any specific scheme to follow or so. You will have to set all your components where ever you want them to be. Also you can change size and etc.
#9
Posted 18 August 2009 - 04:30 AM
Ok thanks guys, I just wanted to make sure that I was going to be able to do the things I wanted if I learned Java, or any language. I think I'll try to learn Java then.
Thanks!
Thanks!
#10
Posted 18 August 2009 - 07:27 AM
Quote
3. Allows you to create an executable file that can run on basically any
Windows OS.
Windows OS.
#11
Posted 18 August 2009 - 07:44 AM
There's actually a portable Java, now. You can carry Java on a pendrive :)


Sign In
Create Account

Back to top









