mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
Demo: OptionPanePanel: use EmptyBorder instead of null-border to make sure that it is not replaces when switching LaF
This commit is contained in:
@@ -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 ========
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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]"
|
||||||
|
|||||||
Reference in New Issue
Block a user