I'm quite new to Swing and Java.
What I tried to accomplish is panel containing and textfield and below some tags (JLabel).
Unfortunately I am not allowed to post images yet. So here's a scribble of the layout I want to create and what I get: https://www.dropbox.com/s/xsfwijlp77xssmk/panel-in-panel.png?dl=0
add(textFieldTags); tagWrapperPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); tagWrapperPanel.setVisible(true); add(tagWrapperPanel); JLabel label = new JLabel("dsgsdgs"); setForeground(Color.WHITE); setBackground(new Color(96, 153, 58)); setVisible(true); tagWrapperPanel.add(label);
The result is a tiny textfield and a label beside of it. I also tried different layout combinations but without any luck.
Can you suggest me what I am doing wrong?