Hi all,
I've found a strange behaviour about TableHeader of a table contained
inside an InternalFrame.
If I try to iconify the frame and then to restore it, the TableHeader
disappears.
I have attached a snipped for reproduce the problem...
Thanks in advance!
Bye,
Daniele Bellandi
LSCT - Direzione sistemi informativi
import com.ulcjava.base.application.AbstractApplication;
import com.ulcjava.base.application.ULCDesktopPane;
import com.ulcjava.base.application.ULCFrame;
import com.ulcjava.base.application.ULCInternalFrame;
import com.ulcjava.base.application.ULCListSelectionModel;
import com.ulcjava.base.application.ULCScrollPane;
import com.ulcjava.base.application.ULCTable;
import com.ulcjava.base.application.util.Dimension;
import com.ulcjava.base.development.DevelopmentRunner;
public class ULCTableSample extends AbstractApplication {
public void start() {
ULCFrame mainFrame = new ULCFrame("ULC Table Sample");
ULCInternalFrame internalFrame = new ULCInternalFrame("Table",
true,true,true, true);
internalFrame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
internalFrame.setSize(new Dimension(200, 200));
mainFrame.setSize(new Dimension(800, 600));
ULCTable table = new ULCTable(new Object[][]{{"(0,0)","(0,1)"},
{"(1,0)","(1,1)"}, {"(2,0)","(2,1)"}},new String []{ "Column 1", "Column
2"});
table.getTableHeader().setResizingAllowed(false);
table.setAutoResizeMode(ULCTable.AUTO_RESIZE_ALL_COLUMNS);
table.setSelectionMode(ULCListSelectionModel.SINGLE_SELECTION);
internalFrame.setContentPane(new ULCScrollPane(table));
internalFrame.setVisible(true);
ULCDesktopPane fDesktopPane = new ULCDesktopPane();
fDesktopPane.add(internalFrame);
mainFrame.setContentPane(new ULCScrollPane(fDesktopPane));
mainFrame.setVisible(true);
}
public static void main(String[] args) {
DevelopmentRunner.setApplicationClass(ULCTableSample.class);
DevelopmentRunner.run();
}
}