What steps will reproduce the problem?
1. Make and compile following code
//######## Hosts
JLabel label = new JLabel("Hosts*:");
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 0;
c.gridy = 0;
panel1.add(label, c);
final JTextField hosts= new JTextField(50);
c.gridx = 1;
c.gridy = 0;
panel1.add(hosts);
JLabel label1 = new JLabel("See help!");
c.gridx = 2;
c.gridy = 0;
panel1.add(label1, c);
//######### Ports
label = new JLabel("Ports*:");
c.gridx = 0;
c.gridy = 1;
panel1.add(label, c);
final JTextField ports= new JTextField(50);
c.gridx = 1;
c.gridy = 1;
panel1.add(ports);
label1 = new JLabel("See help!");
c.gridx = 2;
c.gridy = 1;
panel1.add(label1, c);
2. Start it and you see the screenshot atached
3.
What is the expected output? What do you see instead?
I expect all the Text fields to be one under the other in a column.
What version of the product are you using? On what operating system? What
JRE version?
I am using the version 0.2 on Windows 7 with Java JDK 8.0.
Please provide any additional information below.
Original issue reported on code.google.com by vzkrastev@googlemail.com on 2 Apr 2014 at 3:13
Original issue reported on code.google.com by
vzkrastev@googlemail.com
on 2 Apr 2014 at 3:13Attachments: