GOOD Java tutorials?

Tweak155

Lifer
Sep 23, 2003
11,449
264
126
I've searched Google and have not found a very good Java tutorial. I would particularly be interested in how to start creating GUI's.

I found a GUI example that just seemed like a headache. I'm too babied by VBA & VB.NET gui's to make a gui. Am I missing something like this for Java?

I need help as I am a decent programmer and learn languages fairly quickly - but learning environments I'm as handicapped as they come.

So to be clear, even very good Hello World examples that talk about points of Java (something that explains WHY we're doing something, not just how) or slightly more complex would be useful.

TIA!
 

beginner99

Diamond Member
Jun 2, 2009
5,318
1,763
136
My 2 cents:

If you really need to make desktop GUI, don't use Java unless you really need support on Linux (or non-Windows). For Windows, stay with .net.

Netbeans IDE has a usable GUI Editor like Visual Studio with drag & drop of controls.

http://netbeans.org/kb/docs/java/quickstart-gui.html

If you need a rather advanced client and GUI maybe look at this (never used myself so can't tell if good)

http://netbeans.org/features/platform/

But IMHO in general java is better suited for server side.
 

LumbergTech

Diamond Member
Sep 15, 2005
3,622
1
0
Java is super easy to do most GUI stuff in. As long as you know general GUI concepts, you are good to go. Just grab netbeans and use the visual editor to simplify the layout aspect.
 

postmortemIA

Diamond Member
Jul 11, 2006
7,721
40
91
AHHHHHHHHHH.

GUIs in Java are easy. Stop using these stupid layout tools. Just learn the language and learn the Eclipse IDE.

http://docs.oracle.com/javase/tutorial/uiswing/

Once you learn Eclipse and how Swing works you can create GUIs blind.

Yeah right. First,guy worked already with GUI editors, so netbeans would be better choice as mentioned, as it actually has swing GUI editor - unlike eclipse.
For anything non- trivial, GUI editor is a must. Since it is going to auto-generate Java code, there is a chance to learn how widgets are used.
Doing it by hand, as a beginner, spells trouble.
 

Merad

Platinum Member
May 31, 2010
2,586
19
81
Netbeans Netbeans Netbeans. It's not as good as Visual Studio for C#, but still easy to use.
 
Sep 29, 2004
18,656
68
91
Yeah right. First,guy worked already with GUI editors, so netbeans would be better choice as mentioned, as it actually has swing GUI editor - unlike eclipse.
For anything non- trivial, GUI editor is a must. Since it is going to auto-generate Java code, there is a chance to learn how widgets are used.
Doing it by hand, as a beginner, spells trouble.

Not doing it by hand as a beginner will always make that person a beginner as they rely on such crutches going forward.

I have not once found something I can't do without a layout editor. And as a bonus, I don't get code bloat, horribly named variables and disorganized code and I can do crazy things like reuse code.
 
Last edited:

clamum

Lifer
Feb 13, 2003
26,256
406
126
Like beginner99 said, I'd stick to .NET if you don't need cross-platform support. Building GUIs in .NET beats the living shit out of doing it with Java.

If you're just trying to do it in Java for a pet project, or just to learn it for the sake of it, good luck, sorry I can't point you in a direction for a tutorial. I learned GUI building in Java from my first few college C.S. classes.
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
It's a shame that there isn't something like WPF for Java. Android's GUI system is very similar.

I stick to Java for all my personal projects simply because I want to share them with the widest audience that I can.
 

reallyscrued

Platinum Member
Jul 28, 2004
2,618
5
81