forked from jasder/antlr
Tweak TreeViewer layout since the zoom slider only affects the visual layout
This commit is contained in:
parent
9a75c629d2
commit
2fe7804ee3
|
@ -314,6 +314,7 @@ public class TreeViewer extends JComponent {
|
||||||
|
|
||||||
// Add button to bottom
|
// Add button to bottom
|
||||||
JPanel bottomPanel = new JPanel(new BorderLayout(0,0));
|
JPanel bottomPanel = new JPanel(new BorderLayout(0,0));
|
||||||
|
contentPane.add(bottomPanel, BorderLayout.SOUTH);
|
||||||
|
|
||||||
JButton ok = new JButton("OK");
|
JButton ok = new JButton("OK");
|
||||||
ok.addActionListener(
|
ok.addActionListener(
|
||||||
|
@ -399,7 +400,6 @@ public class TreeViewer extends JComponent {
|
||||||
treePanel, contentPane);
|
treePanel, contentPane);
|
||||||
|
|
||||||
mainPane.add(splitPane, BorderLayout.CENTER);
|
mainPane.add(splitPane, BorderLayout.CENTER);
|
||||||
mainPane.add(bottomPanel, BorderLayout.SOUTH);
|
|
||||||
|
|
||||||
dialog.setContentPane(mainPane);
|
dialog.setContentPane(mainPane);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue