0% found this document useful (0 votes)
13 views

Advjava Micro Project

Uploaded by

maniyarsohanaz24
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Advjava Micro Project

Uploaded by

maniyarsohanaz24
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PART A

Micro-Project Proposal

on
"PREPARE AN IP ADDRESS USING SWING"

1. AIMS /BENEFITS OF THE MICRO PROJECT -

TO PERFORM TO RETRIVE IP USING SWING API

2. COURSE OUTCOMES ADDRESSED -

1 . INTERPRET THE BASIC CODE OF “JAVA”


2 . IMPLEMENT SWING API IN JAVA

3 . USING API SWING JFRAME and other COMPONEBT

3. PROPOSED METHODOLOGY :
1. BASIC INFORMATION ABOUT JAVA.
2. SWING API.
3. USE SOME OF COMPONET AND JAVA IDE TO BUILD A BASIC JAVA IPADDRESS
4. ACTION PLANS :

Sr. Details of Activities Planned Planned Name of


No. Start Date Finish Responsible

1 Study JAVA

2 Study SWING Maniyar Sohanaz


Mahamad
Rizwan

3 Study COMPONENT Maniyar


Afifa Faruk

4
Select Relevant Topic for
Micro- Project .

5
Perform JAVA PROGRAM for
Micro- Project .

6
Make Project Report for Micro-
Project.
5. RESOURCES REQUIRED :

Sr.N Name of Resource / Specifications Quantity Remarks


o. Material
1 Computer RAM minimum 8GB, 1
I7 9TH GEN
2 Operating System Windows 10 1
3 Software eclipse 1

6. NAMES OF TEAM MEMBER

1.Maniyar Sohanaz
mahamad Rizwan
2.Maniyar Afifa
Faruk
Part–B

1. 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.

2. AIMS / BENEFITS OF THE MICRO PROJECT :

• To Perform Basic IP FINDING using java.


• To Find ip address and can also easily rrack on site
• Can be use to moniter the ip address

3. COURSE OUTCOMES ACHIEVED :

1) Interpret The Basic Code Of “JAVA".


2) Task Remainder Making In "JAVA" Programming .
3) Use Functions In "Java" Programs For Building a basic frame

4. LITERATURE REVIEW :

❖ History of "JAVA" Language Programming :


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 lowlevel 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 a reported 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.

❖ Basic About JAVA:

The Java language has undergone several changes since JDK 1.0 as well as numerous
additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of
the Java language has been governed by the Java Community Process (JCP), which uses
Java Specification Requests (JSRs) to propose and specify additions and changes to the
Java platform. The language is specified by the Java Language Specification (JLS);
changes to the JLS are managed under JSR 901. 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 (Initial Release Candidate expected February 4, 2021), and with Java 17 now
also in development.

Actuall 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 -


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,3

0); b.addActionLi
stener(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(Strinng args[])

{ new IPFinder();

}
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

Example :- this is www.GOOGLE.com IP address


8. SKILL DEVELOPED / LEARNING OUTCOMES OF MICRO - PROJECT

1. Learn Basic of the Java Programming language .


2. Use Various Componet for swing from java.
3. Learn Basic networking and domanin name and ip address .

9. 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.

You might also like