From 7b5a9d994912d46f24fbc02c8edd057aeb102101 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Thu, 28 Nov 2019 11:29:09 +0100 Subject: [PATCH] Demo: added square buttons --- .../flatlaf/demo/BasicComponentsPanel.java | 15 +++++++++++++++ .../flatlaf/demo/BasicComponentsPanel.jfd | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java index f23d5d19..6730520d 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java @@ -40,6 +40,9 @@ class BasicComponentsPanel JButton button3 = new JButton(); JButton button4 = new JButton(); JButton button13 = new JButton(); + JButton button14 = new JButton(); + JButton button15 = new JButton(); + JButton button16 = new JButton(); JLabel checkBoxLabel = new JLabel(); JCheckBox checkBox1 = new JCheckBox(); JCheckBox checkBox2 = new JCheckBox(); @@ -174,6 +177,18 @@ class BasicComponentsPanel button13.setIcon(UIManager.getIcon("Tree.closedIcon")); add(button13, "cell 5 1"); + //---- button14 ---- + button14.setText("..."); + add(button14, "cell 5 1"); + + //---- button15 ---- + button15.setText("\u2026"); + add(button15, "cell 5 1"); + + //---- button16 ---- + button16.setText("#"); + add(button16, "cell 5 1"); + //---- checkBoxLabel ---- checkBoxLabel.setText("JCheckBox"); add(checkBoxLabel, "cell 0 2"); diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd index 5237d298..090cc94c 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd @@ -75,6 +75,24 @@ new FormModel { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 1" } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button14" + "text": "..." + }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { + "value": "cell 5 1" + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button15" + "text": "…" + }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { + "value": "cell 5 1" + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button16" + "text": "#" + }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { + "value": "cell 5 1" + } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "checkBoxLabel" "text": "JCheckBox"