SlideShare a Scribd company logo
1 of 27
Download to read offline
Jagannath Institute of Management Sciences
Vasant Kunj-II, New Delhi - 110070
Subject Name: BVITSD 506 : Web Programming
Department of Information Technology
Created By: Dr. Arpana Chaturvedi
@Dr. Arpana Chaturvedi
Subject: BVITSD 506 : Web Programming
Topic: Unit I- Eclipse
@Dr. Arpana Chaturvedi
Unit-I Configuring GUI -Eclipse in Java
▰ Go To Windows: Eclipse Marketplace
@Dr. Arpana Chaturvedi
Unit-I Configuring GUI -Eclipse in Java
▰ Go To Windows: Eclipse Marketplace
@Dr. Arpana Chaturvedi
Unit-I Configuring GUI -Eclipse in Java
@Dr. Arpana Chaturvedi
▰ Click on Install Button.
Unit-I How to use Eclipse for Java
@Dr. Arpana Chaturvedi
Unit-I Workbench
▰ In eclipse, workbench (desktop development environment) is a
window instance of IDE.
▰ It consists of one or more perspectives to achieve seamless tool
integration and provides a common paradigm for the creation,
navigation, and management of workspace resources.
▰ Further, perspectives consist of editors and views. It allows us
to open multiple workbench's windows for projects,
simultaneously.
▰ Remember that all the workbenches use the same workspace.
@Dr. Arpana Chaturvedi
Unit-I Workbench
▰ The following window shows the Eclipse workbench.
@Dr. Arpana Chaturvedi
Unit-I Workspace
▰ In IDE, workspace is a directory or folder where the projects are stored.
▰ Before starting the IDE, we must select the workspace.
▰ The IDE allows us to create multiple workspace, if needed.
▰ We can also switch among the IDEs without closing the application.
▰ The advantage of workspace is that it allows us to work with multiple projects at
a time. Eclipse stores each workspace preferences separately in
the .metadata directory which is located in the workspace root.
@Dr. Arpana Chaturvedi
Unit-I Parts of an Eclipse Window
▰ The major visible parts of an eclipse window are −
• Views
• Editors (all appear in one editor area)
• Menu Bar
• Toolbar
▰ An eclipse perspective is the name given to an initial collection and
arrangement of views and an editor area. The default perspective is
called java. An eclipse window can have multiple perspectives open in it
but only one perspective can be active at any point of time. A user can
switch between open perspectives or open a new perspective. A
perspective controls what appears in some menus and tool bars.
@Dr. Arpana Chaturvedi
Unit-I Parts of an Eclipse Window
@Dr. Arpana Chaturvedi
Unit-I Parts of an Eclipse Window
▰ A perspective has only one editor area in which multiple editors can be
open.
▰ The editor area is usually surrounded by multiple views.
▰ In general, editors are used to edit the project data and views are used to
view the project metadata.
▰ For example the package explorer shows the java files in the project and
the java editor is used to edit a java file.
▰ The eclipse window can contain multiple editors and views but only one of
them is active at any given point of time.
▰ The title bar of the active editor or view looks different from all the others.
▰ The UI elements on the menu bar and tool bar represent commands that
can be triggered by an end user. @Dr. Arpana Chaturvedi
Unit-I Parts of an Eclipse Window
▰ Using Multiple Windows
▰ Multiple Eclipse Windows can be open at the same time.
To open a new window, click on the Windows menu and
select the New Window menu item.
▰ Each window can have a different perspective open in
them. For example you could open two Eclipse windows
one in the Java perspective and the other in the Debug
perspective. The window showing the Java perspective can
be used for editing the java code and the window showing
the debug perspective can be used for debugging the
application being developed.
@Dr. Arpana Chaturvedi
Unit-I Perspectives
▰ The perspective provides the initial layout that helps the
programmer to accomplish the work and task. Each perspective
provides different sets of views and editors.
▰ We can open the perspective by clicking on the Windows menu ->
Perspective -> Open Perspective.
@Dr. Arpana Chaturvedi
Unit-I Perspectives
▰ The Java perspectives provide the following editors and views:
• Java Editors: It allows us to edit or implement source code in
Java source files.
• Outline: It displays the structure of the source file in the active
editor.
• Problems: It shows the detected errors, problems, and warnings.
• Javadoc: It provides the documentation of the class, method,
filed, etc.
• Declaration: It shows the declaration statement for the variable
at the mouse pointer tip.
• Task List: It shows the tasks downloaded from the bug tracker
tool, like Bugzilla.
@Dr. Arpana Chaturvedi
Unit-I Java Perspectives
▰ Eclipse provides the following Java perspective:
@Dr. Arpana Chaturvedi
Unit-I Editors
▰ Editors are the center of the workbench. It allows us to edit the source files.
When we click on the .java file it opens in the editor. In eclipse, we can open
multiple editors simultaneously. But we can work on a single editor at a time. The
title bar shows the name of the file. When we add something in the file, the
unsaved changes indicate by an asterisk (*). We can switch among the editors by
pressing the Ctrl+F6 key.
▰ The following image shows the editor.
@Dr. Arpana Chaturvedi
Unit-I View
▰ In eclipse, we use the view to navigate the information in workbench. Using an outline
view, we can quickly jump to the specific element of the source file. examples of view
are Bookmarks, Console, Navigator, Search, Project Explorer, etc. If we want to open
view in eclipse, click on the Window menu -> Show View. It shows the list of views
available in eclipse. We can switch among the multiple views by pressing the Ctrl+F7.
• Outline: It is used to display the structure of the source file. It shows which methods,
classes, and fields we have used in the active file.
• Project Explorer: It shows the directory structure of the project.
• Task List: It shows the tasks downloaded from the bug tracker tool, like Bugzilla.
• Console: It displays the output, errors, and exception if any.
• Servers: It shows the server that is available for use and other information related to the
server.
• Search: It allows us to search for anything in the project.
@Dr. Arpana Chaturvedi
Unit-I Client Side Technologies- Web 2.0
@Dr. Arpana Chaturvedi
Unit-I Toolbars
▰ There are four types of toolbars available in eclipse:
• Main Toolbar
• Individual Toolbar
• Perspective Search Toolbar
• View Stack Toolbar
▰ Main Toolbar: The main tollbar is placed just below the main
menu. It contains the buttons in pictorial form. The buttons are
grouped in different sections, like save, create, open, run, debug,
etc.
@Dr. Arpana Chaturvedi
Unit-I Client Side Technologies- Web 2.0
▰ Individual Toolbar: Each view in eclipse has its own toolbar that is
displayed at the top right corner. The following image shows the
tollbar for the Servers view.
@Dr. Arpana Chaturvedi
▰ Perspective Search Toolbar: It is placed on the right side of the
main toolbar. It contains the button that allows us to switch among
open perspectives in workbench.
Unit-I Client Side Technologies- Web 2.0
▰ View Stack Toolbar: It is a tollbar that appears on minimizing a
view in a stack. The icons on this bar allow us to open an individual
view in the stack. The toolbar shown in the following image appears
when we minimize the Console view.
@Dr. Arpana Chaturvedi
Unit-I Which Package is Imported by Default
in Java?
▰ In Java, the package is the collection of Java classes and interfaces. When we use the
classes of a particular package, we need to import that particular package in which that
classes are defined. The class uses the fully qualified name that includes the package
name. In most of the basic Java programs, we do not import any package. Here, a
question arises that when we do not import any package then how Java programs allow
us to use classes defined in the particular package. JVM internally resolve this problem by
importing java.lang package by default.
▰ java.lang Package
▰ Java compiler imports java.lang package internally by default. It provides the
fundamental classes that are necessary to design a basic Java program. The important
classes are Object, which is the root of the class hierarchy, and Class, instances of which
represent classes at run time.
@Dr. Arpana Chaturvedi
Let's create a Java program that finds the number is even or odd.
In this program, we have not imported any package.
▰
@Dr. Arpana Chaturvedi
In this program, we have not imported any
package. Nevertheless, we have used
the String class. While we must write the fully
qualified name of the class at the top of the
program followed by the import keyword. But
we have not done so. It is because Java compiler
imports the java.lang package by default in
which String class is defined.
Unit-I Java decompiler
▰ If we want to check it is true or not, we can decompile the Java program. If you do not
know how to decompile a Java program manually use an online Java decompiler
http://www.javadecompilers.com/upload/processfile.
▰ We have decompiled the above Java program and found that java.io.PrintStream package
imports by default.
▰ The hierarchy to import PrintStream class, as follows:
@Dr. Arpana Chaturvedi
The hierarchy shows that the Object class of
the java.lang package imports by default. It means
the java.lang imports by default but does not show
to the user.
After decompiling the program, the program looks like the
following
▰
@Dr. Arpana Chaturvedi
Therefore, we need not import java.lang
package explicitly. Without importing the
java.lang package, we can use the classes of
the package in our Java program.
Thank You !!

More Related Content

Similar to Eclipse - GUI Palette

Eclipse Training - Introduction
Eclipse Training - IntroductionEclipse Training - Introduction
Eclipse Training - IntroductionLuca D'Onofrio
 
Eclipse Overview
Eclipse Overview Eclipse Overview
Eclipse Overview Lars Vogel
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipsedeepakazad
 
Integrating Maven with Eclipse
Integrating Maven with EclipseIntegrating Maven with Eclipse
Integrating Maven with EclipseNikhil Bharati
 
Assign 10 - Creating Projects using Eclipse IDE
Assign 10 -  Creating Projects using Eclipse IDE Assign 10 -  Creating Projects using Eclipse IDE
Assign 10 - Creating Projects using Eclipse IDE Yogesh Deshpande
 
2) java development
2) java development2) java development
2) java developmenttechbed
 
Compiling With Eclipse
Compiling With EclipseCompiling With Eclipse
Compiling With Eclipsesatriahelmy
 
Vipul divyanshu mahout_documentation
Vipul divyanshu mahout_documentationVipul divyanshu mahout_documentation
Vipul divyanshu mahout_documentationVipul Divyanshu
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 stepsIshara Amarasekera
 
Spring hibernate tutorial
Spring hibernate tutorialSpring hibernate tutorial
Spring hibernate tutorialRohit Jagtap
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Mohamed Essam
 

