I want to make a table which can contain small tables and supports resize.
My solution use a JScrollpane which contains the table and the gridbaglayout contains the row which is a JPanel and this row JPanel contains JLabels and ETable (flowlayout).
How I can solve the resize problem? When I resize the window the column align automatically with the window.
The columns are not aligned correctly in the big table.
I see there J(X)TreeTable or Outline with Custom Look and Feel (Renderer talking about Nimbus L&F, because isn't there correctly used background for Boolean value)
put JComponents (from top) top the JPanel and there use GridBagLayout
put JScrollPane with J(X)TreeTable or Outline put to the Center area
please which type of TreeTable is there used ??? (for calculating PreferredSize of Columns)
EDIT
In this case replace the table with a black box. It's not relevant.
JFrame
has implemented BorderLayout
in the API, then
all JComponent
s from the TOP of the JFrame
put to the separate JPanel
, there you can use GridBagLayout
, this JPanel
put to the NORTH area
e.g. JFrame.add(JPanel, BorderLayout.NORHT)
put black box
to the CENTER area e.g. JFrame.add(black box, BorderLayout.CENTER)