Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CN1 = Codename One Uploaded Zip file link of the source code on the program (programmed in Java using Eclipse): https://www.mediafire.com/file/jjmf3ppa3jjg9x5/EventPrograms.zip/file Please write a CN1

image text in transcribed

CN1 = Codename One

Uploaded Zip file link of the source code on the program (programmed in Java using Eclipse):

https://www.mediafire.com/file/jjmf3ppa3jjg9x5/EventPrograms.zip/file

Please write a CN1 program using the description below: Describe below is a structure of a program which implements a Graphical User Interface (GUI) consisting of a form with the following layout and event handling functionalities Pointer Handlin Form Pointer Listener ActionEventt ActionEvent Listener code. Drag "click release Example Only Handling Pressing Event Handling Drag Event Handling Rclcasc Event Containers to which we have added a listener (clicking on this container would call actionPerformed of the attached listener) csc Dept, csus Container without a listener (clicking on this container would not invoke any action/method) The handling for the events are satisfied by the System.out.println text displaying of which event takes place "Pressed from the EAST region", "Dragged from Center region", "Released from the West region". You are required to output ONLY one action event per region Here is an example of an output: (DEMO ONLY - DO NOT USE THIS FOR YOUR WORK) WARNING Could not open/create prefs Pointer PRESSED x and y: s8 136 inter DRAGGED x and ys Pointer DRAGGED x and y: 395 264 Peinter DRAGGED x and y: 398 276 Pointer DRAGGED x and ya Pointer DRAGGED x and y: 399 271 99 270 Peinter RELEASED x and y: 878 294 Please write a CN1 program using the description below: Describe below is a structure of a program which implements a Graphical User Interface (GUI) consisting of a form with the following layout and event handling functionalities Pointer Handlin Form Pointer Listener ActionEventt ActionEvent Listener code. Drag "click release Example Only Handling Pressing Event Handling Drag Event Handling Rclcasc Event Containers to which we have added a listener (clicking on this container would call actionPerformed of the attached listener) csc Dept, csus Container without a listener (clicking on this container would not invoke any action/method) The handling for the events are satisfied by the System.out.println text displaying of which event takes place "Pressed from the EAST region", "Dragged from Center region", "Released from the West region". You are required to output ONLY one action event per region Here is an example of an output: (DEMO ONLY - DO NOT USE THIS FOR YOUR WORK) WARNING Could not open/create prefs Pointer PRESSED x and y: s8 136 inter DRAGGED x and ys Pointer DRAGGED x and y: 395 264 Peinter DRAGGED x and y: 398 276 Pointer DRAGGED x and ya Pointer DRAGGED x and y: 399 271 99 270 Peinter RELEASED x and y: 878 294

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions