0% found this document useful (0 votes)
11 views11 pages

Java IP Finder Micro-Project

Uploaded by

maniyarsohanaz24
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)
11 views11 pages

Java IP Finder Micro-Project

Uploaded by

maniyarsohanaz24
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

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

[Link] Sohanaz
mahamad Rizwan
[Link] 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 [Link].*;
import [Link].*;
import [Link].*;
public class IPFinder extends JFrame implements ActionListener
{
JLabel l;

JTextField

tf; JButton

b;

IPFinder()

super("IP Finder Tool -


Javatpoint"); l=new
JLabel("Enter URL:");
[Link](50,70,150,
20
);

tf=new JTextField();

[Link](50,100,200, 20);

b=new
JButton("Find IP");

[Link](50,150,80,3

0); [Link]
stener(this);
add(l);
add(tf);

add(b);
setSize(300,300
);
setLayout(null);
setVisible(true);
}
public void actionPerformed(ActionEvent e)
{
String

url=[Link](); try
{

InetAddress

ia=[Link](url); String

ip=[Link]();

[Link](this,ip)

catch (UnknownHostException e1)

[Link](this,[Link]());

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
[Link] so it will return a IP address of that website it can be use for ip
tracking device

Example :- this is [Link] 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.

Common questions

Powered by AI

Since its introduction, the Swing API has significantly contributed to the versatility and functionality of Java applications by providing a lightweight, platform-independent toolkit for creating sophisticated and visually appealing graphical user interfaces (GUIs). Swing offers a rich set of widgets and components like buttons, scroll panes, tabbed panels, and trees, which enhance the interactivity and usability of Java applications. Additionally, Swing's architecture supports custom look and feel implementations, enabling developers to create GUIs that conform to specific design requirements across different operating systems . Its integration with the Java platform ensures seamless integration with other Java-based technologies, thus expanding the utility of applications developed with Java .

Java's evolution as a preferred programming language for client-server web applications is attributed to several historical factors. Initially developed by James Gosling at Sun Microsystems and released in 1995, Java's platform-independent nature (the "write once, run anywhere" principle) made it attractive for developers creating diverse applications . Its object-oriented architecture increased its adaptability and resilience against changing hardware environments. Over the years, Java has undergone continuous improvement via the Java Community Process (JCP), which facilitated the inclusion of new features and the deprecation of obsolete ones, ensuring Java remains relevant and effective for modern applications . Java's support for dynamic capabilities, such as reflection and runtime code modification, and its extensive class library further strengthened its position in web applications .

Completion of the micro-project on IP address retrieval using Java leads to several learning outcomes and skill development opportunities. Students learn the basics of Java programming, which includes understanding and implementing core Java syntax and structures. They also gain proficiency in using Swing components to develop graphical user interfaces, enhancing their application development capabilities. Furthermore, the project provides insights into basic networking concepts, particularly the relationship between domain names and IP addresses, which are crucial for understanding internet technologies and developing network-aware applications .

The Java InetAddress class facilitates IP address retrieval by providing methods to resolve hostnames to IP addresses and vice versa. In the IP Finder tool, the getByName method of the InetAddress class is utilized to retrieve the IP address of a given hostname inputted by the user. This capability is critical for network applications that require hostname resolution, making InetAddress an essential tool for simplifying the operation of networking in Java applications. By abstracting the complexity involved in network communication, InetAddress allows developers to implement IP retrieval functionalities with minimal code, thereby enhancing application efficiency and reliability .

Changes proposed through the Java Community Process (JCP) significantly impact Java developers and the ecosystem by shaping the evolution of the language and its capabilities. These changes are formalized through Java Specification Requests (JSRs), which propose new features, enhancements, and deprecations. Developers must adapt to such changes by updating skills and applications in compliance with updated specs, which can improve application performance and security standards. However, such evolution may also require re-learning and modification efforts, which could strain development resources. Nonetheless, the JCP ensures that Java remains competitive and relevant by fostering open collaboration and alignment with industry standards, sustaining its vast developer community and its utilization in various technological realms .

Java Swing components enhance the development of Java applications for finding IP addresses by providing a graphical user interface framework that allows users to interact with the application visually. Swing components such as JLabels, JTextFields, and JButtons enable the creation of a user-friendly interface where users can input URLs and trigger actions to retrieve the corresponding IP addresses. This integration of Swing components simplifies the process of developing GUIs and makes the applications more accessible to end-users, thereby improving user experience and interaction with the underlying Java application logic .

The key objectives of developing a micro-project to prepare an IP address using Java Swing include performing basic IP finding using Java and implementing the Swing API. The project aims to allow users to find IP addresses easily, monitor them, and potentially track them on a site . By completing this project, students are expected to interpret basic Java code, use Swing API components like JFrames, and gain an understanding of basic networking concepts related to domain names and IP addresses .

Understanding the historical evolution of Java platforms contributes significantly to effective project development by providing developers with insights into why certain design decisions were made and how they affect modern application development. Knowledge of Java's progression from a general-purpose programming language to one with robust APIs like Swing informs developers about available functionalities and optimizations they can leverage. This background helps in anticipating future changes and making informed decisions that comply with the Java Language Specification. Furthermore, familiarity with the evolution of Java's class libraries enables better codebase management, ensuring compatibility and maximizing the use of Java's dynamic capabilities .

Developers might face challenges such as maintenance issues, decreased application performance, and compatibility problems when using deprecated classes and methods within Java's extensive class library. Deprecated features may not be supported in future Java versions, leading to potential security vulnerabilities and bugs. To mitigate these issues, developers should regularly update codebases to replace deprecated features with recommended alternatives. Keeping abreast of updates via the Java Community Process and engaging with the OpenJDK community can also provide guidance on best practices and help ensure that applications remain robust and secure despite changes in the Java platform .

The proposed methodology for executing the micro-project on IP address retrieval using Swing includes understanding basic Java programming concepts and familiarizing oneself with the Swing API and Java components. The action plans involve a sequential study of Java, Swing, and Java components, followed by selecting a relevant topic for the project, performing the required Java programming, and finally compiling a project report. Specific responsible individuals were designated for studying Java, Swing, and components, demonstrating an organized approach to learning and project development .

You might also like