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;
}
Do'stlaringiz bilan baham: |