Similar to Eclipse - GUI Palette (20)

Eclipse Training - Introduction
Eclipse Training - IntroductionEclipse Training - Introduction
Eclipse Training - Introduction
 
Eclipse Overview
Eclipse Overview Eclipse Overview
Eclipse Overview
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipse
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
Integrating Maven with Eclipse
Integrating Maven with EclipseIntegrating Maven with Eclipse
Integrating Maven with Eclipse
 
Assign 10 - Creating Projects using Eclipse IDE
Assign 10 -  Creating Projects using Eclipse IDE Assign 10 -  Creating Projects using Eclipse IDE
Assign 10 - Creating Projects using Eclipse IDE
 
2) java development
2) java development2) java development
2) java development
 
Compiling With Eclipse
Compiling With EclipseCompiling With Eclipse
Compiling With Eclipse
 
Vipul divyanshu mahout_documentation
Vipul divyanshu mahout_documentationVipul divyanshu mahout_documentation
Vipul divyanshu mahout_documentation
 
django
djangodjango
django
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
ID E's features
ID E's featuresID E's features
ID E's features
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
 
Spring hibernate tutorial
Spring hibernate tutorialSpring hibernate tutorial
Spring hibernate tutorial
 
Chapter 1-Note.docx
Chapter 1-Note.docxChapter 1-Note.docx
Chapter 1-Note.docx
 
Advance RCP
Advance RCPAdvance RCP
Advance RCP
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1
 
Database Management Assignment Help
Database Management Assignment Help Database Management Assignment Help
Database Management Assignment Help
 

More from Arpana Awasthi

Unit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfUnit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfArpana Awasthi
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdfArpana Awasthi
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfArpana Awasthi
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfArpana Awasthi
 
Arrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArpana Awasthi
 
Arrays Fundamentals Unit II
Arrays  Fundamentals Unit IIArrays  Fundamentals Unit II
Arrays Fundamentals Unit IIArpana Awasthi
 
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsMachine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsArpana Awasthi
 
File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part IArpana Awasthi
 
Role of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerRole of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerArpana Awasthi
 

More from Arpana Awasthi (11)

Unit 5 Part 1 Macros
Unit 5 Part 1 MacrosUnit 5 Part 1 Macros
Unit 5 Part 1 Macros
 
Unit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdfUnit 2 Part 1.2 Data Types.pdf
Unit 2 Part 1.2 Data Types.pdf
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdf
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdf
 
Unit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdfUnit 2 Part 1 Constructors.pdf
Unit 2 Part 1 Constructors.pdf
 
Arrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdfArrays 2 Dimensional Unit 2 Part 1.pdf
Arrays 2 Dimensional Unit 2 Part 1.pdf
 
Arrays Fundamentals Unit II
Arrays  Fundamentals Unit IIArrays  Fundamentals Unit II
Arrays Fundamentals Unit II
 
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its ApplicationsMachine Learning: Need of Machine Learning, Its Challenges and its Applications
Machine Learning: Need of Machine Learning, Its Challenges and its Applications
 
File Handling in C Part I
File Handling in C Part IFile Handling in C Part I
File Handling in C Part I
 
Programming language
Programming languageProgramming language
Programming language
 
