mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
FlatOptionPaneTest: scroll pane added
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
JFDML JFormDesigner: "7.0.0.0.194" Java: "11.0.2" encoding: "UTF-8"
|
JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8"
|
||||||
|
|
||||||
new FormModel {
|
new FormModel {
|
||||||
contentType: "form/swing"
|
contentType: "form/swing"
|
||||||
@@ -243,7 +243,7 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( null ) {
|
}, new FormLayoutConstraints( null ) {
|
||||||
"location": new java.awt.Point( 0, 0 )
|
"location": new java.awt.Point( 0, 0 )
|
||||||
"size": new java.awt.Dimension( 790, 840 )
|
"size": new java.awt.Dimension( 840, 900 )
|
||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,13 +21,14 @@ import java.awt.event.MouseAdapter;
|
|||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.border.*;
|
import javax.swing.border.*;
|
||||||
|
import com.formdev.flatlaf.demo.ScrollablePanel;
|
||||||
import net.miginfocom.swing.*;
|
import net.miginfocom.swing.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
*/
|
*/
|
||||||
public class FlatOptionPaneTest
|
public class FlatOptionPaneTest
|
||||||
extends FlatTestPanel
|
extends JScrollPane
|
||||||
{
|
{
|
||||||
public static void main( String[] args ) {
|
public static void main( String[] args ) {
|
||||||
SwingUtilities.invokeLater( () -> {
|
SwingUtilities.invokeLater( () -> {
|
||||||
@@ -55,6 +56,7 @@ public class FlatOptionPaneTest
|
|||||||
|
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
|
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
|
||||||
|
ScrollablePanel panel9 = new ScrollablePanel();
|
||||||
JLabel plainLabel = new JLabel();
|
JLabel plainLabel = new JLabel();
|
||||||
JPanel panel1 = new JPanel();
|
JPanel panel1 = new JPanel();
|
||||||
JOptionPane plainOptionPane = new JOptionPane();
|
JOptionPane plainOptionPane = new JOptionPane();
|
||||||
@@ -89,194 +91,200 @@ public class FlatOptionPaneTest
|
|||||||
FlatOptionPaneTest.ShowDialogLinkLabel customShowDialogLabel = new FlatOptionPaneTest.ShowDialogLinkLabel();
|
FlatOptionPaneTest.ShowDialogLinkLabel customShowDialogLabel = new FlatOptionPaneTest.ShowDialogLinkLabel();
|
||||||
|
|
||||||
//======== this ========
|
//======== this ========
|
||||||
setLayout(new MigLayout(
|
setBorder(BorderFactory.createEmptyBorder());
|
||||||
"flowy,ltr,insets dialog,hidemode 3",
|
|
||||||
// columns
|
|
||||||
"[]" +
|
|
||||||
"[]" +
|
|
||||||
"[fill]",
|
|
||||||
// rows
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]" +
|
|
||||||
"[top]"));
|
|
||||||
|
|
||||||
//---- plainLabel ----
|
//======== panel9 ========
|
||||||
plainLabel.setText("Plain");
|
|
||||||
add(plainLabel, "cell 0 0");
|
|
||||||
|
|
||||||
//======== panel1 ========
|
|
||||||
{
|
{
|
||||||
panel1.setBorder(LineBorder.createGrayLineBorder());
|
panel9.setLayout(new MigLayout(
|
||||||
panel1.setLayout(new BorderLayout());
|
"flowy,ltr,insets dialog,hidemode 3",
|
||||||
|
// columns
|
||||||
|
"[]" +
|
||||||
|
"[]" +
|
||||||
|
"[fill]",
|
||||||
|
// rows
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]" +
|
||||||
|
"[top]"));
|
||||||
|
|
||||||
//---- plainOptionPane ----
|
//---- plainLabel ----
|
||||||
plainOptionPane.setMessage("Hello world.");
|
plainLabel.setText("Plain");
|
||||||
panel1.add(plainOptionPane, BorderLayout.CENTER);
|
panel9.add(plainLabel, "cell 0 0");
|
||||||
|
|
||||||
|
//======== panel1 ========
|
||||||
|
{
|
||||||
|
panel1.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel1.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- plainOptionPane ----
|
||||||
|
plainOptionPane.setMessage("Hello world.");
|
||||||
|
panel1.add(plainOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel1, "cell 1 0");
|
||||||
|
|
||||||
|
//---- plainShowDialogLabel ----
|
||||||
|
plainShowDialogLabel.setOptionPane(plainOptionPane);
|
||||||
|
plainShowDialogLabel.setTitleLabel(plainLabel);
|
||||||
|
panel9.add(plainShowDialogLabel, "cell 2 0");
|
||||||
|
|
||||||
|
//---- errorLabel ----
|
||||||
|
errorLabel.setText("Error");
|
||||||
|
panel9.add(errorLabel, "cell 0 1");
|
||||||
|
|
||||||
|
//======== panel2 ========
|
||||||
|
{
|
||||||
|
panel2.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel2.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- errorOptionPane ----
|
||||||
|
errorOptionPane.setMessageType(JOptionPane.ERROR_MESSAGE);
|
||||||
|
errorOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
||||||
|
errorOptionPane.setMessage("Your PC ran into a problem. Buy a new one.");
|
||||||
|
panel2.add(errorOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel2, "cell 1 1");
|
||||||
|
|
||||||
|
//---- errorShowDialogLabel ----
|
||||||
|
errorShowDialogLabel.setTitleLabel(errorLabel);
|
||||||
|
errorShowDialogLabel.setOptionPane(errorOptionPane);
|
||||||
|
panel9.add(errorShowDialogLabel, "cell 2 1");
|
||||||
|
|
||||||
|
//---- informationLabel ----
|
||||||
|
informationLabel.setText("Information");
|
||||||
|
panel9.add(informationLabel, "cell 0 2");
|
||||||
|
|
||||||
|
//======== panel3 ========
|
||||||
|
{
|
||||||
|
panel3.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel3.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- informationOptionPane ----
|
||||||
|
informationOptionPane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
informationOptionPane.setOptionType(JOptionPane.YES_NO_OPTION);
|
||||||
|
informationOptionPane.setMessage("Text with\nmultiple lines\n(use \\n to separate lines)");
|
||||||
|
panel3.add(informationOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel3, "cell 1 2");
|
||||||
|
|
||||||
|
//---- informationShowDialogLabel ----
|
||||||
|
informationShowDialogLabel.setOptionPane(informationOptionPane);
|
||||||
|
informationShowDialogLabel.setTitleLabel(informationLabel);
|
||||||
|
panel9.add(informationShowDialogLabel, "cell 2 2");
|
||||||
|
|
||||||
|
//---- questionLabel ----
|
||||||
|
questionLabel.setText("Question");
|
||||||
|
panel9.add(questionLabel, "cell 0 3");
|
||||||
|
|
||||||
|
//======== panel4 ========
|
||||||
|
{
|
||||||
|
panel4.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel4.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- questionOptionPane ----
|
||||||
|
questionOptionPane.setMessageType(JOptionPane.QUESTION_MESSAGE);
|
||||||
|
questionOptionPane.setOptionType(JOptionPane.YES_NO_CANCEL_OPTION);
|
||||||
|
questionOptionPane.setMessage("Answer the question. What question? Don't know. Just writing useless text to make this longer than 80 characters.");
|
||||||
|
panel4.add(questionOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel4, "cell 1 3");
|
||||||
|
|
||||||
|
//---- questionShowDialogLabel ----
|
||||||
|
questionShowDialogLabel.setOptionPane(questionOptionPane);
|
||||||
|
questionShowDialogLabel.setTitleLabel(questionLabel);
|
||||||
|
panel9.add(questionShowDialogLabel, "cell 2 3");
|
||||||
|
|
||||||
|
//---- warningLabel ----
|
||||||
|
warningLabel.setText("Warning");
|
||||||
|
panel9.add(warningLabel, "cell 0 4");
|
||||||
|
|
||||||
|
//======== panel5 ========
|
||||||
|
{
|
||||||
|
panel5.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel5.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- warningOptionPane ----
|
||||||
|
warningOptionPane.setMessageType(JOptionPane.WARNING_MESSAGE);
|
||||||
|
warningOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
||||||
|
warningOptionPane.setMessage("<html>I like <b>bold</b>,<br> and I like <i>italic</i>,<br> and I like to have<br> many lines.<br> Lots of lines.");
|
||||||
|
panel5.add(warningOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel5, "cell 1 4");
|
||||||
|
|
||||||
|
//---- warningShowDialogLabel ----
|
||||||
|
warningShowDialogLabel.setOptionPane(warningOptionPane);
|
||||||
|
warningShowDialogLabel.setTitleLabel(warningLabel);
|
||||||
|
panel9.add(warningShowDialogLabel, "cell 2 4");
|
||||||
|
|
||||||
|
//---- inputLabel ----
|
||||||
|
inputLabel.setText("Input");
|
||||||
|
panel9.add(inputLabel, "cell 0 5");
|
||||||
|
|
||||||
|
//======== panel7 ========
|
||||||
|
{
|
||||||
|
panel7.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel7.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- inputOptionPane ----
|
||||||
|
inputOptionPane.setWantsInput(true);
|
||||||
|
inputOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
||||||
|
inputOptionPane.setMessage("Enter whatever you want:");
|
||||||
|
panel7.add(inputOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel7, "cell 1 5");
|
||||||
|
|
||||||
|
//---- inputShowDialogLabel ----
|
||||||
|
inputShowDialogLabel.setOptionPane(inputOptionPane);
|
||||||
|
inputShowDialogLabel.setTitleLabel(inputLabel);
|
||||||
|
panel9.add(inputShowDialogLabel, "cell 2 5");
|
||||||
|
|
||||||
|
//---- inputIconLabel ----
|
||||||
|
inputIconLabel.setText("Input + icon");
|
||||||
|
panel9.add(inputIconLabel, "cell 0 6");
|
||||||
|
|
||||||
|
//======== panel8 ========
|
||||||
|
{
|
||||||
|
panel8.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel8.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- inputIconOptionPane ----
|
||||||
|
inputIconOptionPane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
inputIconOptionPane.setWantsInput(true);
|
||||||
|
inputIconOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
||||||
|
inputIconOptionPane.setMessage("Enter something:");
|
||||||
|
panel8.add(inputIconOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel8, "cell 1 6");
|
||||||
|
|
||||||
|
//---- inputIconShowDialogLabel ----
|
||||||
|
inputIconShowDialogLabel.setTitleLabel(inputIconLabel);
|
||||||
|
inputIconShowDialogLabel.setOptionPane(inputIconOptionPane);
|
||||||
|
panel9.add(inputIconShowDialogLabel, "cell 2 6");
|
||||||
|
|
||||||
|
//---- customLabel ----
|
||||||
|
customLabel.setText("Custom");
|
||||||
|
panel9.add(customLabel, "cell 0 7");
|
||||||
|
|
||||||
|
//======== panel6 ========
|
||||||
|
{
|
||||||
|
panel6.setBorder(LineBorder.createGrayLineBorder());
|
||||||
|
panel6.setLayout(new BorderLayout());
|
||||||
|
|
||||||
|
//---- customOptionPane ----
|
||||||
|
customOptionPane.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
||||||
|
panel6.add(customOptionPane, BorderLayout.CENTER);
|
||||||
|
}
|
||||||
|
panel9.add(panel6, "cell 1 7");
|
||||||
|
|
||||||
|
//---- customShowDialogLabel ----
|
||||||
|
customShowDialogLabel.setOptionPane(customOptionPane);
|
||||||
|
customShowDialogLabel.setTitleLabel(customLabel);
|
||||||
|
panel9.add(customShowDialogLabel, "cell 2 7");
|
||||||
}
|
}
|
||||||
add(panel1, "cell 1 0");
|
setViewportView(panel9);
|
||||||
|
|
||||||
//---- plainShowDialogLabel ----
|
|
||||||
plainShowDialogLabel.setOptionPane(plainOptionPane);
|
|
||||||
plainShowDialogLabel.setTitleLabel(plainLabel);
|
|
||||||
add(plainShowDialogLabel, "cell 2 0");
|
|
||||||
|
|
||||||
//---- errorLabel ----
|
|
||||||
errorLabel.setText("Error");
|
|
||||||
add(errorLabel, "cell 0 1");
|
|
||||||
|
|
||||||
//======== panel2 ========
|
|
||||||
{
|
|
||||||
panel2.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel2.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- errorOptionPane ----
|
|
||||||
errorOptionPane.setMessageType(JOptionPane.ERROR_MESSAGE);
|
|
||||||
errorOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
|
||||||
errorOptionPane.setMessage("Your PC ran into a problem. Buy a new one.");
|
|
||||||
panel2.add(errorOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel2, "cell 1 1");
|
|
||||||
|
|
||||||
//---- errorShowDialogLabel ----
|
|
||||||
errorShowDialogLabel.setTitleLabel(errorLabel);
|
|
||||||
errorShowDialogLabel.setOptionPane(errorOptionPane);
|
|
||||||
add(errorShowDialogLabel, "cell 2 1");
|
|
||||||
|
|
||||||
//---- informationLabel ----
|
|
||||||
informationLabel.setText("Information");
|
|
||||||
add(informationLabel, "cell 0 2");
|
|
||||||
|
|
||||||
//======== panel3 ========
|
|
||||||
{
|
|
||||||
panel3.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel3.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- informationOptionPane ----
|
|
||||||
informationOptionPane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
|
|
||||||
informationOptionPane.setOptionType(JOptionPane.YES_NO_OPTION);
|
|
||||||
informationOptionPane.setMessage("Text with\nmultiple lines\n(use \\n to separate lines)");
|
|
||||||
panel3.add(informationOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel3, "cell 1 2");
|
|
||||||
|
|
||||||
//---- informationShowDialogLabel ----
|
|
||||||
informationShowDialogLabel.setOptionPane(informationOptionPane);
|
|
||||||
informationShowDialogLabel.setTitleLabel(informationLabel);
|
|
||||||
add(informationShowDialogLabel, "cell 2 2");
|
|
||||||
|
|
||||||
//---- questionLabel ----
|
|
||||||
questionLabel.setText("Question");
|
|
||||||
add(questionLabel, "cell 0 3");
|
|
||||||
|
|
||||||
//======== panel4 ========
|
|
||||||
{
|
|
||||||
panel4.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel4.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- questionOptionPane ----
|
|
||||||
questionOptionPane.setMessageType(JOptionPane.QUESTION_MESSAGE);
|
|
||||||
questionOptionPane.setOptionType(JOptionPane.YES_NO_CANCEL_OPTION);
|
|
||||||
questionOptionPane.setMessage("Answer the question. What question? Don't know. Just writing useless text to make this longer than 80 characters.");
|
|
||||||
panel4.add(questionOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel4, "cell 1 3");
|
|
||||||
|
|
||||||
//---- questionShowDialogLabel ----
|
|
||||||
questionShowDialogLabel.setOptionPane(questionOptionPane);
|
|
||||||
questionShowDialogLabel.setTitleLabel(questionLabel);
|
|
||||||
add(questionShowDialogLabel, "cell 2 3");
|
|
||||||
|
|
||||||
//---- warningLabel ----
|
|
||||||
warningLabel.setText("Warning");
|
|
||||||
add(warningLabel, "cell 0 4");
|
|
||||||
|
|
||||||
//======== panel5 ========
|
|
||||||
{
|
|
||||||
panel5.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel5.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- warningOptionPane ----
|
|
||||||
warningOptionPane.setMessageType(JOptionPane.WARNING_MESSAGE);
|
|
||||||
warningOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
|
||||||
warningOptionPane.setMessage("<html>I like <b>bold</b>,<br> and I like <i>italic</i>,<br> and I like to have<br> many lines.<br> Lots of lines.");
|
|
||||||
panel5.add(warningOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel5, "cell 1 4");
|
|
||||||
|
|
||||||
//---- warningShowDialogLabel ----
|
|
||||||
warningShowDialogLabel.setOptionPane(warningOptionPane);
|
|
||||||
warningShowDialogLabel.setTitleLabel(warningLabel);
|
|
||||||
add(warningShowDialogLabel, "cell 2 4");
|
|
||||||
|
|
||||||
//---- inputLabel ----
|
|
||||||
inputLabel.setText("Input");
|
|
||||||
add(inputLabel, "cell 0 5");
|
|
||||||
|
|
||||||
//======== panel7 ========
|
|
||||||
{
|
|
||||||
panel7.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel7.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- inputOptionPane ----
|
|
||||||
inputOptionPane.setWantsInput(true);
|
|
||||||
inputOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
|
||||||
inputOptionPane.setMessage("Enter whatever you want:");
|
|
||||||
panel7.add(inputOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel7, "cell 1 5");
|
|
||||||
|
|
||||||
//---- inputShowDialogLabel ----
|
|
||||||
inputShowDialogLabel.setOptionPane(inputOptionPane);
|
|
||||||
inputShowDialogLabel.setTitleLabel(inputLabel);
|
|
||||||
add(inputShowDialogLabel, "cell 2 5");
|
|
||||||
|
|
||||||
//---- inputIconLabel ----
|
|
||||||
inputIconLabel.setText("Input + icon");
|
|
||||||
add(inputIconLabel, "cell 0 6");
|
|
||||||
|
|
||||||
//======== panel8 ========
|
|
||||||
{
|
|
||||||
panel8.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel8.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- inputIconOptionPane ----
|
|
||||||
inputIconOptionPane.setMessageType(JOptionPane.INFORMATION_MESSAGE);
|
|
||||||
inputIconOptionPane.setWantsInput(true);
|
|
||||||
inputIconOptionPane.setOptionType(JOptionPane.OK_CANCEL_OPTION);
|
|
||||||
inputIconOptionPane.setMessage("Enter something:");
|
|
||||||
panel8.add(inputIconOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel8, "cell 1 6");
|
|
||||||
|
|
||||||
//---- inputIconShowDialogLabel ----
|
|
||||||
inputIconShowDialogLabel.setTitleLabel(inputIconLabel);
|
|
||||||
inputIconShowDialogLabel.setOptionPane(inputIconOptionPane);
|
|
||||||
add(inputIconShowDialogLabel, "cell 2 6");
|
|
||||||
|
|
||||||
//---- customLabel ----
|
|
||||||
customLabel.setText("Custom");
|
|
||||||
add(customLabel, "cell 0 7");
|
|
||||||
|
|
||||||
//======== panel6 ========
|
|
||||||
{
|
|
||||||
panel6.setBorder(LineBorder.createGrayLineBorder());
|
|
||||||
panel6.setLayout(new BorderLayout());
|
|
||||||
|
|
||||||
//---- customOptionPane ----
|
|
||||||
customOptionPane.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
|
||||||
panel6.add(customOptionPane, BorderLayout.CENTER);
|
|
||||||
}
|
|
||||||
add(panel6, "cell 1 7");
|
|
||||||
|
|
||||||
//---- customShowDialogLabel ----
|
|
||||||
customShowDialogLabel.setOptionPane(customOptionPane);
|
|
||||||
customShowDialogLabel.setTitleLabel(customLabel);
|
|
||||||
add(customShowDialogLabel, "cell 2 7");
|
|
||||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
JFDML JFormDesigner: "7.0.0.0.194" Java: "11.0.2" encoding: "UTF-8"
|
JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8"
|
||||||
|
|
||||||
new FormModel {
|
new FormModel {
|
||||||
contentType: "form/swing"
|
contentType: "form/swing"
|
||||||
@@ -6,240 +6,244 @@ new FormModel {
|
|||||||
auxiliary() {
|
auxiliary() {
|
||||||
"JavaCodeGenerator.defaultVariableLocal": true
|
"JavaCodeGenerator.defaultVariableLocal": true
|
||||||
}
|
}
|
||||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||||
"$layoutConstraints": "flowy,ltr,insets dialog,hidemode 3"
|
|
||||||
"$columnConstraints": "[][][fill]"
|
|
||||||
"$rowConstraints": "[top][top][top][top][top][top][top][top]"
|
|
||||||
} ) {
|
|
||||||
name: "this"
|
name: "this"
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
"border": new javax.swing.border.EmptyBorder( 0, 0, 0, 0 )
|
||||||
name: "plainLabel"
|
add( new FormContainer( "com.formdev.flatlaf.demo.ScrollablePanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||||
"text": "Plain"
|
"$layoutConstraints": "flowy,ltr,insets dialog,hidemode 3"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
"$columnConstraints": "[][][fill]"
|
||||||
"value": "cell 0 0"
|
"$rowConstraints": "[top][top][top][top][top][top][top][top]"
|
||||||
} )
|
} ) {
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
name: "panel9"
|
||||||
name: "panel1"
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
"border": &LineBorder0 new javax.swing.border.LineBorder( sfield java.awt.Color gray, 1, false )
|
name: "plainLabel"
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
"text": "Plain"
|
||||||
name: "plainOptionPane"
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"message": "Hello world."
|
"value": "cell 0 0"
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
"value": "cell 1 0"
|
name: "panel1"
|
||||||
} )
|
"border": &LineBorder0 new javax.swing.border.LineBorder( sfield java.awt.Color gray, 1, false )
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
name: "plainShowDialogLabel"
|
name: "plainOptionPane"
|
||||||
"optionPane": new FormReference( "plainOptionPane" )
|
"message": "Hello world."
|
||||||
"titleLabel": new FormReference( "plainLabel" )
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
auxiliary() {
|
"value": "Center"
|
||||||
"JavaCodeGenerator.variableLocal": false
|
} )
|
||||||
}
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
"value": "cell 1 0"
|
||||||
"value": "cell 2 0"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "errorLabel"
|
|
||||||
"text": "Error"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 1"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel2"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "errorOptionPane"
|
|
||||||
"messageType": 0
|
|
||||||
"optionType": 2
|
|
||||||
"message": "Your PC ran into a problem. Buy a new one."
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
"value": "cell 1 1"
|
name: "plainShowDialogLabel"
|
||||||
} )
|
"optionPane": new FormReference( "plainOptionPane" )
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
"titleLabel": new FormReference( "plainLabel" )
|
||||||
name: "errorShowDialogLabel"
|
|
||||||
"titleLabel": new FormReference( "errorLabel" )
|
|
||||||
"optionPane": new FormReference( "errorOptionPane" )
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 1"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "informationLabel"
|
|
||||||
"text": "Information"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 2"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel3"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "informationOptionPane"
|
|
||||||
"messageType": 1
|
|
||||||
"optionType": 0
|
|
||||||
"message": "Text with\nmultiple lines\n(use \\n to separate lines)"
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 2"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "informationShowDialogLabel"
|
|
||||||
"optionPane": new FormReference( "informationOptionPane" )
|
|
||||||
"titleLabel": new FormReference( "informationLabel" )
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 2"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "questionLabel"
|
|
||||||
"text": "Question"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 3"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel4"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "questionOptionPane"
|
|
||||||
"messageType": 3
|
|
||||||
"optionType": 1
|
|
||||||
"message": "Answer the question. What question? Don't know. Just writing useless text to make this longer than 80 characters."
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 3"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "questionShowDialogLabel"
|
|
||||||
"optionPane": new FormReference( "questionOptionPane" )
|
|
||||||
"titleLabel": new FormReference( "questionLabel" )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 3"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "warningLabel"
|
|
||||||
"text": "Warning"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 4"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel5"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "warningOptionPane"
|
|
||||||
"messageType": 2
|
|
||||||
"optionType": 2
|
|
||||||
"message": "<html>I like <b>bold</b>,<br> and I like <i>italic</i>,<br> and I like to have<br> many lines.<br> Lots of lines."
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 4"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "warningShowDialogLabel"
|
|
||||||
"optionPane": new FormReference( "warningOptionPane" )
|
|
||||||
"titleLabel": new FormReference( "warningLabel" )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 4"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "inputLabel"
|
|
||||||
"text": "Input"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 5"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel7"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "inputOptionPane"
|
|
||||||
"wantsInput": true
|
|
||||||
"optionType": 2
|
|
||||||
"message": "Enter whatever you want:"
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 5"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "inputShowDialogLabel"
|
|
||||||
"optionPane": new FormReference( "inputOptionPane" )
|
|
||||||
"titleLabel": new FormReference( "inputLabel" )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 5"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "inputIconLabel"
|
|
||||||
"text": "Input + icon"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 6"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel8"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "inputIconOptionPane"
|
|
||||||
"messageType": 1
|
|
||||||
"wantsInput": true
|
|
||||||
"optionType": 2
|
|
||||||
"message": "Enter something:"
|
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
|
||||||
"value": "Center"
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 6"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "inputIconShowDialogLabel"
|
|
||||||
"titleLabel": new FormReference( "inputIconLabel" )
|
|
||||||
"optionPane": new FormReference( "inputIconOptionPane" )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 6"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
|
||||||
name: "customLabel"
|
|
||||||
"text": "Custom"
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 0 7"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
|
||||||
name: "panel6"
|
|
||||||
"border": #LineBorder0
|
|
||||||
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
|
||||||
name: "customOptionPane"
|
|
||||||
"icon": new com.jformdesigner.model.SwingIcon( 2, "Tree.leafIcon" )
|
|
||||||
auxiliary() {
|
auxiliary() {
|
||||||
"JavaCodeGenerator.variableLocal": false
|
"JavaCodeGenerator.variableLocal": false
|
||||||
}
|
}
|
||||||
}, new FormLayoutConstraints( class java.lang.String ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "Center"
|
"value": "cell 2 0"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "errorLabel"
|
||||||
|
"text": "Error"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 1"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel2"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "errorOptionPane"
|
||||||
|
"messageType": 0
|
||||||
|
"optionType": 2
|
||||||
|
"message": "Your PC ran into a problem. Buy a new one."
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 1"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "errorShowDialogLabel"
|
||||||
|
"titleLabel": new FormReference( "errorLabel" )
|
||||||
|
"optionPane": new FormReference( "errorOptionPane" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 1"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "informationLabel"
|
||||||
|
"text": "Information"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 2"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel3"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "informationOptionPane"
|
||||||
|
"messageType": 1
|
||||||
|
"optionType": 0
|
||||||
|
"message": "Text with\nmultiple lines\n(use \\n to separate lines)"
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 2"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "informationShowDialogLabel"
|
||||||
|
"optionPane": new FormReference( "informationOptionPane" )
|
||||||
|
"titleLabel": new FormReference( "informationLabel" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 2"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "questionLabel"
|
||||||
|
"text": "Question"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 3"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel4"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "questionOptionPane"
|
||||||
|
"messageType": 3
|
||||||
|
"optionType": 1
|
||||||
|
"message": "Answer the question. What question? Don't know. Just writing useless text to make this longer than 80 characters."
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 3"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "questionShowDialogLabel"
|
||||||
|
"optionPane": new FormReference( "questionOptionPane" )
|
||||||
|
"titleLabel": new FormReference( "questionLabel" )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 3"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "warningLabel"
|
||||||
|
"text": "Warning"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 4"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel5"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "warningOptionPane"
|
||||||
|
"messageType": 2
|
||||||
|
"optionType": 2
|
||||||
|
"message": "<html>I like <b>bold</b>,<br> and I like <i>italic</i>,<br> and I like to have<br> many lines.<br> Lots of lines."
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 4"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "warningShowDialogLabel"
|
||||||
|
"optionPane": new FormReference( "warningOptionPane" )
|
||||||
|
"titleLabel": new FormReference( "warningLabel" )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 4"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "inputLabel"
|
||||||
|
"text": "Input"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 5"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel7"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "inputOptionPane"
|
||||||
|
"wantsInput": true
|
||||||
|
"optionType": 2
|
||||||
|
"message": "Enter whatever you want:"
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 5"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "inputShowDialogLabel"
|
||||||
|
"optionPane": new FormReference( "inputOptionPane" )
|
||||||
|
"titleLabel": new FormReference( "inputLabel" )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 5"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "inputIconLabel"
|
||||||
|
"text": "Input + icon"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 6"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel8"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "inputIconOptionPane"
|
||||||
|
"messageType": 1
|
||||||
|
"wantsInput": true
|
||||||
|
"optionType": 2
|
||||||
|
"message": "Enter something:"
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 6"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "inputIconShowDialogLabel"
|
||||||
|
"titleLabel": new FormReference( "inputIconLabel" )
|
||||||
|
"optionPane": new FormReference( "inputIconOptionPane" )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 6"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "customLabel"
|
||||||
|
"text": "Custom"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 7"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||||
|
name: "panel6"
|
||||||
|
"border": #LineBorder0
|
||||||
|
add( new FormComponent( "javax.swing.JOptionPane" ) {
|
||||||
|
name: "customOptionPane"
|
||||||
|
"icon": new com.jformdesigner.model.SwingIcon( 2, "Tree.leafIcon" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
}, new FormLayoutConstraints( class java.lang.String ) {
|
||||||
|
"value": "Center"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 7"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
||||||
|
name: "customShowDialogLabel"
|
||||||
|
"optionPane": new FormReference( "customOptionPane" )
|
||||||
|
"titleLabel": new FormReference( "customLabel" )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 7"
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 1 7"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "com.formdev.flatlaf.testing.FlatOptionPaneTest$ShowDialogLinkLabel" ) {
|
|
||||||
name: "customShowDialogLabel"
|
|
||||||
"optionPane": new FormReference( "customOptionPane" )
|
|
||||||
"titleLabel": new FormReference( "customLabel" )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 2 7"
|
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( null ) {
|
}, new FormLayoutConstraints( null ) {
|
||||||
"location": new java.awt.Point( 0, 0 )
|
"location": new java.awt.Point( 0, 0 )
|
||||||
"size": new java.awt.Dimension( 790, 920 )
|
"size": new java.awt.Dimension( 840, 900 )
|
||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user