mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
Demo: apply right-to-left orientation to whole frame
This commit is contained in:
@@ -108,7 +108,7 @@ class BasicComponentsPanel
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"ltr,hidemode 3",
|
||||
"hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "ltr,hidemode 3"
|
||||
"$layoutConstraints": "hidemode 3"
|
||||
"$columnConstraints": "[][][][][][]"
|
||||
"$rowConstraints": "[][][][][][][][][][][][][]"
|
||||
} ) {
|
||||
|
||||
@@ -157,9 +157,7 @@ class ControlBar
|
||||
|
||||
private void rightToLeftChanged() {
|
||||
boolean rightToLeft = rightToLeftCheckBox.isSelected();
|
||||
int tabCount = tabbedPane.getTabCount();
|
||||
for( int i = 0; i < tabCount; i++ )
|
||||
rightToLeftChanged( (Container) tabbedPane.getComponentAt( i ), rightToLeft );
|
||||
rightToLeftChanged( frame, rightToLeft );
|
||||
}
|
||||
|
||||
private void rightToLeftChanged( Container c, boolean rightToLeft ) {
|
||||
|
||||
@@ -49,7 +49,7 @@ class DataComponentsPanel
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"ltr,hidemode 3",
|
||||
"hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[200]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "ltr,hidemode 3"
|
||||
"$layoutConstraints": "hidemode 3"
|
||||
"$columnConstraints": "[][200][200]"
|
||||
"$rowConstraints": "[][::200][::150]"
|
||||
} ) {
|
||||
|
||||
@@ -82,7 +82,7 @@ class MoreComponentsPanel
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"ltr,hidemode 3",
|
||||
"hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "ltr,hidemode 3"
|
||||
"$layoutConstraints": "hidemode 3"
|
||||
"$columnConstraints": "[][][][][][]"
|
||||
"$rowConstraints": "[][][][][][][][][]"
|
||||
} ) {
|
||||
|
||||
@@ -88,7 +88,7 @@ class OptionPanePanel
|
||||
//======== panel9 ========
|
||||
{
|
||||
panel9.setLayout(new MigLayout(
|
||||
"flowy,ltr,hidemode 3",
|
||||
"flowy,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
|
||||
@@ -10,7 +10,7 @@ new FormModel {
|
||||
name: "this"
|
||||
"border": sfield com.jformdesigner.model.FormObject NULL_VALUE
|
||||
add( new FormContainer( "com.formdev.flatlaf.demo.ScrollablePanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "flowy,ltr,hidemode 3"
|
||||
"$layoutConstraints": "flowy,hidemode 3"
|
||||
"$columnConstraints": "[][][fill]"
|
||||
"$rowConstraints": "[top][top][top][top][top][top][top][top]"
|
||||
} ) {
|
||||
|
||||
Reference in New Issue
Block a user