Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 8 pages
Other

CE203 Java Application Programming Assignment

Document preview thumbnail
Preview 1 out of 8 pages

This includes the assignment questions, answers and feedback. This work got an 80% grade.

Content preview

Assignment 1_Testing_RegNo_<fv18727>

a) Add a word to the list (the word to be added is provided in a text field at the bottom of the
application).

In order to simplify the task I have decided to create Panels for each section i.e a TopPanel for the
Buttons, a MiddlePanel for the LABEL output and a BottomPanel for the user TextInput and RGB
input. I have done this by creating three different methods that return the panels accordingly.

Later to add each of this panel to a mainPanel in the main method.




I have also created a class Operations that consists of different methods that provide corresponding
features; public boolean validate(String w) - checks if the input string is a valid word and returns true for
valid and false otherwise;




With the help of this method the program is able to identify if an input String is a valid word.

However, we would not see any effect if there wasn't an event handling, thus we implement an action
listener to respond to the user’s indication.

Document information

Uploaded on
June 7, 2021
File latest updated on
June 7, 2021
Number of pages
8
Written in
2019/2020
Type
Other
Person
Unknown
£15.88

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
3
Followers
3
Items
0
Last sold
4 year ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions