Java - Network

UDP Echo Server
Date : 10 Jun 2010
Views : 35

This code snippet demonstrates how to create a simple UDP echo server.

File Transfer Example Using Socket
Date : 06 Jun 2010
Views : 510

This code snippet demonstrates a very simple file transfer program. In this example the client program sends a file to the server. The client program is a GUI and allows a user to browse for a file to send to the server.

HTTP Server
Date : 04 Jun 2010
Views : 61

This code snippet demonstrates how to develop a simple HTTP server.

Get Web Page Using Socket
Date : 01 Jun 2010
Views : 99

This code snippet shows how to connect to a web server and request a file using the socket class.

TCP Port Scanner
Date : 01 Jun 2010
Views : 87

This code snippet shows how to develop a simple port scanner.

Simple RMI Example
Date : 14 Jul 2009
Views : 1605

This code snippet shows an example RMI Client/Server. The Client connects to the server and executes the GetMessage method. The server prints the message sent by the client.

POP3 Mail Client
Date : 04 Mar 2009
Views : 312

This snippet demonstrates how to connect to a pop3 mail server and get the inbox messages.

1

New Snippets

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

Calculate Age C# Miscellaneous

This code snippet shows how to calculate an age from a date of birth.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

XML Example 1 Ruby XML

This code snippet shows how to loop through an XML string.

Simple MySQL Class To Query Database Java Database

The following code snippet shows how to create a simple MySql class that can be used to create a connection to the database server and execute queries which return a ResultSet object.

Connect To MySQL Database Java Database

This code snippet shows how to connect to a MySQL database server. You will need to download Connector/j.

File Viewer Example Java Controls

This code snippet shows how to open a file for reading and display the data into a JTextArea component.

JMenu With ActionListener Example Java Controls

This code snippet shows how to add an ActionListener to a JMenu component.

JMenuBar Example Java Controls

This code snippet demonstrates how to use the JMenuBar component and how to add menu items using the JMenu and JMenuItem components.

MD5 Message Digest Example 1 Java Security

This code snippet shows how to use the MessageDigest class to get an instance of the MD5 MessageDigest. This code snippet does not return a 32 character string.

Check If File Is Hidden Java File Manipulation

This code snippet checks if a file is hidden.

Check If File Exists Java File Manipulation

This code snippet checks if a file exists. If it does, it displays its absolute file path.

What Others Are Viewing

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

Top Java Snippets

This code snippet shows an example RMI Client/Server. The Client connects to the server and executes the GetMessage method. The server prints the message sent by the client.

This snippet shows how to connect to a MS Access database.

This snippet shows how to connect to an MS Access database and query a table. The results are then displayed in the console.

This code snippet gets the selected node of a JTree component and displays it into a message box.

This code snippet shows how to read an XML file.

This code snippet demonstrates a very simple file transfer program. In this example the client program sends a file to the server. The client program is a GUI and allows a user to browse for a file to send to the server.

This code snippet shows how to populate a JTable component with data.

This snippet shows how to write to a file using the FileWriter Class

This snippet demonstrates how to connect to a pop3 mail server and get the inbox messages.

This code snippet shows how to add a button on a frame and give it a click event.