mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
minor code cleanup:
- remove redundant semicolon - create array with curly
This commit is contained in:
@@ -155,7 +155,7 @@ public class FlatComponents2Test
|
||||
|
||||
private void initTableEditors( JTable table ) {
|
||||
TableColumnModel cm = table.getColumnModel();
|
||||
String[] months = new String[] {
|
||||
String[] months = {
|
||||
"January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"
|
||||
};
|
||||
@@ -427,7 +427,7 @@ public class FlatComponents2Test
|
||||
if( !(sel instanceof String) )
|
||||
return;
|
||||
|
||||
JTree[] trees = new JTree[] { tree1, tree2, xTree1 };
|
||||
JTree[] trees = { tree1, tree2, xTree1 };
|
||||
switch( (String) sel ) {
|
||||
case "default":
|
||||
for( JTree tree : trees )
|
||||
@@ -1321,19 +1321,19 @@ public class FlatComponents2Test
|
||||
private class TestTableModel
|
||||
extends AbstractTableModel
|
||||
{
|
||||
private final String[] columnNames = new String[] {
|
||||
private final String[] columnNames = {
|
||||
"Not editable", "Text", "Combo", "Combo Editable", "Integer", "Boolean"
|
||||
};
|
||||
|
||||
private final Class<?>[] columnTypes = new Class<?>[] {
|
||||
private final Class<?>[] columnTypes = {
|
||||
Object.class, Object.class, String.class, String.class, Integer.class, Boolean.class
|
||||
};
|
||||
|
||||
private final boolean[] columnEditable = new boolean[] {
|
||||
private final boolean[] columnEditable = {
|
||||
false, true, true, true, true, true
|
||||
};
|
||||
|
||||
private final Object[][] rows = new Object[][] {
|
||||
private final Object[][] rows = {
|
||||
{ "item 1", "item 1b", "January", "July", 123, null },
|
||||
{ "item 2", "item 2b", "February", "August", 456, true },
|
||||
{ "item 3", null, "March", null, null, null },
|
||||
|
||||
@@ -942,7 +942,7 @@ public class FlatContainerTest
|
||||
TabPlacement( int value ) {
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//---- enum TabIconPlacement ----------------------------------------------
|
||||
|
||||
@@ -957,7 +957,7 @@ public class FlatContainerTest
|
||||
TabIconPlacement( int value ) {
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//---- class Tab1Panel ----------------------------------------------------
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ public class FlatPaintingStringTest
|
||||
return (float) -(y - (int) y);
|
||||
};
|
||||
|
||||
float[] scaleFactors = new float[] { 1f, 1.25f, 1.5f, 1.75f, 2f, 2.25f, 2.5f, 3f, 3.5f, 4f };
|
||||
float[] scaleFactors = { 1f, 1.25f, 1.5f, 1.75f, 2f, 2.25f, 2.5f, 3f, 3.5f, 4f };
|
||||
|
||||
for( float scaleFactor : scaleFactors ) {
|
||||
add( new JLabel( String.valueOf( scaleFactor ) ), "newLine" );
|
||||
|
||||
@@ -708,7 +708,7 @@ public class FlatJideOssContainerTest
|
||||
TabPlacement( int value ) {
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//---- enum JideTabAlignment ----------------------------------------------
|
||||
|
||||
@@ -721,7 +721,7 @@ public class FlatJideOssContainerTest
|
||||
JideTabAlignment( int value ) {
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//---- enum JideTabResizeMode ---------------------------------------------
|
||||
|
||||
@@ -736,7 +736,7 @@ public class FlatJideOssContainerTest
|
||||
JideTabResizeMode( int value ) {
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//---- class Tab1Panel ----------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user