Go Back   AnandTech Forums > Software > Programming

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 11-21-2012, 10:57 AM   #1
Tweak155
Diamond Member
 
Tweak155's Avatar
 
Join Date: Sep 2003
Location: Michigan
Posts: 8,972
Default GOOD Java tutorials?

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!
__________________
Organo Gold Coffee

Heatware 92-0-0
Tweak155 is offline   Reply With Quote
Old 11-21-2012, 11:25 AM   #2
beginner99
Platinum Member
 
Join Date: Jun 2009
Posts: 2,196
Default

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.
beginner99 is offline   Reply With Quote
Old 11-21-2012, 04:52 PM   #3
LumbergTech
Diamond Member
 
Join Date: Sep 2005
Posts: 3,623
Default

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.
LumbergTech is offline   Reply With Quote
Old 11-21-2012, 04:58 PM   #4
LumbergTech
Diamond Member
 
Join Date: Sep 2005
Posts: 3,623
Default

http://docs.oracle.com/javase/tutorial/
LumbergTech is offline   Reply With Quote
Old 11-22-2012, 12:08 AM   #5
IHateMyJob2004
Lifer
 
IHateMyJob2004's Avatar
 
Join Date: Sep 2004
Posts: 16,024
Default

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.
__________________
Look at the Blackberry BB10 phones with an open mind. They are actually good!
FREE MUSIC - via torrent:
http://bt.etree.org/
or just download some free music:
http://www.archive.org/audio/etree-band-showall.php 100% LEGIT!
IHateMyJob2004 is offline   Reply With Quote
Old 11-22-2012, 09:04 AM   #6
postmortemIA
Diamond Member
 
postmortemIA's Avatar
 
Join Date: Jul 2006
Location: Midwest USA
Posts: 6,504
Default

Quote:
Originally Posted by IHateMyJob2004 View Post
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.
__________________
D1. Win7 x64 i7-3770 on Z77, HD7850, 2707WFP, 840, X-Fi D2. Win7 x64 E8400 on P35
L1. OSX 10.9 rMBP 13 L2. Vista x86 E1505
M. Galaxy S4

postmortemIA is offline   Reply With Quote
Old 11-22-2012, 05:00 PM   #7
Merad
Golden Member
 
Join Date: May 2010
Location: NC USA
Posts: 1,927
Default

Netbeans Netbeans Netbeans. It's not as good as Visual Studio for C#, but still easy to use.
Merad is offline   Reply With Quote
Old 11-22-2012, 07:32 PM   #8
IHateMyJob2004
Lifer
 
IHateMyJob2004's Avatar
 
Join Date: Sep 2004
Posts: 16,024
Default

Quote:
Originally Posted by postmortemIA View Post
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.
__________________
Look at the Blackberry BB10 phones with an open mind. They are actually good!
FREE MUSIC - via torrent:
http://bt.etree.org/
or just download some free music:
http://www.archive.org/audio/etree-band-showall.php 100% LEGIT!

Last edited by IHateMyJob2004; 11-22-2012 at 07:34 PM.
IHateMyJob2004 is offline   Reply With Quote
Old 11-22-2012, 08:31 PM   #9
clamum
Lifer
 
clamum's Avatar
 
Join Date: Feb 2003
Posts: 21,617
Default

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.
__________________
\ Battlefield 4 Stats /\ Heat /
clamum is online now   Reply With Quote
Old 11-23-2012, 10:47 AM   #10
Leros
Lifer
 
Leros's Avatar
 
Join Date: Jul 2004
Location: Austin, TX
Posts: 21,559
Default

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.
Leros is offline   Reply With Quote
Old 11-24-2012, 11:31 AM   #11
reallyscrued
Platinum Member
 
reallyscrued's Avatar
 
Join Date: Jul 2004
Posts: 2,381
Default

Quote:
Originally Posted by LumbergTech View Post
Hahah...ahahhaha. That is the most boring drivel I've ever read.

http://www.javavideotutes.com/

^ Good, useful knowledge and logic.

http://www.lynda.com/

Do their Java Essential Training, then Advanced Training, then some Android Development tutorials on their website. They will use Eclipse. Get the basics down, then move to Netbeans for whatever graphical mayhem you need.
__________________

AMD Phenom II BE965 - 4.0 Ghz || Gigabyte 7850 2GB - 1050/5500 || GA-MA790X-UD4P - 240 Mhz FSB
4 GB Dual-Channel DDR2 - 800 Mhz || WD Caviar Black 1TB || WD Caviar Green 2TB
Denon AVR-591 || Pioneer SP-FS51/C21/BS-41 || BIC F12 || Klipsch RW-12D || Sennheiser HD 202-II || Panasonic TC-P50U50
reallyscrued is offline   Reply With Quote
Old 11-26-2012, 09:04 AM   #12
takeru
Golden Member
 
takeru's Avatar
 
Join Date: Jan 2002
Posts: 1,126
Default

IntelliJ IDEA, great java IDE, and there is a free community edition, can also be made portable by editing the config file.

http://www.jetbrains.com/idea/
__________________
A. When it rains, !#$% happens.
B. People with OCD+ADD should not be making decisions to subordinates...
C. Nothing like carrying your department and watching everyone move up but you.
takeru is offline   Reply With Quote
Old 11-26-2012, 03:32 PM   #13
Robert Munch
Senior Member
 
Robert Munch's Avatar
 
Join Date: Oct 2006
Location: Chicago
Posts: 864
Default

Used tutorials from here as well http://thenewboston.org/list.php?cat=31
__________________
Quote:
Originally posted by: NanoStuff

Shooting a preacher is like squishing a spider. It's sad for a while but it cleans the place up.
Robert Munch is offline   Reply With Quote
Reply

Thread Tools

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


All times are GMT -5. The time now is 07:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.