JTable and FlowLayout

Horatiu Parfene <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
Hello ALL,

I ran into a problem when atempting to set a constraint to the 
FlowLayout...(the CENTER setting means LEFT, RIGHT is RIGHT and default 
is CENTER)..

here is an example:

<?xml version="1.0" encoding="UTF-8"?>
<frame size="800, 600">
<vbox>
    <vbox border="TitledBorder(Source)">
        <panel layout="flowlayout(LEFT)" 
border="TitledBorder(ApplicationLEFT)">
            <label text="Name:" />
           
            <textfield text="test"></textfield>
           
            <label text="Version:" />
           
            <textfield text="test"></textfield>
           
        </panel>
        <panel layout="FlowLayout(CENTER)" 
border="TitledBorder(LocationCENTER)">   
            <label text="Name:" size="100,20"/>
           
            <textfield text="test"></textfield>
           
            <label text="Version:" />
           
            <textfield text="test"></textfield>
        </panel>
        <panel layout="FlowLayout(RIGHT)" 
border="TitledBorder(URLListRIGHT)">           
            <scrollPane >
                <table name="tabel" ShowHorizontalLines="true" 
ShowVerticalLines="true" >
                </table>               
            </scrollPane>
        </panel>
    </vbox>
   
    <vbox border="TitledBorder(Destination)">
        <panel layout="flowlayout" 
border="TitledBorder(Application)">           
        </panel>
        <panel layout="flowlayout" border="TitledBorder(Location)">
        </panel>
        <panel layout="flowlayout" 
border="TitledBorder(URLList)">           
        </panel>
    </vbox>
</vbox>
</frame>


Try this code with a simple class and see the output...

import org.swixml.*;
/**
 *
 * @author  hparfene
 */
public class deTest extends SwingEngine{
   
    /** Creates a new instance of deTest */
    public deTest() {
        try{
            render("src/out/PanelService.xml").setVisible(true);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
  
    public static void main(String[] args) {
        new deTest();
    }
   
}


My problem is that i cannot use the Table and FlowLayout as i would like to.

Do you have any advice?

Thanks a lot,
Horatiu

_______________________________________________
Forum mailing list
[email protected]
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.