package sample.main.anli; import com.jacob.com.ComThread; import com.jacob.com.Variant; import com.spire.doc.DocumentObject; import com.spire.doc.FileFormat; import javafx.application.Application; import javafx.application.Platform; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.fxml.FXML; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.TextField; import javafx.scene.input.MouseEvent; import javafx.scene.layout.Background; import javafx.scene.layout.GridPane; import javafx.scene.text.Text; import javafx.scene.web.WebView; import javafx.stage.Stage; import org.apache.poi.poifs.filesystem.DirectoryEntry; import org.apache.poi.poifs.filesystem.DocumentEntry; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.jsoup.Jsoup; import org.w3c.dom.Document; import java.io.*; import […]
Tag: javafx
JavaFX project environment configuration in VS Code
1. Get JavaFX 1.1 JavaFX Download JavaFX The website should be opened as shown in Figure 1.1.1: Figure 1.1.1 Click the Download button in the lower left corner to enter the page shown in Figure 1.1.2: Figure 1.1.2 JavaFX version: Select the JavaFX version you want to use, it is generally recommended to use the […]
JavaFx table creation and data import
Using JavaFx to implement dynamic table output of three page replacement algorithms package pageRA; import java.util.ArrayList; import java.util.List; import javafx.application.Application; import javafx.beans.property.ReadOnlyObjectWrapper; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.TableColumn; import javafx.scene.control.TableView; import javafx.scene.control.cell.PropertyValueFactory; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class GUI extends Application { Button bt = […]
JavaFX uses scene builder to initialize TableView
It has just been implemented. When you click to switch to this page, the data queried in the MySQL database will be displayed MySQL database needs to create an initialization data table Connect layer, create entity class A Student object, used as a generic for subsequent traversal of the collection package pojo; import javafx.beans.property.SimpleIntegerProperty; import […]
(IntelliJ IDEA) Development of simple four arithmetic operators based on JavaFX
Foreword It was my first time to write in Java. I learned a lot of things while writing, so I wrote a lot of notes (not many actually, mainly because I had to post CSDN and so on, so I added some later). I have never written such a program before, so I guess there […]
JavaFX: form shows state, modal non-modal
Program window display generally has three modes. Non-modal and modal, where modal is divided into program modal and form modal. Non-modal can be understood as there are no restrictions between forms, and you can use the mouse, keyboard and other tools to switch between forms. Program modality means that after the form is opened, all […]
Must solve the JavaFx lack of JavaFX runtime component error and Application burst red problem
Article directory Notice maven project creation Maven + javafx project configuration Note The following problems are purely because the new project is a normal project, not a Java FX project. If the new project is a Java FX project, then idea will automatically generate the corresponding required pom.xml file for you, and the operation will […]
JavaFX ListView
The JavaFX ListView control enables users to choose one or more options from a predefined list of choices. The JavaFX ListView control is represented by the class javafx.scene.control.ListView . This JavaFX ListView tutorial will explain how to use the ListView class. Creating a ListView You create a ListView simply by creating a new instance of […]
JavaFx generates QR code tool class encapsulation
In the past, Star Music Downloader needed to generate QR codes. At that time, an open source library was used to implement it. But after a while, I found that the library had too many dependencies, and there was a dependency on http-client, which made the software bigger. Double, and sometimes downloading dependencies and reporting […]
javaFX: Implementation of conference multimedia switching system (3)
Key class (MeetingShow): /* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license */ package ren.kun.meetingshow; /** * * @author 65340 */ import java.awt.Dimension; import java.awt.Toolkit; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.logging.Level; import java.util.logging.Logger; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyCodeCombination; import javafx.scene.input.KeyCombination; import javafx.scene.layout.StackPane; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; import […]