Java dasturlash tilining Javafx moduli yordamida Ma'lumotar bazasi bilan ishlash


Download 1.94 Mb.
bet3/3
Sana18.06.2023
Hajmi1.94 Mb.
#1593429
1   2   3
Bog'liq
BEK dasturlash 5

Adapter.java
package com.example.gasauthority;

public class Adapter {


private Integer id;
private String fullName;
private String address;

public Adapter(Integer id, String fullName, String address) {


this.id = id;
this.fullName = fullName;
this.address = address;

}

public Integer getId() {


return id;
}

public void setId(Integer id) {


this.id = id;
}

public String getFullName() {


return fullName;
}

public void setFullName(String fullName) {


this.fullName = fullName;
}

public String getAddress() {


return address;
}

public void setAddress(String address) {


this.address = address;
}

}

view.fxml


xml version="1.0" encoding="UTF-8"?>

import javafx.scene.control.Button?>
import javafx.scene.control.TableColumn?>
import javafx.scene.control.TableView?>
import javafx.scene.control.TextField?>
import javafx.scene.image.Image?>
import javafx.scene.image.ImageView?>
import javafx.scene.layout.AnchorPane?>
import javafx.scene.text.Font?>




















Module-info.java
module com.example.gasauthority {
requires javafx.controls;
requires javafx.fxml;
requires java.sql;
requires java.desktop;
requires mysql.connector.java;

opens com.example.gasauthority to javafx.fxml;


exports com.example.gasauthority;
}

Download 1.94 Mb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling