Skip to content

Commit

Permalink
dialog_wrapper.md: Reduce code snippet indent
Browse files Browse the repository at this point in the history
  • Loading branch information
karollewandowski committed Oct 26, 2023
1 parent d150a6b commit 189ec31
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions topics/user_interface_components/dialog_wrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

@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);

return dialogPanel;
}
public SampleDialogWrapper() {
super(true); // use current window as parent
setTitle("Test DialogWrapper");
init();
}

@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);

return dialogPanel;
}
}
```

Expand Down

0 comments on commit 189ec31

Please sign in to comment.