100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

CE2o3 Assignment 1 Java code solution

Rating
-
Sold
-
Pages
5
Uploaded on
07-06-2021
Written in
2019/2020

This document is the code solution for the ce203 Application Assignment









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
June 7, 2021
Number of pages
5
Written in
2019/2020
Type
Other
Person
Unknown

Content preview

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.*;

public class CE203_2019_Ass1 implements ActionListener {

public static JButton addButton;
public static JButton displayButton;
public static JButton removeButton;
public static JButton clearButton;
public static JLabel label, textlabel, RGBlabel;
public static JTextField textInput, R, G, B;
public static Operations operate;

public CE203_2019_Ass1(){
operate = new Operations();
}
public JPanel createTopPanel() {
//adding button on the top
JPanel topPanel = new JPanel();
addButton = new JButton("Add Word");
addButton.addActionListener(this);
topPanel.add(addButton);
displayButton = new JButton("Display Words");
displayButton.addActionListener(this);
topPanel.add(displayButton);
removeButton = new JButton("Remove Word");
removeButton.addActionListener(this);
topPanel.add(removeButton);
clearButton = new JButton("Clear List");
clearButton.addActionListener(this);
topPanel.add(clearButton);
topPanel.setSize(500, 100);
topPanel.setLocation(0, 0);

return topPanel;
}

public static JPanel createMiddlePanel() {
JPanel panel = new JPanel();
label = new JLabel("LABEL");
//textlabel = new JLabel("Text Input");
panel.add(label);

panel.setSize(500, 200);
panel.setLocation(0, 150);
return panel;

}

public static JPanel createBottomPanel() {
£7.29
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
filipasa99

Also available in package deal

Thumbnail
Package deal
Ce203 Java Programming Assignment (2019)
-
4 2021
£ 30.63 More info

Get to know the seller

Seller avatar
filipasa99 The University of Essex
View profile
Follow You need to be logged in order to follow users or courses
Sold
3
Member since
5 year
Number of followers
3
Documents
0
Last sold
3 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions