Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA programming COMP 306 Lab3 Object Oriented Programming Dragand Drop Lab (10 possible points) This lab is focused on the implementation and use of Drag

JAVA programming

image text in transcribed

COMP 306 Lab3 Object Oriented Programming Dragand Drop Lab (10 possible points) This lab is focused on the implementation and use of Drag and Drop effects in JavaFX. Drag and Drop is a common feature in many modern GUI applications, from calendar organizers to simple videogames. The purpose of this lab is to introduce you to Drag and Drop through the creation of a UML Builder program. You will gain a basic understanding of the following concepts while doing this lab: The Translate parameter and its controller methods -The OnClick and OnDragged mouse event handlers - The Group class and its uses Basic JavaFX building blocks, like HBox, BorderPane, TextField, TextArea, and Button To create your main class (ClickAndDrag in example) you will need: A Button object and associated event handler A Border Pane and an HBox for organization; A Group object to place the UMLNode's in; Two EventHandlers for mouse-press and mouse-drag To create the UMLNode class you will need Two Text Fields and one TextArea: -To extend BoarderPane in the class declaration Add Inserts for padding and a border for visibility Additional things to add (Bonus options for learning): A Button that adds lines to connect the UMLNodes Bindings that allow the connections to automatically update with the UMLNodes Whatever you can imagine. Drag and Drop is extremely flexible! COMP 306 Lab3 Object Oriented Programming Dragand Drop Lab (10 possible points) This lab is focused on the implementation and use of Drag and Drop effects in JavaFX. Drag and Drop is a common feature in many modern GUI applications, from calendar organizers to simple videogames. The purpose of this lab is to introduce you to Drag and Drop through the creation of a UML Builder program. You will gain a basic understanding of the following concepts while doing this lab: The Translate parameter and its controller methods -The OnClick and OnDragged mouse event handlers - The Group class and its uses Basic JavaFX building blocks, like HBox, BorderPane, TextField, TextArea, and Button To create your main class (ClickAndDrag in example) you will need: A Button object and associated event handler A Border Pane and an HBox for organization; A Group object to place the UMLNode's in; Two EventHandlers for mouse-press and mouse-drag To create the UMLNode class you will need Two Text Fields and one TextArea: -To extend BoarderPane in the class declaration Add Inserts for padding and a border for visibility Additional things to add (Bonus options for learning): A Button that adds lines to connect the UMLNodes Bindings that allow the connections to automatically update with the UMLNodes Whatever you can imagine. Drag and Drop is extremely flexible

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

1. Where do these biases come from?

Answered: 1 week ago

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago