Question
Complete Programming Assignment number one located at the end of chapter six in your textbook. In order to complete this assignment please download the file
Complete "Programming Assignment" number one located at the end of chapter six in your textbook. In order to complete this assignment please download the file below: (I've included the file in the question) I really don't know where to being and I would really appreciate the help. It should be written in the Java language. Start TextPad. Open the file named Borders.java from the Data Disk (see inside back cover for instructions on how to obtain a copy of the Data Disk). 1. Change the name of the program to Buttons.java. Use TextPads Replace command to change each occurrence of the word, Borders, to the word, But- tons. Insert your name and the current date in the comments. 2. Save the file as Buttons.java on the Data Disk. Print a copy of the source code. 3. Compile and run the program. /* Chapter 6: Borders Programmer: Date: Filename: Borders.java Purpose: */ import java.awt.*; import java.awt.event.*; public class Borders extends Frame { public Borders() { //set the layout setLayout(new BorderLayout()); //Add buttons Button north = new Button("North"); Button south = new Button("South"); Button east = new Button("East"); Button west = new Button("West"); Button center = new Button("Center"); add(north, BorderLayout.NORTH); add(south, BorderLayout.SOUTH); add(east, BorderLayout.EAST); add(west, BorderLayout.WEST); add(center, BorderLayout.CENTER); //override the windowClosing event addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); } public static void main(String[] args) { // set frame properties Borders f = new Borders(); f.setTitle("Border Application"); f.setBounds(200,200,300,300); f.setVisible(true); } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started