Hello,
 
This is a known bug :
 
http://www.canoo.com/jira/browse/UBA-7865 
 
It will be fixed in the next release. In the meantime you can use the
workaround given in the above issue.

Thanks and regards,

Janak

-----------------------------------------
Janak Mulani

email: [email protected]
url: http://www.canoo.com <http://www.canoo.com/> 

Beyond AJAX - Java Rich Internet Applications

http://www.canoo.com/ulc
----------------------------------------- 

 


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Bellandi,
Daniele
Sent: Tuesday, January 12, 2010 8:53 PM
To: [email protected]
Subject: [ULC-developer] Strange behaviour in ULCTable inside
ULCInternalFrame



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();

    }

}

 

 

 

 

Reply via email to