Complete Java
Complete Java
Complete Java
MICRO PROJECT
TITLE OF PROJECT
Certificate
This is to certify that Roll No. 1502 of fifth Semester of Diploma in Information
Technology Engineering of Institute, GOVERNMENT POLYTECHNIC, NANDED
has completed the Micro Project satisfactorily in Subject- AJP- (22517) for the
academic year 2022-2023 as prescribed in the curriculum.
Place : Nanded
Date : Exam Seat No.: 358130
……………………………………………………………………………………………………
Roll No. Student Name Marks out of 6 for Marks out of 4 for Total out
performance in group performance in of 10
activity oral/presentation (D5
(D5 Col.8) Col.9)
1502 Bachewar sandhya raju
(Signature of Faculty)
S.G Munde
WEEKLY PROGRESS REPORT
ACTUALLY CODING
package project;
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 - Javatpoint");
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(url);
String ip=ia.getHostAddress();
JOptionPane.showMessageDialog(this,ip);
}
catch (UnknownHostException e1) {
JOptionPane.showMessageDialog(this,e1.toString());
}
}
public static void main(String[] args) {
new IPFinder();
}
}
OUTPUT:-
IP FINDING frame which take input for website in the format for
www.domainname.com so it will return IP address of that website it can be use for IP
tracking device
Example this is www.google.com IP ADDRESS