NameSilo

Learning Java

Spaceship Spaceship
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
•••
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
•••
then what do you suggest to us to learn?
 
0
•••
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
•••
Hmm, thank for your suggestion.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back