AJP Micro Project
AJP Micro Project
AJP Micro Project
2. RATIONALE ……………………………………………………. 4
5. LITERATURE REVIEW.....................................................................................5 - 14
****************************************************************
MICRO-PROJECT REPORT
TITLE : PREPARE A JAVA PROGRAM TO GET
IP ADDRESS
1.0 RATIONALE :
The idea of this micro-project is to make a We can develop IP Finder in java with the help of
Networking AWT/Swing with event handling. Let's see the code of creating IP Finder in java.
In addition to the language changes, other changes have been made to the Java Class
Library over the years, which has grown from a few hundred classes in JDK 1.0 to over
three thousand in J2SE
5. Entire new APIs, such as Swing and Java2D, have been introduced, and many of the
original JDK
1.0 classes and methods have been deprecated. Some programs allow conversion of Java
programs from one version of the Java platform to an older one (for example Java 5.0
backported to 1.4) (see Java backporting tools).
Regarding to Oracle Java distribution, version 11 is the currently supported long-term
support (LTS) version (and Java 8 LTS to some degree). ("Oracle Customers will receive
Oracle Premier Support"); Oracle released for the "legacy" Java 8 LTS the last free
software "public update" in January 2019 for commercial use, while Oracle continues to
release no-cost public updates for Java 8 for e.g. development and personal use
indefinitely. Java 10 is the previously supported rapid release version. Java 10 support
ended on the same date that support for Java 11 began, in September 2018. Java 7 is no
longer publicly supported, and Java 9 has stopped receiving updates since Java 9 was a
short-term rapid release version that has been superseded by Java 10 and now Java 11. For
Java 11, long-term support will not be provided by Oracle for the public; instead, the
broader OpenJDK community, as AdoptOpenJDK or others, is expected to perform the
work.
Java 15 General Availability occurred on September 15, 2020, with Java 16 now in
Rampdown Phase Two (Initial Release Candidate expected February 4, 2021), and with Java
17 now also in development.
Actuall Coding :-
package project;
import
javax.swing.*;
import
java.awt.event.*;
import java.net.*;
ActionListener{ JLabel l;
JTextField
tf; JButton
b;
IPFinder(){
Javatpoint"); l=new
JLabel("Enter URL:");
l.setBounds(50,70,150,20);;
tf=new JTextField();
tf.setBounds(50,100,200,2
0);
b=new JButton("Find
IP");
b.setBounds(50,150,80,3
0);
b.addActionListener(this
); add(l);
add(tf);
add(b);
setSize(300,300
);
setLayout(null);
setVisible(true);
try {
InetAddress
ia=InetAddress.getByName(url); String
ip=ia.getHostAddress();
JOptionPane.showMessageDialog(this,ip)
JOptionPane.showMessageDialog(this,e1.toString());
}
OUTPUT OF CODE:-
IP FINDING Frame which take and input for web site in the fromat for
www.domainname.com so it will return a IP address of that website it can be use for ip
tracking device