Re: Use of JTable and tree

"Kerrigan, Philip" <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <431D5499F171D5119AFE0002A55CC2BE018FFA76@itbmm201.exit01.exch.eds.com>
Wolf,

I tried out the suggestion but I get a Swixapplet not found error and a blank page. However it doesn't matter as it still doesn't explain how to use tree and table. For example I ran the  localisation sample program which has a tree defined and it showed a structure including the category sports and the item basketball, but I couldn't find how or where this was being set.

When I tried to use table the GUI simply didn't show anything. With a bit of trial and error I managed to come up with the following code:

 new AssetTable ((JTable)swix.find("table"));

where AssetTable is a class that contains
          table.setModel(new MyTableModel());

and the XML contains
    <scrollPane >
      <table id="table" name="table" AutoCreateColumnsFromModel="true" />
    </scrollPane>

This shows the data from my model in the GUI but I still have 2 problems:

1. There are no scrollbars even though the table is too large to be displayed completely.
2. The headers are shown from the table, but I would like to localise them. Any recommendations?

distinti saluti/best regards
Philip Kerrigan

Solutions Consulting - Business Acceleration Services
tel +39 02-52029884
fax +39 02-52029472
mobile: +39 335-780-5151

EDS Italia SpA
Via Medici del Vascello, 26
20138 Milano
ITALY
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.