0% found this document useful (0 votes)
16 views5 pages

JVL Exp10

The document outlines a Java GUI application for a banking user interface using Java FX. It includes components such as a dashboard, search field, account selection combo box, and various text fields for account information. The application is structured with a main layout that incorporates a top bar, left sidebar, and center content for displaying banking transaction reports and account details.

Uploaded by

Arfia Ansari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views5 pages

JVL Exp10

The document outlines a Java GUI application for a banking user interface using Java FX. It includes components such as a dashboard, search field, account selection combo box, and various text fields for account information. The application is structured with a main layout that incorporates a top bar, left sidebar, and center content for displaying banking transaction reports and account details.

Uploaded by

Arfia Ansari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Programs to be Implemented in this Experiments

a. User Login Java GUI using Java FX.


b. Bank User UI with Java FX.
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;

public class BankUserUI extends Application {

@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("CYBERUI");

// Create the main layout


BorderPane borderPane = new BorderPane();

// Create the top bar


HBox topBar = new HBox();
topBar.setPadding(new Insets(10));
topBar.setSpacing(10);
Label titleLabel = new Label("DASHBOARD");
TextField searchField = new TextField();
Button contactUsButton = new Button("Contact US");
topBar.getChildren().addAll(titleLabel, searchField, contactUsButton);
borderPane.setTop(topBar);

// Create the left sidebar


VBox leftSidebar = new VBox();
leftSidebar.setPadding(new Insets(10));
leftSidebar.setSpacing(10);
// Add sidebar items (e.g., icons, labels)
borderPane.setLeft(leftSidebar);

// Create the center content


VBox centerContent = new VBox();
centerContent.setPadding(new Insets(10));
centerContent.setSpacing(10);

// Add a label for the banking transaction report


Label reportLabel = new Label("Banking Transaction Report");
centerContent.getChildren().add(reportLabel);

// Add a line chart (you'll need to implement this using a charting library)
// ...

// Add a combo box for account selection


Label accountLabel = new Label("Account:");
ComboBox<String> accountComboBox = new ComboBox<>();
accountComboBox.getItems().addAll("6849 89****9387", "Other accounts...");
centerContent.getChildren().addAll(accountLabel, accountComboBox);

// Add labels and text fields for account information


Label accountInfoLabel = new Label("Account Information:");
Label typeBankLabel = new Label("Type Bank:");
Label accessCardLabel = new Label("Access Card:");
Label numberCardLabel = new Label("Number Card:");
Label statusCardLabel = new Label("Status Card:");
TextField typeBankField = new TextField();
TextField accessCardField = new TextField();
TextField numberCardField = new TextField();
TextField statusCardField = new TextField();
centerContent.getChildren().addAll(accountInfoLabel, typeBankLabel,
typeBankField, accessCardLabel, accessCardField, numberCardLabel,
numberCardField, statusCardLabel, statusCardField);
// Add buttons
HBox buttonBar = new HBox();
buttonBar.setSpacing(10);
Button changeAccountButton = new Button("Change Account");
Button enterPinButton = new Button("Enter PIN");
buttonBar.getChildren().addAll(changeAccountButton, enterPinButton);
centerContent.getChildren().add(buttonBar);

borderPane.setCenter(centerContent);

Scene scene = new Scene(borderPane, 800, 600);


primaryStage.setScene(scene);
primaryStage.show();
}

public static void main(String[] args) {


launch(args);
}
}

You might also like