Learning Java

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Barrucadu

Established Member
Impact
64
Can anyone recommend various programs I could try to make in Java?
I generally learn by doing (only look at tutorials when I am completely and utterly stuck).
Here is what I have figured out so far:
  • A program to send a HTTP request to a server (specified by the user) and display the response headers.
  • "Hello World"
  • A program to read and print the contents of a file.
  • A program using various class functions (creating instances, "extends", etc), also uses "generator" to create random numbers.
  • A program that 'types' "Hello World" one letter at a time, occasionally making 'typos' and correcting itself (printing a backspace character followed by the correct character).

I'm thinking about learning Swing next, or possibly applet coding.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Don't bother learning swing its outdated
 
0
Close
then what do you suggest to us to learn?
 
0
Close
The popular gui library in Java is now the Standard Widget Toolkit (SWT). You can read about it here: http://www.eclipse.org/swt/

There's still lots of swing code out there, but it's not considered "sexy" anymore (arguably never was, but it sure was a vast improvement over its own predecessor).

So go with the SWT. You'll pick up what few bits of swing you'll need as you go.

Don't worry about applets for now. Once you know how to write gui code in Java, converting your application to an applet is trivial.
 
0
Close
Hmm, thank for your suggestion.
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back