SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a very simple Note taking using JavaFX ( adding three functionaning buttons - new -
delete - save )
Solution
JavaFX is a set of grapics and media packages that enables developers to design, create, test,
debug and deploy client applications that operate on diverse platforms.It is a java library that
contains classes and interfaces that are written in native code. There are many features involved
in JavaFX like UI controls, webview, Canvas API, Multitouch support mainly used for android
applications, Swing interoperability etc..
Buttons can also be created by using this JavaFX and we can do changes to those buttons like
applying shadow effect, image for button etc...
Button btn=new Button("new");
Button btn1 =new Button("Delete");
Button btn2=new Button("Save");
// Here three buttons have been created and now we can assign the actions to these buttons by
using //setOnAction() method availabel in javaFX
btn1.setOnAction( new EventHandler () {
@override public void handle(ActionEvent e){
FileChooser file=new FileChooser();
File selected=file.showOpenDialog(stage);
if(selected !=NULL)
openFile(selected);
}
});
btn2.setOnAction(new EventHandler() {
@override private handle(ActionEvent e){
file.showSaveDialog(stage);
}
});
These buttons are used to open a new file and save the file using javaFX

More Related Content

Similar to Write a very simple Note taking using JavaFX ( adding three function.pdf

Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayLiz Sims
 
JavaFX for Java Developers
JavaFX for Java DevelopersJavaFX for Java Developers
JavaFX for Java DevelopersSten Anderson
 
ITE 1122_ AWT and SWING.pptx
ITE 1122_ AWT  and SWING.pptxITE 1122_ AWT  and SWING.pptx
ITE 1122_ AWT and SWING.pptxudithaisur
 
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdfUNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdfSakkaravarthiS1
 
Gui programming a review - mixed content
Gui programming   a review - mixed contentGui programming   a review - mixed content
Gui programming a review - mixed contentYogesh Kumar
 
Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Mikkel Flindt Heisterberg
 
intro_gui
intro_guiintro_gui
intro_guifilipb2
 
Throughout the semester, we have been working on command line applic.pdf
Throughout the semester, we have been working on command line applic.pdfThroughout the semester, we have been working on command line applic.pdf
Throughout the semester, we have been working on command line applic.pdfbirajdar2
 
The java swing_tutorial
The java swing_tutorialThe java swing_tutorial
The java swing_tutorialsumitjoshi01
 
Basic of Abstract Window Toolkit(AWT) in Java
Basic of Abstract Window Toolkit(AWT) in JavaBasic of Abstract Window Toolkit(AWT) in Java
Basic of Abstract Window Toolkit(AWT) in Javasuraj pandey
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lecturesmarwaeng
 
Z blue introduction to gui (39023299)
Z blue   introduction to gui (39023299)Z blue   introduction to gui (39023299)
Z blue introduction to gui (39023299)Narayana Swamy
 

Similar to Write a very simple Note taking using JavaFX ( adding three function.pdf (20)

Ingles 2do parcial
Ingles   2do parcialIngles   2do parcial
Ingles 2do parcial
 
Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage Essay
 
JavaFX for Java Developers
JavaFX for Java DevelopersJavaFX for Java Developers
JavaFX for Java Developers
 
ITE 1122_ AWT and SWING.pptx
ITE 1122_ AWT  and SWING.pptxITE 1122_ AWT  and SWING.pptx
ITE 1122_ AWT and SWING.pptx
 
Java lab lecture 2
Java  lab  lecture 2Java  lab  lecture 2
Java lab lecture 2
 
GUI_part_1.pptx
GUI_part_1.pptxGUI_part_1.pptx
GUI_part_1.pptx
 
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdfUNIT 5-JavaFX Event Handling, Controls and Components.pdf
UNIT 5-JavaFX Event Handling, Controls and Components.pdf
 
Gui programming a review - mixed content
Gui programming   a review - mixed contentGui programming   a review - mixed content
Gui programming a review - mixed content
 
Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)
 
UIAutomator
UIAutomatorUIAutomator
UIAutomator
 
intro_gui
intro_guiintro_gui
intro_gui
 
Swings in java
Swings in javaSwings in java
Swings in java
 
Throughout the semester, we have been working on command line applic.pdf
Throughout the semester, we have been working on command line applic.pdfThroughout the semester, we have been working on command line applic.pdf
Throughout the semester, we have been working on command line applic.pdf
 
AdvancedJava.pptx
AdvancedJava.pptxAdvancedJava.pptx
AdvancedJava.pptx
 
The java swing_tutorial
The java swing_tutorialThe java swing_tutorial
The java swing_tutorial
 
The java rogramming swing _tutorial for beinners(java programming language)
The java rogramming swing _tutorial for beinners(java programming language)The java rogramming swing _tutorial for beinners(java programming language)
The java rogramming swing _tutorial for beinners(java programming language)
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
Basic of Abstract Window Toolkit(AWT) in Java
Basic of Abstract Window Toolkit(AWT) in JavaBasic of Abstract Window Toolkit(AWT) in Java
Basic of Abstract Window Toolkit(AWT) in Java
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Z blue introduction to gui (39023299)
Z blue   introduction to gui (39023299)Z blue   introduction to gui (39023299)
Z blue introduction to gui (39023299)
 

More from archanadesignfashion

Blood typing is often used as evidence in paternity cases in court. .pdf
Blood typing is often used as evidence in paternity cases in court. .pdfBlood typing is often used as evidence in paternity cases in court. .pdf
Blood typing is often used as evidence in paternity cases in court. .pdfarchanadesignfashion
 
Write a JAVA program that reads a stream of integers from a file and.pdf
Write a JAVA program that reads a stream of integers from a file and.pdfWrite a JAVA program that reads a stream of integers from a file and.pdf
Write a JAVA program that reads a stream of integers from a file and.pdfarchanadesignfashion
 
What two difficulties arise in taking simplicity straightforwardly a.pdf
What two difficulties arise in taking simplicity straightforwardly a.pdfWhat two difficulties arise in taking simplicity straightforwardly a.pdf
What two difficulties arise in taking simplicity straightforwardly a.pdfarchanadesignfashion
 
what is true about assetsSolutionAssets are those which are u.pdf
what is true about assetsSolutionAssets are those which are u.pdfwhat is true about assetsSolutionAssets are those which are u.pdf
what is true about assetsSolutionAssets are those which are u.pdfarchanadesignfashion
 
What happens if the dividing zygote accidental separates into two A.pdf
What happens if the dividing zygote accidental separates into two  A.pdfWhat happens if the dividing zygote accidental separates into two  A.pdf
What happens if the dividing zygote accidental separates into two A.pdfarchanadesignfashion
 
What are stored in the Autodesk Inventor History Tree When extrudin.pdf
What are stored in the Autodesk Inventor History Tree  When extrudin.pdfWhat are stored in the Autodesk Inventor History Tree  When extrudin.pdf
What are stored in the Autodesk Inventor History Tree When extrudin.pdfarchanadesignfashion
 
What are three factors contributing to resistanceCharacterize car.pdf
What are three factors contributing to resistanceCharacterize car.pdfWhat are three factors contributing to resistanceCharacterize car.pdf
What are three factors contributing to resistanceCharacterize car.pdfarchanadesignfashion
 
Alan Homes serves on the board of directors of Flynn Company. The pr.pdf
Alan Homes serves on the board of directors of Flynn Company. The pr.pdfAlan Homes serves on the board of directors of Flynn Company. The pr.pdf
Alan Homes serves on the board of directors of Flynn Company. The pr.pdfarchanadesignfashion
 
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdf
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdfTwo genes (A and B) are located 10cM apart on the X chromosome. A wom.pdf
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdfarchanadesignfashion
 
q2.4) Listed are elements of the financial statements discussed in t.pdf
q2.4) Listed are elements of the financial statements discussed in t.pdfq2.4) Listed are elements of the financial statements discussed in t.pdf
q2.4) Listed are elements of the financial statements discussed in t.pdfarchanadesignfashion
 
Programming code in C must be C loops reque.pdf
Programming code in C  must be C loops reque.pdfProgramming code in C  must be C loops reque.pdf
Programming code in C must be C loops reque.pdfarchanadesignfashion
 
Please find the solution. Thanks 4. As the value of increases fro.pdf
Please find the solution. Thanks 4. As the value of increases fro.pdfPlease find the solution. Thanks 4. As the value of increases fro.pdf
Please find the solution. Thanks 4. As the value of increases fro.pdfarchanadesignfashion
 
Please help! Both answers must be in long paragraph form1. Explain.pdf
Please help! Both answers must be in long paragraph form1. Explain.pdfPlease help! Both answers must be in long paragraph form1. Explain.pdf
Please help! Both answers must be in long paragraph form1. Explain.pdfarchanadesignfashion
 
Life is easy to recognize but difficult to define. According to .pdf
Life is easy to recognize but difficult to define. According to .pdfLife is easy to recognize but difficult to define. According to .pdf
Life is easy to recognize but difficult to define. According to .pdfarchanadesignfashion
 
Let I, J be ideals in a ring R. Prove that I J is also an ideal of R.pdf
Let I, J be ideals in a ring R. Prove that I  J is also an ideal of R.pdfLet I, J be ideals in a ring R. Prove that I  J is also an ideal of R.pdf
Let I, J be ideals in a ring R. Prove that I J is also an ideal of R.pdfarchanadesignfashion
 
Imagine that one of the segments in Drosophila is T2, which will for.pdf
Imagine that one of the segments in Drosophila is T2, which will for.pdfImagine that one of the segments in Drosophila is T2, which will for.pdf
Imagine that one of the segments in Drosophila is T2, which will for.pdfarchanadesignfashion
 
If the Social Security retirement system was a private retirement sy.pdf
If the Social Security retirement system was a private retirement sy.pdfIf the Social Security retirement system was a private retirement sy.pdf
If the Social Security retirement system was a private retirement sy.pdfarchanadesignfashion
 
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdf
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdfIdentify the following reaction Glucose + Fructose rightarrow Sucros.pdf
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdfarchanadesignfashion
 
identify the developmental genes that influence macroevolutionSo.pdf
identify the developmental genes that influence macroevolutionSo.pdfidentify the developmental genes that influence macroevolutionSo.pdf
identify the developmental genes that influence macroevolutionSo.pdfarchanadesignfashion
 
I need answer to those questions please ASAP Im stuck D Question 1.pdf
I need answer to those questions please ASAP Im stuck D Question 1.pdfI need answer to those questions please ASAP Im stuck D Question 1.pdf
I need answer to those questions please ASAP Im stuck D Question 1.pdfarchanadesignfashion
 

More from archanadesignfashion (20)

Blood typing is often used as evidence in paternity cases in court. .pdf
Blood typing is often used as evidence in paternity cases in court. .pdfBlood typing is often used as evidence in paternity cases in court. .pdf
Blood typing is often used as evidence in paternity cases in court. .pdf
 
Write a JAVA program that reads a stream of integers from a file and.pdf
Write a JAVA program that reads a stream of integers from a file and.pdfWrite a JAVA program that reads a stream of integers from a file and.pdf
Write a JAVA program that reads a stream of integers from a file and.pdf
 
What two difficulties arise in taking simplicity straightforwardly a.pdf
What two difficulties arise in taking simplicity straightforwardly a.pdfWhat two difficulties arise in taking simplicity straightforwardly a.pdf
What two difficulties arise in taking simplicity straightforwardly a.pdf
 
what is true about assetsSolutionAssets are those which are u.pdf
what is true about assetsSolutionAssets are those which are u.pdfwhat is true about assetsSolutionAssets are those which are u.pdf
what is true about assetsSolutionAssets are those which are u.pdf
 
What happens if the dividing zygote accidental separates into two A.pdf
What happens if the dividing zygote accidental separates into two  A.pdfWhat happens if the dividing zygote accidental separates into two  A.pdf
What happens if the dividing zygote accidental separates into two A.pdf
 
What are stored in the Autodesk Inventor History Tree When extrudin.pdf
What are stored in the Autodesk Inventor History Tree  When extrudin.pdfWhat are stored in the Autodesk Inventor History Tree  When extrudin.pdf
What are stored in the Autodesk Inventor History Tree When extrudin.pdf
 
What are three factors contributing to resistanceCharacterize car.pdf
What are three factors contributing to resistanceCharacterize car.pdfWhat are three factors contributing to resistanceCharacterize car.pdf
What are three factors contributing to resistanceCharacterize car.pdf
 
