amertkara / seaglass

Automatically exported from code.google.com/p/seaglass
0 stars 0 forks source link

GridBagLayout ist not properly working #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry my fehler....sorry you can cancel it

Original comment by vzkrastev@googlemail.com on 2 Apr 2014 at 3:37