Search This Blog

Free Two Person Text Chatting Application Software for Local Networks using Java With Source Code

two person text chat program java program java code java source code program code free chatting application free local network chatting free LAN Chatting LAN messenger
Java text Chatting program
Free two person chat program for local networks. This java text chatting application can be used for two person chatting within private or local networks. This java application uses TCP connection.

How to use

Both users should open this java application in their computer. One of them should click Make a Connection  while the other should enter the first person's ip address in the textfield provided and click Connect to this IP.

YouTube Video Locator For YouTube Partners (Uploaders) to Check Keyword Optimisation in YouTube

In this post, i am sharing an application which will help you to check the search engine optimization of your youtube video. The inputs for this java application are your channel address and the keywords to search for. The application will tell you in which page does your video come for that combination of keywords. This app was coded by myself when i was a youtube uploader. This can be useful for YouTube partners (uploaders). You require JRE 1.8 or later installed in your computer to run this lightweight application software. You can locate your video in youtube search results and check how much search optimised is your video for the given keyword. You can download the java application from following link.

Download YTViewer Youtube Video Locator for YouTube Partners (YouTube upoaders)

Bank Application in Java - Simulation of Banking Services in Java

Java Banking services simulation application java program java source code java code java simple sample banking application banking software
Java Banking services simulation application
This is a simple bank simulation application in java. The application first asks username and password. The default username and password for the application :

username: operator1
password: password

You can change this username and password in the application. This java bank application software supports following banking services.


  • Opening a new account
  • Money Withdrawal from the bank account
  • Making Deposits in the accout
  • Transfer of funds


TCP Server Client Two Person Chat Program in Java with GUI

Server-Client chat program or two way chat using TCP connection is a common problem for java practical labs or networking labs. Here this post introduces a simple lightweight Server client two person chat program using java. The program uses ServerSocket and Socket classes available in java.net package. This program is written so as to use the same as server or as client. Both the persons who chat use the same program. One should select hosting (acting as server) while the other could connect to him by entering the server ip address. I have added screenshots of the program also.
See Screenshots

Simple Pause and Resume Supported Download Manager using Java

In this post i am adding a simple download manager made using java programming language. The file is light weight. This java application supports pause and resume. You can resume a paused download at any time if the url is resume supported. This java desktop application maintains a simple download queue. You can directly drag and drop download links into this java download manager app or add paste links. When the app exits, it saves it current progress and download queue so that you can easily resume the download in this java download manager desktop app when you start the application later.
free download manager for computer in java. lightweight and compact
Free Java Download Manager for 

Features:

  • Light weight
  • Pause and resume supported
  • Drag and drop download links
  • Download queuing supported.
  • Source code available


Download DownloadManager.jar (app) here.


Clock Application using Java - Java Source Code for Analog Clock Application

For my java practical lab experiments, i had to create an analog clock using java. So, i created a
Java analogue clock application applicaion program source code Analogue clock using java programming language. Analog clock application using java
Analog Clock Application using Java.
simple analog clock using java. The program source code is added below. It makes use of java 2D Graphics Object and draws the clock in the screen. The clock displays all the three hands (hour hand, second hand and minute hand). The program source code is as follows. The screenshot of the java analog clock application is also added.

Simple Java Calculator Program Using Java Applet

Java calculator application using java applet JAppet and Swing components. how to make Simple java calculator applet. Java program source code for simple calculator applet
Screenshot of Simple calculator applet in java
This post shows a sample Calculator Program using Java Applet. This program uses the JApplet Class and Swing components in the program. The full source code is given below. This is a java Applet program for a simple calculator with operations addition, subtraction, division and multiplication on floating point numbers. It also have the C (clear) button. This Java Calculator applet was created by myself for my practical lab experiment. I think this may be useful for beginners in java.

How to Remove Title bar from JFrame of Java Application

To remove the title bar completely, there is a method called setUndecorated() in java. It takes a boolean variable. If the boolean is true, the title bar will be removed. The following one is an example. The method setUndecorated() invoked with a true boolean argument, will remove the title bar from the JFrame MyJFrame. The method is called here from the constructor. You may call it anywhere from within the class scope.

How to Close or Exit a Java App When some Button is Clicked

To close a Java app, System.exit() can be used. This function can be used to close the app if an error occurs or no error is occurred. If no, error occurred, the argument  of the function should be 0. This method terminates the currently running Java Virtual Machine. The argument stands for status code; by convention, a nonzero status code indicates abnormal termination. If you are calling the System.exit() function without any errors (in normal case), just give the argument as zero. This method calls the exit method in class Runtime.

How to Use System.getProperty() - Keys for System Properties

There is a method getProperty() in System class in java. As the name indicates, this java method is used to get System specific, operating system specific or user specific properties. There are different keys which are strings passed as parameter to the getProperty() method.

Usage

The following sample java code will show you how to use the getProperty method in System class. The key is a string. The System.getProperty() method takes a string parameter (argument). Based on the string passed, the method System.getProperty() returns different properties as string. In this example,we pass "java.io.tmpdir" as the parameter, which is the key to get the temporary directory (temp directory) for the current user account.

String property = "java.io.tmpdir"; String tempDir = System.getProperty(property); System.out.println("temp directory ="+ tempDir );


Similarly, for each property, there is a key. Below, the keys for different properties are listed.
"file.separator"
Gives the character that separates components of a file path. This is "/" on UNIX and "\" on Windows. This character is used in File paths for cross platform java applications
"java.class.path"
Returns the path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in the path.separator property.
"java.home"
Returns the installation directory for Java Runtime Environment (JRE)
"java.vendor"
Returns the name of JRE vendor
"java.vendor.url"
Returns the URL of JRE vendor
"java.version"
Returns the version number of JRE
"line.separator"
Returns the character sequence used by operating system to separate lines in text files. This is operating system specific. It can be '\n', '\r' or "\r\n".
"os.arch"
Returns the operating system architecture
"os.name"
Returns the name of the Operating system
"os.version"
Returns the version of the Opposing system.
"path.separator"
Returns path separator character used in java.class.path
"user.dir"
Returns the path to the working directory of current user in the computer.
"user.home"
Returns the path to the home directory of current user.
"user.name"
Returns the name of current user (user account name)