Alan Homes serves on the board of directors of Flynn Company. The pr.pdf
Alan Homes serves on the board of directors of Flynn Company. The pr.pdfAlan Homes serves on the board of directors of Flynn Company. The pr.pdf
Alan Homes serves on the board of directors of Flynn Company. The pr.pdf
 
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdf
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdfTwo genes (A and B) are located 10cM apart on the X chromosome. A wom.pdf
Two genes (A and B) are located 10cM apart on the X chromosome. A wom.pdf
 
q2.4) Listed are elements of the financial statements discussed in t.pdf
q2.4) Listed are elements of the financial statements discussed in t.pdfq2.4) Listed are elements of the financial statements discussed in t.pdf
q2.4) Listed are elements of the financial statements discussed in t.pdf
 
Programming code in C must be C loops reque.pdf
Programming code in C  must be C loops reque.pdfProgramming code in C  must be C loops reque.pdf
Programming code in C must be C loops reque.pdf
 
Please find the solution. Thanks 4. As the value of increases fro.pdf
Please find the solution. Thanks 4. As the value of increases fro.pdfPlease find the solution. Thanks 4. As the value of increases fro.pdf
Please find the solution. Thanks 4. As the value of increases fro.pdf
 
Please help! Both answers must be in long paragraph form1. Explain.pdf
Please help! Both answers must be in long paragraph form1. Explain.pdfPlease help! Both answers must be in long paragraph form1. Explain.pdf
Please help! Both answers must be in long paragraph form1. Explain.pdf
 
Life is easy to recognize but difficult to define. According to .pdf
Life is easy to recognize but difficult to define. According to .pdfLife is easy to recognize but difficult to define. According to .pdf
Life is easy to recognize but difficult to define. According to .pdf
 
Let I, J be ideals in a ring R. Prove that I J is also an ideal of R.pdf
Let I, J be ideals in a ring R. Prove that I  J is also an ideal of R.pdfLet I, J be ideals in a ring R. Prove that I  J is also an ideal of R.pdf
Let I, J be ideals in a ring R. Prove that I J is also an ideal of R.pdf
 
Imagine that one of the segments in Drosophila is T2, which will for.pdf
Imagine that one of the segments in Drosophila is T2, which will for.pdfImagine that one of the segments in Drosophila is T2, which will for.pdf
Imagine that one of the segments in Drosophila is T2, which will for.pdf
 
If the Social Security retirement system was a private retirement sy.pdf
If the Social Security retirement system was a private retirement sy.pdfIf the Social Security retirement system was a private retirement sy.pdf
If the Social Security retirement system was a private retirement sy.pdf
 
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdf
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdfIdentify the following reaction Glucose + Fructose rightarrow Sucros.pdf
Identify the following reaction Glucose + Fructose rightarrow Sucros.pdf
 
identify the developmental genes that influence macroevolutionSo.pdf
identify the developmental genes that influence macroevolutionSo.pdfidentify the developmental genes that influence macroevolutionSo.pdf
identify the developmental genes that influence macroevolutionSo.pdf
 
I need answer to those questions please ASAP Im stuck D Question 1.pdf
I need answer to those questions please ASAP Im stuck D Question 1.pdfI need answer to those questions please ASAP Im stuck D Question 1.pdf
I need answer to those questions please ASAP Im stuck D Question 1.pdf
 

Recently uploaded

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Write a very simple Note taking using JavaFX ( adding three function.pdf

  • 1. Write a very simple Note taking using JavaFX ( adding three functionaning buttons - new - delete - save ) Solution JavaFX is a set of grapics and media packages that enables developers to design, create, test, debug and deploy client applications that operate on diverse platforms.It is a java library that contains classes and interfaces that are written in native code. There are many features involved in JavaFX like UI controls, webview, Canvas API, Multitouch support mainly used for android applications, Swing interoperability etc.. Buttons can also be created by using this JavaFX and we can do changes to those buttons like applying shadow effect, image for button etc... Button btn=new Button("new"); Button btn1 =new Button("Delete"); Button btn2=new Button("Save"); // Here three buttons have been created and now we can assign the actions to these buttons by using //setOnAction() method availabel in javaFX btn1.setOnAction( new EventHandler () { @override public void handle(ActionEvent e){ FileChooser file=new FileChooser(); File selected=file.showOpenDialog(stage); if(selected !=NULL) openFile(selected); } }); btn2.setOnAction(new EventHandler() { @override private handle(ActionEvent e){ file.showSaveDialog(stage); } }); These buttons are used to open a new file and save the file using javaFX