Dear The Expert,
How to create 3 columns and 2 rows tablelayout in Java?
thanks & regards
[code]GridLayout layout = new GridLayout(2, 3);[/code]
Although then all cells will be the same size - if that is not what you want use a GridBagLayout (search for tutorial) or a third party layout like (surprise) TableLayout or MiGLayout.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.