0% found this document useful (0 votes)
13 views7 pages

Dadaajp

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

Dadaajp

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Introduction

Java is a class-based, object-oriented programming language that is designed to


have as few implementation dependencies as possible. It is a general-purpose
programming language intended to let application developers write once, run
anywhere (WORA),meaning that compiled Java code can run on all platforms that
support Java without the need for recompilation.[ Java applications are typically
compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the
underlying computer architecture. The syntax of Java is similar to C and C++,but has
fewer low- level facilities than either of them. The Java runtime provides dynamic
capabilities (such as reflection and runtime code modification) that are typically not
available in traditional compiled languages. As of 2019, Java was one of the most
popular programming languages in use according to GitHub, particularly for client-
server web applications, with areported 9 million developers.
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired
by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform. The original and
reference implementation Java compilers, virtual machines, and class libraries were originally released by
Sun under proprietary licenses. As of May 2007, in compliance with the specifications of the Java
Community Process, Sun had relicensed most of its Java technologies under the GNU General Public
License. Oracle offers its own HotSpot Java Virtual Machine, however the official reference
implementation is the OpenJDK JVM which is free open source software and used by most developers and
is the default JVM for almost all Linux distributions.
Coding :- import

javax.swing.*; import

java.awt.event.*; import

java.net.*;

public class IPFinder extends JFrame implements ActionListener

JLabel l;

JTextField tf;

JButton b;

IPFinder()

super("IP Finder Tool ");

l=new JLabel("Enter URL:");

l.setBounds(50,70,150,20);;

tf=new JTextField();

tf.setBounds(50,100,200,20);

b=new JButton("Find IP");

b.setBounds(50,150,80,30);

b.addActionListener(this);

add(l);

add(tf);

add(b);
setSize(300,300);
setLayout(null);

setVisible(true)

public void

actionPerformed(ActionEvent e)

{ String url=tf.getText();

try {

InetAddress

ia=InetAddress.getByName(ur

l); String

ip=ia.getHostAddress();

JOptionPane.showMessageDia

log(this,ip);

catch (UnknownHostException e1) {

JOptionPane.showMessageDialog(this,e1.toString());

public static void


main(String[] args) { new
IPFinder();

}
}

7.0 OUTPUT OF CODE:-


IN

IP FINDING Frame which take and input for web site in the format fo so it will return
a IP address of that website it can be use for IP tracking device
12.0 Skill developed / learning outcomes of micro – project :

1. Learn Basic of the Java Programming language.


2. Use Various Component for swing from java.
3. Learn Basic networking and domain name and IP address.

13.0 Applications of micro - project :

● Applications of IP Finder:

1. The Find a specific IP.


2. We also can understand about Networking.
3. Use of various components .
4. Use of JAVA programming.

14.0 Conclusion

1. It was a great experience to design and implement the swing using


Adavanced java programming and also to work on
documentation .
2. I am now able to handle event of awt and swing component and
also develop program using networking concept .

You might also like