Code examples

 

Here are some links to tutorials / snippets that are useful that can be found on the forums:

Tutorials:
1: Setting up your Java coding environment
2: The basics you should understand before coding..
3: Create methods, GUI’s implements ActionListeners
JDeveloper - execute with parameters
JDeveloper - custom method validation

Java MySQL tutorial

Programming principles

Code example / snippet:
Read a file using BufferedReader & FileReader
Play audio file(s) in Java!
Adding a String array to Vector dynamically
Execute an win32 application
Rolling a dice
A sample code that creates a directory, a file and saves data to the file
Display/choose an image in the cli, and display it on screen
Center a JFrame
Rounding a decimal number
Change the Font in a JLabel
An example of updating a textfile trough the net.
Read a file using BufferedReader & FileReader
Using threads to display the time
Create directory, file and write data
Check for file existence
Write to file using FileOutputStream
Swing JPopupMenu demo
Extending a class and use a method from the extended class
Swing JPopupMenu demo
Runtime.getRuntime().exec() demo
Save and load (Vector) object in Java
Gui with menubar
Random numbers
A basic swing GUI
Loading an image based on user input
Find an item in a MySQL database using Java

Compile errors:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException
java.lang.OutOfMemoryError
java.lang.StringIndexOutOfBoundsException
NullPointerException

If you want me to create a specific tutorial/code example or if you want to contribute yourself? Let me know by making a comment here or at the forums.

HappyFace
www.engineeringserver.com

 Date Posted: 28 Dec 2007 @ 01 49 PM
Last Modified: 22 May 2009 @ 12 18 PM
Posted By: HappyFace
EmailPermalink
 

Responses to this post » (One Total)

 
  1. [...] I’ve wrapped up a page with tutorials and code examples that can be found on the forums. You can find it here: http://www.engineeringserver.com/blog/tutorials-snippets/ If you want me to write a tutorial or give you a code example let me know by making a comment here or on the forums. User tutorials/code examples contributions are also welcome. HappyFace http://www.engineeringserver.com Share [...]‘; ( function() { var ds=typeof digg_skin==’string’?digg_skin:”; var h=80; var w=52; if(ds==’compact’) { h=18; w=120; } var u=typeof digg_url==’string’?digg_url:(typeof DIGG_URL==’string’?DIGG_URL:window.location.href); document.write(”"); } )() [...]

Post a Comment

You must be logged in to post a comment.

\/ More Options ...
Change Theme...
  • Users » 888
  • Posts/Pages » 1,444
  • Comments » 506
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Online Users



    No Child Pages.

Forum



    No Child Pages.