ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Week 5 Followup…

by | Nov 30, 2023 | questions

I need you guys to check the attached zip and comment on how these code could be better structure and if there’s any improvement can be done. Make sure to follow the rules of the lecturer to use swing and below info
I have kept reminding everyone not to use IDE and the disadvantages of
using it in the class as otherwise won’t be able to compile it because
of packages inside them. Kindly upload fresh version of it and if i
encounter future submission has packages or IDE used, it won’t be
graded.
Thanks.

Document Preview:

Week5-DQ1/FullAddress.java import java.awt.Color;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
import javax.swing.BorderFactory;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

// Class for address display
public class FullAddress extends ShortAddress
{
// declare
protected JPanel j_ExtendedAdressPanel;
protected JLabel l_ShortAdres, l_Phone, l_City, l_Street1Name, l_Street2Name, l_HouseNumber;
protected JPanel PanelShort;
private Border BlackLine;
private TitledBorder TitleLine;
private int i_HouseNumber;
private String s_street1Name, s_street2Name, s_cityName;

boolean bVisible=false; // for debug purposes

// Constructor
public FullAddress (int i_House, String s_Street1, String s_Street2, String s_City,
String s_FName, String s_SName, String s_PNumber)
{
super (s_FName, s_SName, s_PNumber); // Inheritance from ShortAddress
i_HouseNumber = i_House;
s_street1Name = s_Street1;
s_street2Name = s_Street2;
s_cityName = s_City;
}

public JPanel createShortPanel () // Function create panel for display
{
j_ExtendedAdressPanel = super.createShortPanel(); // override function from short address class

BlackLine = BorderFactory.createLineBorder(Color.blue); // Borders for pane
TitleLine = BorderFactory.createTitledBorder(BlackLine, “Full Address”); // Title for pane
j_ExtendedAdressPanel.setBorder(TitleLine);

// Labels for output
l_City = new JLabel (s_cityName);
l_City.setLocation(10, 60);
l_City.setSize(250, 20);
l_City.setHorizontalAlignment(JTextField.CENTER);
l_City.setBackground(Color.green);
l_City.setOpaque(bVisible);
j_ExtendedAdressPanel.add(l_City);

l_Street1Name = new JLabel (s_street1Name);
l_Street1Name.setLocation(10, 90);
l_Street1Name.setSize(250, 20);
l_Street1Name.setHorizontalAlignment(JTextField.CENTER);
…

Attachments:


ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!