From 754fc11410593b4fca91b3e0cfa07460d83fa02c Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 2 Apr 2012 16:39:29 +0000 Subject: @Hardware Info: change layout from hardware-info GUI git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1065 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/bku/gui/GetHardwareInfoGUI.java | 29 +++++++++++----------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'BKUGuiExt/src/main/java') diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/GetHardwareInfoGUI.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/GetHardwareInfoGUI.java index 9bbe312f..a6aabb2f 100644 --- a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/GetHardwareInfoGUI.java +++ b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/GetHardwareInfoGUI.java @@ -31,6 +31,7 @@ import java.util.Locale; import javax.swing.GroupLayout; import javax.swing.JLabel; import javax.swing.JPanel; +import javax.swing.LayoutStyle; import javax.swing.LayoutStyle.ComponentPlacement; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; @@ -192,22 +193,20 @@ public class GetHardwareInfoGUI extends CardMgmtGUI implements .addComponent(lblTypeContent, GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE) .addComponent(lblAtrContent, GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE))) ); + gl_cardpanel.setVerticalGroup( - gl_cardpanel.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(gl_cardpanel.createSequentialGroup() - .addGroup(gl_cardpanel.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addGroup(gl_cardpanel.createSequentialGroup() - .addGap(2) - .addComponent(lblType, GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE)) - .addComponent(lblTypeContent, GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)) - .addPreferredGap(ComponentPlacement.RELATED) - .addGroup(gl_cardpanel.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(lblAtrContent, GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE) - .addGroup(gl_cardpanel.createSequentialGroup() - .addComponent(lblAtr, GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE) - .addGap(6))) - .addGap(3)) - ); + gl_cardpanel.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(gl_cardpanel.createSequentialGroup() + .addGroup(gl_cardpanel.createParallelGroup(GroupLayout.Alignment.LEADING) + .addComponent(lblType, GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE) + .addComponent(lblTypeContent, GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)) + .addPreferredGap(ComponentPlacement.RELATED) + .addGroup(gl_cardpanel.createParallelGroup(GroupLayout.Alignment.BASELINE) + .addComponent(lblAtrContent, GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE) + .addComponent(lblAtr, GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)) + .addContainerGap()) + ); + cardpanel.setLayout(gl_cardpanel); GroupLayout gl_readerpanel = new GroupLayout(readerpanel); -- cgit v1.2.3