Role of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancerRole of machine learning in detection, prevention and treatment of cancer
Role of machine learning in detection, prevention and treatment of cancer
 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

Eclipse - GUI Palette

  • 1. Jagannath Institute of Management Sciences Vasant Kunj-II, New Delhi - 110070 Subject Name: BVITSD 506 : Web Programming Department of Information Technology Created By: Dr. Arpana Chaturvedi @Dr. Arpana Chaturvedi
  • 2. Subject: BVITSD 506 : Web Programming Topic: Unit I- Eclipse @Dr. Arpana Chaturvedi
  • 3. Unit-I Configuring GUI -Eclipse in Java ▰ Go To Windows: Eclipse Marketplace @Dr. Arpana Chaturvedi
  • 4. Unit-I Configuring GUI -Eclipse in Java ▰ Go To Windows: Eclipse Marketplace @Dr. Arpana Chaturvedi
  • 5. Unit-I Configuring GUI -Eclipse in Java @Dr. Arpana Chaturvedi ▰ Click on Install Button.
  • 6. Unit-I How to use Eclipse for Java @Dr. Arpana Chaturvedi
  • 7. Unit-I Workbench ▰ In eclipse, workbench (desktop development environment) is a window instance of IDE. ▰ It consists of one or more perspectives to achieve seamless tool integration and provides a common paradigm for the creation, navigation, and management of workspace resources. ▰ Further, perspectives consist of editors and views. It allows us to open multiple workbench's windows for projects, simultaneously. ▰ Remember that all the workbenches use the same workspace. @Dr. Arpana Chaturvedi
  • 8. Unit-I Workbench ▰ The following window shows the Eclipse workbench. @Dr. Arpana Chaturvedi
  • 9. Unit-I Workspace ▰ In IDE, workspace is a directory or folder where the projects are stored. ▰ Before starting the IDE, we must select the workspace. ▰ The IDE allows us to create multiple workspace, if needed. ▰ We can also switch among the IDEs without closing the application. ▰ The advantage of workspace is that it allows us to work with multiple projects at a time. Eclipse stores each workspace preferences separately in the .metadata directory which is located in the workspace root. @Dr. Arpana Chaturvedi
  • 10. Unit-I Parts of an Eclipse Window ▰ The major visible parts of an eclipse window are − • Views • Editors (all appear in one editor area) • Menu Bar • Toolbar ▰ An eclipse perspective is the name given to an initial collection and arrangement of views and an editor area. The default perspective is called java. An eclipse window can have multiple perspectives open in it but only one perspective can be active at any point of time. A user can switch between open perspectives or open a new perspective. A perspective controls what appears in some menus and tool bars. @Dr. Arpana Chaturvedi
  • 11. Unit-I Parts of an Eclipse Window @Dr. Arpana Chaturvedi
  • 12. Unit-I Parts of an Eclipse Window ▰ A perspective has only one editor area in which multiple editors can be open. ▰ The editor area is usually surrounded by multiple views. ▰ In general, editors are used to edit the project data and views are used to view the project metadata. ▰ For example the package explorer shows the java files in the project and the java editor is used to edit a java file. ▰ The eclipse window can contain multiple editors and views but only one of them is active at any given point of time. ▰ The title bar of the active editor or view looks different from all the others. ▰ The UI elements on the menu bar and tool bar represent commands that can be triggered by an end user. @Dr. Arpana Chaturvedi
  • 13. Unit-I Parts of an Eclipse Window ▰ Using Multiple Windows ▰ Multiple Eclipse Windows can be open at the same time. To open a new window, click on the Windows menu and select the New Window menu item. ▰ Each window can have a different perspective open in them. For example you could open two Eclipse windows one in the Java perspective and the other in the Debug perspective. The window showing the Java perspective can be used for editing the java code and the window showing the debug perspective can be used for debugging the application being developed. @Dr. Arpana Chaturvedi
  • 14. Unit-I Perspectives ▰ The perspective provides the initial layout that helps the programmer to accomplish the work and task. Each perspective provides different sets of views and editors. ▰ We can open the perspective by clicking on the Windows menu -> Perspective -> Open Perspective. @Dr. Arpana Chaturvedi
  • 15. Unit-I Perspectives ▰ The Java perspectives provide the following editors and views: • Java Editors: It allows us to edit or implement source code in Java source files. • Outline: It displays the structure of the source file in the active editor. • Problems: It shows the detected errors, problems, and warnings. • Javadoc: It provides the documentation of the class, method, filed, etc. • Declaration: It shows the declaration statement for the variable at the mouse pointer tip. • Task List: It shows the tasks downloaded from the bug tracker tool, like Bugzilla. @Dr. Arpana Chaturvedi
  • 16. Unit-I Java Perspectives ▰ Eclipse provides the following Java perspective: @Dr. Arpana Chaturvedi
  • 17. Unit-I Editors ▰ Editors are the center of the workbench. It allows us to edit the source files. When we click on the .java file it opens in the editor. In eclipse, we can open multiple editors simultaneously. But we can work on a single editor at a time. The title bar shows the name of the file. When we add something in the file, the unsaved changes indicate by an asterisk (*). We can switch among the editors by pressing the Ctrl+F6 key. ▰ The following image shows the editor. @Dr. Arpana Chaturvedi
  • 18. Unit-I View ▰ In eclipse, we use the view to navigate the information in workbench. Using an outline view, we can quickly jump to the specific element of the source file. examples of view are Bookmarks, Console, Navigator, Search, Project Explorer, etc. If we want to open view in eclipse, click on the Window menu -> Show View. It shows the list of views available in eclipse. We can switch among the multiple views by pressing the Ctrl+F7. • Outline: It is used to display the structure of the source file. It shows which methods, classes, and fields we have used in the active file. • Project Explorer: It shows the directory structure of the project. • Task List: It shows the tasks downloaded from the bug tracker tool, like Bugzilla. • Console: It displays the output, errors, and exception if any. • Servers: It shows the server that is available for use and other information related to the server. • Search: It allows us to search for anything in the project. @Dr. Arpana Chaturvedi
  • 19. Unit-I Client Side Technologies- Web 2.0 @Dr. Arpana Chaturvedi
  • 20. Unit-I Toolbars ▰ There are four types of toolbars available in eclipse: • Main Toolbar • Individual Toolbar • Perspective Search Toolbar • View Stack Toolbar ▰ Main Toolbar: The main tollbar is placed just below the main menu. It contains the buttons in pictorial form. The buttons are grouped in different sections, like save, create, open, run, debug, etc. @Dr. Arpana Chaturvedi
  • 21. Unit-I Client Side Technologies- Web 2.0 ▰ Individual Toolbar: Each view in eclipse has its own toolbar that is displayed at the top right corner. The following image shows the tollbar for the Servers view. @Dr. Arpana Chaturvedi ▰ Perspective Search Toolbar: It is placed on the right side of the main toolbar. It contains the button that allows us to switch among open perspectives in workbench.
  • 22. Unit-I Client Side Technologies- Web 2.0 ▰ View Stack Toolbar: It is a tollbar that appears on minimizing a view in a stack. The icons on this bar allow us to open an individual view in the stack. The toolbar shown in the following image appears when we minimize the Console view. @Dr. Arpana Chaturvedi
  • 23. Unit-I Which Package is Imported by Default in Java? ▰ In Java, the package is the collection of Java classes and interfaces. When we use the classes of a particular package, we need to import that particular package in which that classes are defined. The class uses the fully qualified name that includes the package name. In most of the basic Java programs, we do not import any package. Here, a question arises that when we do not import any package then how Java programs allow us to use classes defined in the particular package. JVM internally resolve this problem by importing java.lang package by default. ▰ java.lang Package ▰ Java compiler imports java.lang package internally by default. It provides the fundamental classes that are necessary to design a basic Java program. The important classes are Object, which is the root of the class hierarchy, and Class, instances of which represent classes at run time. @Dr. Arpana Chaturvedi
  • 24. Let's create a Java program that finds the number is even or odd. In this program, we have not imported any package. ▰ @Dr. Arpana Chaturvedi In this program, we have not imported any package. Nevertheless, we have used the String class. While we must write the fully qualified name of the class at the top of the program followed by the import keyword. But we have not done so. It is because Java compiler imports the java.lang package by default in which String class is defined.
  • 25. Unit-I Java decompiler ▰ If we want to check it is true or not, we can decompile the Java program. If you do not know how to decompile a Java program manually use an online Java decompiler http://www.javadecompilers.com/upload/processfile. ▰ We have decompiled the above Java program and found that java.io.PrintStream package imports by default. ▰ The hierarchy to import PrintStream class, as follows: @Dr. Arpana Chaturvedi The hierarchy shows that the Object class of the java.lang package imports by default. It means the java.lang imports by default but does not show to the user.
  • 26. After decompiling the program, the program looks like the following ▰ @Dr. Arpana Chaturvedi Therefore, we need not import java.lang package explicitly. Without importing the java.lang package, we can use the classes of the package in our Java program.