Skip to content
Snippets Groups Projects
Commit b619a405 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Improving resizing of bus window

parent 696c0537
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -95,7 +95,8 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener { ...@@ -95,7 +95,8 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener {
GridBagConstraints c2 = new GridBagConstraints(); GridBagConstraints c2 = new GridBagConstraints();
setFont(new Font("Helvetica", Font.PLAIN, 14)); setFont(new Font("Helvetica", Font.PLAIN, 14));
c.setLayout(gridbag0); //c.setLayout(gridbag0);
c.setLayout(new BorderLayout());
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
...@@ -174,10 +175,10 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener { ...@@ -174,10 +175,10 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener {
panel2.add(refAttacks, c2); panel2.add(refAttacks, c2);
// main panel; // main panel;
c0.gridheight = 10; /*c0.gridheight = 10;
c0.weighty = 1.0; c0.weighty = 1.0;
c0.weightx = 1.0; c0.weightx = 1.0;
c0.fill = GridBagConstraints.HORIZONTAL; c0.fill = GridBagConstraints.BOTH;
c0.gridwidth = GridBagConstraints.REMAINDER; //end row c0.gridwidth = GridBagConstraints.REMAINDER; //end row
c.add(panel2, c0); c.add(panel2, c0);
...@@ -186,6 +187,18 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener { ...@@ -186,6 +187,18 @@ public class JDialogBUSNode extends JDialogBase implements ActionListener {
c0.fill = GridBagConstraints.HORIZONTAL; c0.fill = GridBagConstraints.HORIZONTAL;
initButtons(c0, c, this); initButtons(c0, c, this);
// main panel;
/*c0.gridwidth = 1;
c0.gridheight = 1;
c0.fill = GridBagConstraints.HORIZONTAL;
initButtons(c0, c, this);*/
c.add(panel2, BorderLayout.CENTER);
initButtons(c, this);
JPanel panelButton = initBasicButtons(this);
c.add(panelButton, BorderLayout.SOUTH);
} }
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment