mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
dialog_wrapper.md: Reduce code snippet indent
This commit is contained in:
parent
d150a6b808
commit
189ec31a05
@ -75,23 +75,23 @@ Simple definition of a [`DialogWrapper`](%gh-ic%/platform/platform-api/src/com/i
|
||||
```java
|
||||
public class SampleDialogWrapper extends DialogWrapper {
|
||||
|
||||
public SampleDialogWrapper() {
|
||||
super(true); // use current window as parent
|
||||
setTitle("Test DialogWrapper");
|
||||
init();
|
||||
}
|
||||
public SampleDialogWrapper() {
|
||||
super(true); // use current window as parent
|
||||
setTitle("Test DialogWrapper");
|
||||
init();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected JComponent createCenterPanel() {
|
||||
JPanel dialogPanel = new JPanel(new BorderLayout());
|
||||
@Nullable
|
||||
@Override
|
||||
protected JComponent createCenterPanel() {
|
||||
JPanel dialogPanel = new JPanel(new BorderLayout());
|
||||
|
||||
JLabel label = new JLabel("testing");
|
||||
label.setPreferredSize(new Dimension(100, 100));
|
||||
dialogPanel.add(label, BorderLayout.CENTER);
|
||||
JLabel label = new JLabel("Testing");
|
||||
label.setPreferredSize(new Dimension(100, 100));
|
||||
dialogPanel.add(label, BorderLayout.CENTER);
|
||||
|
||||
return dialogPanel;
|
||||
}
|
||||
return dialogPanel;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user