Re: JTable and FlowLayout
"Wolf Paulus" <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Organization | Carlsbad Cubes |
| Message-ID | <[email protected]> |
Horatiu, Try to set the layout attr. like in those samples: Layout="FlowLayout(FlowLayout.LEFT,5,0)" Layout="FlowLayout(FlowLayout.RIGHT)" Layout="FlowLayout(FlowLayout.LEFT)" "Horatiu Parfene" <[email protected]> wrote in message news:[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