jaecenters.blogg.se

Bar graph program in java
Bar graph program in java







  • NFR2 The graphical user interface must be created using JavaFX.
  • NFR1 The program must be written in Java.
  • As an example, Figure 6 shows how this can be achieved for a variant of the file csv that has “xxx” in the cell for Tesco’s market share, where there should be a number.
  • FR11 If the file cannot be found, or is not in the correct format, the program must indicate an error by some means that is visible to the user.
  • FR10 If the user clicks on the button labelled Generate From CSV (without needing to enable any check boxes or input any text) the program must present the user with a means of selecting an existing file in comma‐separated‐value format ( csv) and must then create a bar chart from the values held in the file.
  • The following functional requirements pertain to the option: Generate From CSV. There is no particular significance to the colours used in this or any other of the charts. The axes of the chart must be scaled suitably to make the chart fit the pane.
  • FR9 If the user now clicks on the button labelled Generate Bar Chart, the program must use the values that have been entered into the text fields labelled Item Name and Value to create a bar chart.
  • FR8 The program must read the values input to the text fields labelled Item Name and Value.
  • FR7 The program must allow the user to input text to the fields labelled Item Name and Value.
  • bar graph program in java

    FR6 Clicking on a check box must make the corresponding text fields alongside it, headed Item Name and Value, become available for user input.In Figure 1 the topmost of these is already enabled. FR5 The program must allow the user to click on the check boxes headed Enabled in the figures.FR4 The values input to the text fields labelled Title, X‐Axis label and Y‐Axis label must be read by the program and used to annotate the charts it creates.FR3 The program must allow the user to input text to the fields labelled Title, X‐Axis label and Y‐Axis label.The following functional requirements pertain to the option: Generate Bar chart. FR2 The program must create a pane that is functionally equivalent to (but not necessarily identical to) that of Figure 1.FR1 None of the panes in your interface should be resizable.

    bar graph program in java

    It must not be necessary for the marker to investigate your program files. The marking will be done on the basis of your report alone. In your report you must reflect honestly on the degree of success you have achieved. The report must include neatly formatted copies of your Java source and evidence of your testing, including screen images from your running program. You must document all of this in a report. You must design, implement, test and document a program in Java that fulfils all the functional requirements (FR) and all the non‐functional requirements (NFR) indicated below. You must write classes for a NetBeansproject that uses JavaFXto create a graphical user interface. Your application must feature a graphical user interface. In this coursework you must design, implement, test and document an application in Java to display bar charts.









    Bar graph program in java