Demo: OptionPanePanel: use EmptyBorder instead of null-border to make sure that it is not replaces when switching LaF

This commit is contained in:
Karl Tauber
2019-09-15 11:23:08 +02:00
parent 0015a48ceb
commit f939654309
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ class OptionPanePanel
OptionPanePanel.ShowDialogLinkLabel customShowDialogLabel = new OptionPanePanel.ShowDialogLinkLabel(); OptionPanePanel.ShowDialogLinkLabel customShowDialogLabel = new OptionPanePanel.ShowDialogLinkLabel();
//======== this ======== //======== this ========
setBorder(null); setBorder(BorderFactory.createEmptyBorder());
//======== panel9 ======== //======== panel9 ========
{ {

View File

@@ -8,7 +8,7 @@ new FormModel {
} }
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) { add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
name: "this" name: "this"
"border": sfield com.jformdesigner.model.FormObject NULL_VALUE "border": new javax.swing.border.EmptyBorder( 0, 0, 0, 0 )
add( new FormContainer( "com.formdev.flatlaf.demo.ScrollablePanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "com.formdev.flatlaf.demo.ScrollablePanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$layoutConstraints": "flowy,hidemode 3" "$layoutConstraints": "flowy,hidemode 3"
"$columnConstraints": "[][][fill]" "$columnConstraints": "[][][fill]"