原创 更紗黑體命名含義

更紗黑體命名含義 cl: Classical orthography sc: Simplified Chinese tc: Traditional Chinese HC: Hong Kong Chinese j : Japanes

原创 瀏覽器的同源策略 同源的定義

同源 “同源"指的是"三個相同” 協議相同 域名相同 端口相同 舉例來說,http://www.example.com/dir/page.html這個網址,協議是http://,域名是www.example.com,端口是80

原创 JavaFX 尺寸&邊界&位置&座標

尺寸&邊界&位置&座標 min max pre Button button = new Button("ButtonButtonButtonButton"); button.setMinWidth(100); button.set

原创 JavaFX Stage

Stage 尺寸 primaryStage.setWidth(600); primaryStage.setHeight(600); primaryStage.setMaxWidth(1000); primaryStage.setM

原创 JavaFX 控件 TextArea

TextArea TextArea textArea = new TextArea(); textArea.setPrefColumnCount(20); textArea.setPrefRowCount(30); textAr

原创 JavaFX 控件 ImageView

ImageView 支持格式: BMP GIF JPEG PNG //加載圖片 //如果設置了 requestedXXX 尺寸, ImageView中 設置 FitXXX 尺寸是基於requestedXXX 尺寸縮放 Imag

原创 Windows Terminal + PowerShell Core 美化

最終效果 安裝 Windows Terminal 應用商店中搜索, 下載 下載 PowerShell Core https://github.com/PowerShell/PowerShell/releases 字體 Saras

原创 JavaFX 控件 Dialog

Dialog Dialog Dialog<ButtonType> dialog = new Dialog<>(); dialog.setTitle("Title"); dialog.setHeaderText("HeaderTe

原创 JavaFX 讀取剪切板圖片並保存圖片到本地

JavaFX 讀取剪切板圖片並保存圖片到本地 使用 JavaFX Clipboard API Clipboard clipboard = Clipboard.getSystemClipboard(); Image image =

原创 JavaFX 控件 Separator

Separator Separator separator1 = new Separator(); Separator separator2 = new Separator(); Button button1 = new Bu

原创 JavaFX 控件 ColorPicker

ColorPicker ColorPicker colorPicker = new ColorPicker(); //設置Color colorPicker.setValue(Color.valueOf("#00cccc"));

原创 Maven插件 maven-shade-plugin

原文: https://my.oschina.net/u/2377110/blog/1585553 網上有一些 maven-shade-plugin 替代 maven-assembly-plugin 的文章,原因是代 maven-

原创 JavaFX Effect

Effect DropShadow InnerShadow Shadow BoxBlur GaussianBlur MotionBlur Bloom Glow SepiaTone Reflection Colo

原创 JavaFX 控件 ComboBox

ComboBox 基礎使用 ComboBox<String> comboBox = new ComboBox<>(); comboBox.getItems().addAll("item1", "item2", "item3",

原创 JavaFX 控件 ChoiceBox

ChoiceBox 基礎使用 ChoiceBox<String> choiceBox = new ChoiceBox<>(); choiceBox.getItems().addAll("item1", "item2", "ite