Could anyone perhaps provide me with a link to a tutorial / package that allows the drawing of an HTML like table grid layout? I've googled, but I just keep finding JTable, which won't work for me, and Google keeps wanting to change "java awt table" to "java swt table".
Asked
Active
Viewed 1,990 times
0
-
1What do you really want to do? Drawing a table yourself, or arranging components in a table-like layout? – Paŭlo Ebermann Feb 19 '11 at 02:28
-
1Why on earth would you be using AWT in this millennium? – Andrew Thompson Feb 19 '11 at 03:17
-
@Paŭlo Ebermann: I want to create a pseudo spreadsheet layout. – Josh Feb 19 '11 at 15:51
-
@Andrew Thompson: It is the only drawing method supported by the device I'm programming for. – Josh Feb 19 '11 at 15:52
1 Answers
1
That isn't easy.
I think GridBagLayout is the closes layout manager, but it is advanced. Remember that you can nest layouts. You can use a layout, then put panels in it and have another layout on the panel.

Jonas
- 121,568
- 97
- 310
- 388
-
-
@Josh: Most of the layout managers are part of AWT and not Swing, see http://download.oracle.com/javase/7/docs/api/java/awt/GridBagLayout.html – Jonas Feb 19 '11 at 01:50