Results 1 to 3 of 3
  1. #1
    manager00104 is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Exclamation Council Tax Application

    Hi Guys,

    Ive got this code and I want to design a Java JFrame Application that accepts the market value of a home in London Borough of SwankHeath in April 2012, returning the corresponding Council Tax band. Note that all homes in Swankheath had a market value greater than 100,000 at that time.

    Here is the table that's suppose to look in the end for the output:

    ps: it usually had to be next to each other "value entered" & "Council Tax Band" !

    value entered

    100,001 to 180,000
    180,001 to 210,000
    210,001 to 320,000
    320,001 or more

    Council Tax Band

    E
    F
    G
    H


    And here is the code to begin with ...


    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;

    public class CouncilTax extends JFrame
    implements ActionListener {
    // write declarations for Swing controls, etc, here

    public static void main(String[] args) {
    CouncilTax jf = new CouncilTax();
    }

    public CouncilTax() {
    setLayout(new FlowLayout());
    setSize(400, 300);
    setTitle("Council Tax Band");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // write code to add your controls, etc here
    setVisible(true);
    }

    public void actionPerformed(ActionEvent e) {
    // write your event handling code here
    }
    }


    Can anyone help me out with this question, very please :S ?!

    You can simply paste it on NetBeans !

    Kind Regards,

    manager00104,
    Last edited by manager00104; 05-21-2012 at 01:36 PM.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

    Default Re: Council Tax Application

    I'd extend the JButton class to a 'BandButton' class; it has a constructor that takes the text on the button (e.g. " 100,001 to 180,000") and single 'band' character; the ActionListener for the particular button (when it's pressed) produces the band character.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: Council Tax Application

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  2. Replies: 1
    Last Post: 08-05-2009, 02:43 AM
  3. Replies: 0
    Last Post: 04-22-2009, 01:30 PM
  4. Replies: 0
    Last Post: 02-16-2008, 09:31 PM
  5. Replies: 0
    Last Post: 02-16-2008, 09:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •