@Test public void testStrechItemToComponent() { System.out.println("strechItemToComponent"); JComponent component = new JCheckBox(); JComponent item = new JCheckBox(); GuiBuilderHelper.strechItemToComponent(component, item); }
public static void strechItemToComponent(JComponent component, JComponent item) { int iWidth = (int) item.getPreferredSize().getWidth(); int iHeight = (int) component.getPreferredSize().getHeight(); item.setPreferredSize(new Dimension(iWidth, iHeight)); }
GuiBuilderHelper { public static void strechItemToComponent(JComponent component, JComponent item) { int iWidth = (int) item.getPreferredSize().getWidth(); int iHeight = (int) component.getPreferredSize().getHeight(); item.setPreferredSize(new Dimension(iWidth, iHeight)); } }
GuiBuilderHelper { public static void strechItemToComponent(JComponent component, JComponent item) { int iWidth = (int) item.getPreferredSize().getWidth(); int iHeight = (int) component.getPreferredSize().getHeight(); item.setPreferredSize(new Dimension(iWidth, iHeight)); }  }
GuiBuilderHelper { public static void strechItemToComponent(JComponent component, JComponent item) { int iWidth = (int) item.getPreferredSize().getWidth(); int iHeight = (int) component.getPreferredSize().getHeight(); item.setPreferredSize(new Dimension(iWidth, iHeight)); }  static JScrollPane getTextAreaScrollPaneContainer(JTextArea textArea, int nbLines); static void strechItemToComponent(JComponent component, JComponent item); static JPanel getComponentWithMargin(Component component, int top, int left, int bottom, int right); }
GuiBuilderHelper { public static void strechItemToComponent(JComponent component, JComponent item) { int iWidth = (int) item.getPreferredSize().getWidth(); int iHeight = (int) component.getPreferredSize().getHeight(); item.setPreferredSize(new Dimension(iWidth, iHeight)); }  static JScrollPane getTextAreaScrollPaneContainer(JTextArea textArea, int nbLines); static void strechItemToComponent(JComponent component, JComponent item); static JPanel getComponentWithMargin(Component component, int top, int left, int bottom, int right);  }