mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
15 lines
349 B
Java
15 lines
349 B
Java
import javax.swing.*;
|
|
import java.awt.*;
|
|
|
|
public class ConditionalMethodCallTest extends JPanel {
|
|
public JComponent myRootComponent;
|
|
|
|
public ConditionalMethodCallTest() {
|
|
this(1);
|
|
}
|
|
|
|
public ConditionalMethodCallTest(int i) {
|
|
setLayout(i == 0 ? new GridBagLayout() : new BorderLayout());
|
|
myRootComponent.getComponentCount();
|
|
}
|
|
} |