PurchasePane.java - Assignment Arizona State University...

This preview shows page 1 - 2 out of 3 pages.

// Assignment #: Arizona State University CSE205 #6// Name: Kumal Patel// StudentID: 12084932343// Lecture: MWF 9:40am-10:30am// Description: PurchasePane displays a list of available laptops// from which a user can select to buy. It also shows how many// laptops are selected and what is the total amount.import javafx.collections.FXCollections;import javafx.collections.ObservableList;import javafx.event.ActionEvent;//**Need to import to handle eventimport javafx.event.EventHandler;//**Need to import to handle eventimport java.util.ArrayList;import java.text.DecimalFormat;import javafx.scene.paint.Color;import javafx.scene.text.Font;import javafx.scene.control.Button;import javafx.scene.control.Label;import javafx.scene.control.ListView;import javafx.scene.control.SelectionMode;import javafx.scene.layout.HBox;import javafx.scene.layout.VBox;import javafx.geometry.Pos;public class PurchasePane extends VBox{//GUI componentsprivate ArrayList<Laptop> laptopList, selectedList;//laptopLV for top ListView; selectedLV for bottom ListViewprivate ListView<Laptop> laptopLV, selectedLV;//obeservable listprivate ObservableList<Laptop> observe;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture