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
|
```java
|
||||||
public class SampleDialogWrapper extends DialogWrapper {
|
public class SampleDialogWrapper extends DialogWrapper {
|
||||||
|
|
||||||
public SampleDialogWrapper() {
|
public SampleDialogWrapper() {
|
||||||
super(true); // use current window as parent
|
super(true); // use current window as parent
|
||||||
setTitle("Test DialogWrapper");
|
setTitle("Test DialogWrapper");
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
protected JComponent createCenterPanel() {
|
protected JComponent createCenterPanel() {
|
||||||
JPanel dialogPanel = new JPanel(new BorderLayout());
|
JPanel dialogPanel = new JPanel(new BorderLayout());
|
||||||
|
|
||||||
JLabel label = new JLabel("testing");
|
JLabel label = new JLabel("Testing");
|
||||||
label.setPreferredSize(new Dimension(100, 100));
|
label.setPreferredSize(new Dimension(100, 100));
|
||||||
dialogPanel.add(label, BorderLayout.CENTER);
|
dialogPanel.add(label, BorderLayout.CENTER);
|
||||||
|
|
||||||
return dialogPanel;
|
return dialogPanel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user