grid layout - Java GridLayout -
Is there a way to add elements to gridlight that connect them horizontally instead of vertically?
Hopefully I made my question clear.
I would suggest and
this is a lot like a gridlate, but With GridBag Conventions you can specify the component's X and Y coordinates, and you can specify the column and row span.
This will look something like this:
Import java.awt.GridBagConstraints; Import java.awt.GridBagLayout; Grid background layout = new gridboutout (); Gridbag Consultants c = New Gridbag Consultants (); Zpean panel = new zpn (); JAlabel label = new JLABEL ("EFU"); Panel.setLayout (layout); C.gridx = 0; C. Grady = 0; Panel.add (label, c);
Comments
Post a Comment