FR [ 1852796 ] Wasted needed space in swing window

This commit is contained in:
Carlos Ruiz 2007-12-18 04:44:41 +00:00
parent db20340eb8
commit c0c2a9d966
1 changed files with 4 additions and 14 deletions

View File

@ -77,13 +77,8 @@ public final class VPanel extends CTabbedPane
m_tablist.put("main", m_main); m_tablist.put("main", m_main);
this.setBorder(marginBorder); this.setBorder(marginBorder);
CPanel dummy = new CPanel(); CPanel dummy = new CPanel();
FlowLayout f = new FlowLayout(); dummy.setLayout(new BorderLayout());
f.setAlignment(FlowLayout.LEFT); dummy.add(m_main, BorderLayout.NORTH);
f.setHgap(0);
f.setVgap(0);
dummy.setBorder(BorderFactory.createEmptyBorder());
dummy.setLayout(f);
dummy.add(m_main);
dummy.setName(m_main.getName()); dummy.setName(m_main.getName());
this.add(dummy); this.add(dummy);
@ -326,13 +321,8 @@ public final class VPanel extends CTabbedPane
m_tab.setLayout(new GridBagLayout()); m_tab.setLayout(new GridBagLayout());
m_tab.setName(fieldGroup); m_tab.setName(fieldGroup);
CPanel dummy = new CPanel(); CPanel dummy = new CPanel();
FlowLayout f = new FlowLayout(); dummy.setLayout(new BorderLayout());
f.setAlignment(FlowLayout.LEFT); dummy.add(m_tab, BorderLayout.NORTH);
f.setHgap(0);
f.setVgap(0);
dummy.setLayout(f);
dummy.setBorder(BorderFactory.createEmptyBorder());
dummy.add(m_tab);
dummy.setName(m_tab.getName()); dummy.setName(m_tab.getName());
this.add(dummy); this.add(dummy);
m_tablist.put(fieldGroup, m_tab); m_tablist.put(fieldGroup, m_tab);