Margin and Table Cell Question

Hi,
The main banner at the top of each page changes it's position
when I view it in the browser. For example, on this page it is okay
http://www.foryourbackyard.com.au/products.htm
Though this page the banner slips down a touch.
http://www.foryourbackyard.com.au/sheds.htm
Any ideas welcome.
Also on this site the table cells seem to have a gap at the
bottom of the roll over image.
http://www.d-force.com.au/
I'm not sure why.
Thank in advance.
Ray

For anybody who might stumble on this in the future looking for an answer to the same or a similar question, I figured this out with the help of Andreas Kiel and Philip Buckley on the Applescript Studio mailing list. Below is the answer.
Given a data source named "D" and table columns named "bc1" and "bc2" (both of which contain a checkbox style button cell), this is the syntax:
tell data source "D" --to check the checkboxes
set content of data cell "bc1" of every data row to true
set content of data cell "bc2" of every data row to true
end tell
tell data source "D" --to uncheck the checkboxes
set content of data cell "bc1" of every data row to false
set content of data cell "bc2" of every data row to false
end tell
The problem I was having is that I used the name of the button cell itself in the data cell reference rather than the name of the table column.
Hope someone finds this useful
St!ff

Similar Messages

  • Margin in Table cell is way too big

    First off, thanks again to Apple for Pages 2. I like having all the different functions, that is -- word processing, page layout, spreadsheet, charts, basic graphics, photo manipulation in one window. I mean, why open up a bunch of windows when it can all be done in one. Less real estate and less clicks. I like it.
    But, there is a problem I hope Apple will fix in the next update of Pages.
    I was experimenting. Trying to make a Table look more like a standard spreadsheet. I wanted to size the cells more in keeping with what you have in Appleworks or Excel. Problem is, you can't FILL UP the cell with text, that is, text from line to line of cell. A font sized to fill the cell gets chopped off. There is some kind of a margin between the cell boarder lines and the text. It would be great if Apple took away this margin that clips my text.
      Mac OS X (10.4.4)  

    Hello How Goes It,
    select the cells you want to have no margin and choose the text inspector of the infopalette and the text tab button. At the bottom is a slider and a number field. There you can adjust the margin thickness.
    Frank.

  • Adding a link to a table cell question

    ho can i add a link into a cell containing an image without increasing its size?
    I am trying to make a link out of a table cell containing an image.
    the problem is that the highlight frame around the image increases the size of the cell (and i cant have this since i imported all the small table images from photoshop wich constitute a big image).

    no i am just exporting fragmented gif images from photoshop that i want to assemble again in dreamweaver through a table.
    when i apply the link to one of the cells, dreamweaver increases its size (by 1 or 2 pixels) wich causes border gaps between cells and i cant have that.
    i am using this cell as a button. all i want is to apply a link to a cell containing an image without modifying its size.
    here's the code :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {
        background-color: #000;
    a:link {
        text-decoration: none;
    a:visited {
        text-decoration: none;
        color: #03C;
    a:hover {
        text-decoration: none;
        color: #F96;
    a:active {
        text-decoration: none;
        color: #969;
    a {
        font-size: 0px;
    </style>
    </head>
    <body>
    <table width="1280" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="309"><img src="HomeImages/Home_01.gif" width="309" height="221" /></td>
        <td width="110"><img src="HomeImages/Home_02.gif" width="110" height="221" /></td>
        <td width="111"><img src="HomeImages/Home_03.gif" width="111" height="221" /></td>
        <td width="142"><img src="HomeImages/Home_04.gif" width="142" height="221" /></td>
        <td width="313"><img src="HomeImages/Home_05.gif" width="316" height="221" /></td>
        <td width="262"><img src="HomeImages/Home_06.gif" width="292" height="221" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_07.gif" width="309" height="95" /></td>
        <td><img src="HomeImages/Home_08.gif" width="110" height="95" /></td>
        <td><img src="HomeImages/Home_09.gif" width="111" height="95" /></td>
        <td><img src="HomeImages/Home_10.gif" width="142" height="94" /></td>
        <td><a href="DemoMenu.html"><img src="HomeImages/Home_11.gif" width="316" height="94" /></a></td>
        <td><img src="HomeImages/Home_12.gif" width="292" height="95" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_13.gif" width="309" height="121" /></td>
        <td><img src="HomeImages/Home_14.gif" width="110" height="121" /></td>
        <td><img src="HomeImages/Home_15.gif" width="111" height="121" /></td>
        <td><img src="HomeImages/Home_16.gif" width="142" height="121" /></td>
        <td><img src="HomeImages/Home_17.gif" width="316" height="121" /></td>
        <td><img src="HomeImages/Home_18.gif" width="292" height="121" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_19.gif" width="309" height="91" /></td>
        <td><img src="HomeImages/Home_20.gif" width="110" height="91" /></td>
        <td><img src="HomeImages/Home_21.gif" width="111" height="91" /></td>
        <td><img src="HomeImages/Home_22.gif" width="142" height="91" /></td>
        <td><img src="HomeImages/Home_23.gif" width="316" height="91" /></td>
        <td><img src="HomeImages/Home_24.gif" width="292" height="91" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_25.gif" width="309" height="142" /></td>
        <td><img src="HomeImages/Home_26.gif" width="110" height="142" /></td>
        <td><img src="HomeImages/Home_27.gif" width="111" height="142" /></td>
        <td><img src="HomeImages/Home_28.gif" width="142" height="142" /></td>
        <td><img src="HomeImages/Home_29.gif" width="316" height="142" /></td>
        <td><img src="HomeImages/Home_30.gif" width="292" height="142" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_31.gif" width="309" height="94" /></td>
        <td><img src="HomeImages/Home_32.gif" width="110" height="94" /></td>
        <td><img src="HomeImages/Home_33.gif" width="111" height="94" /></td>
        <td><img src="HomeImages/Home_34.gif" width="142" height="94" /></td>
        <td><img src="HomeImages/Home_35.gif" width="316" height="94" /></td>
        <td><img src="HomeImages/Home_36.gif" width="292" height="94" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_37.gif" width="309" height="124" /></td>
        <td><img src="HomeImages/Home_38.gif" width="110" height="124" /></td>
        <td><img src="HomeImages/Home_39.gif" width="111" height="124" /></td>
        <td><img src="HomeImages/Home_40.gif" width="142" height="124" /></td>
        <td><img src="HomeImages/Home_41.gif" width="316" height="124" /></td>
        <td><img src="HomeImages/Home_42.gif" width="292" height="124" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_43.gif" width="309" height="109" /></td>
        <td><img src="HomeImages/Home_44.gif" width="110" height="109" /></td>
        <td><img src="HomeImages/Home_45.gif" width="111" height="109" /></td>
        <td><img src="HomeImages/Home_46.gif" width="142" height="109" /></td>
        <td><img src="HomeImages/Home_47.gif" width="316" height="109" /></td>
        <td><img src="HomeImages/Home_48.gif" width="292" height="109" /></td>
      </tr>
      <tr>
        <td><img src="HomeImages/Home_49.gif" width="309" height="600" /></td>
        <td><img src="HomeImages/Home_50.gif" width="110" height="600" /></td>
        <td><img src="HomeImages/Home_51.gif" width="111" height="600" /></td>
        <td><img src="HomeImages/Home_52.gif" width="142" height="600" /></td>
        <td><img src="HomeImages/Home_53.gif" width="316" height="600" /></td>
        <td><img src="HomeImages/Home_54.gif" width="292" height="600" /></td>
      </tr>
    </table>
    </body>
    </html>

  • ID CS 5 (Version 7.0.4), need to remove margins inside table cells

    I'm building a table to compare features in 2 commercial products. I've created several small (22 px square) graphics in AI (saved as PDFs). I've started adding these graphics in the cells, but ID seems to always create small margins on the top, left, and bottom that I have not yet figured out how to get rid of. My goal is to create a pattern of tiles with no perceptable grout lines between the tiles. Is this possible? If it makes a difference, I used File->Place to insert the first instance of the PDF and Copy/Paste for subsequent instances.
    Thanks,
    John

    Select the cells and use the Table panel to change the cell margins.
    Also, Illustrator files are not measured in pixels. What Illustrator wrongly cells pixels should instead be called points. Pixels alone have no physically measurable size, but all Illustrator files do. Illustrator assumes a resolution of 72 ppi, making a 22 pixel image measure 22 points.

  • Highlighting input field and  table cell column in red colour

    Hi,
           I have 4 input fields and a table in my screen. All the input fields are read only.
        I have a functionality where I have to highlight a input field with the red colour. In the sense, I have to put a thin Red border over the input field without thowing any errors or messages.
           Also, i have to highlight a particular cell in the table. i.e, i have to put Red colour border over the cell of the table for some rows only. Right now i have changed the background colour of the cell for required rows, but i need Red thin border rather than changing the entire background colour.
    Please guide me on achieving these functionalities..
    Thanks and Regards,
    -Shabir Rahim.

    Hi,
    The red thin lines border you are talking about comes from the framework during the exceptions. If this is the case then refer the following links, hope this will help you.
    [Re: Automatic message for inputfields with state=required]
    [Re: Validation of InputField]
    Well without exceptions, i dont think it will come.
    thanks & regards,
    Manoj
    Edited by: Manoj Kumar on Feb 7, 2008 12:09 PM

  • "curved/round borders" for free standing cells and table cells

    Webi 4.1 has border options such as dotted/ plan or double lined etc but is it possible to  "curve"  the edges of the borders in webi ?
    I tired to play around with the CSS styling sheet (Cell related section of it) but couldn't figure out what needs to be changed in order to accomplish this.
    Please provide feedback.
    Sheikh

    Hi Ayub,
    This feature is not there in BO.
    so that we cant curved/round border...........
    why you want curved/round border in cell
    Regards
    Mustafa

  • Numbering and table cells

    I want to have auto list numbering continuing down a column in a table, but I can't find a way to do this. Despite having 'continue numbering' ticked in the inspector for the style I've applied, ,the numbers restart with each row.
    IE
    I want
    1. r1,c1 r1,c2
    2. r2, c1 r2, c2
    3. r3, c1 r3, c2
    4. r4,c1 r4, c2
    ... but I'm getting...
    1. r1,c1 r1,c2
    1. r2, c1 r2, c2
    1. r3, c1 r3, c2
    1. r4,c1 r4, c2
    Is there a way to do this? There is in Word but you know, it's Word....

    I guess that'll be a 'no' then...

  • How to change the colour of a table cell boder?

    I have just changed from Dreamweaver MX t CS5 and cannot find how to add a colour to the borders of a table and table cells.  In the old MX it was easy just selected the colour for border in properties but in CS5 this option is not availble.  Have tried formatting with CSS but this only colurs the outer boarder can anyone help?

    Not sure what you mean by a custom class would it be possible to give me an example?

  • Adjusting Space between table - cell border and cell content ?

    Hi all,
    Need a quick help.
    I am using a static table. By default, I have some space between the cell content and the text (yes, the cell margins).
    I wanted to reduce this space to '0'.
    Is there any option to adjust the cell margins? Thanks in advance !!
    1 more Q:-
    There are no options to merge 2 cells, are there ?
    Thanks,
    Navin.
    Edited by: 890074 on Mar 4, 2012 10:17 PM

    Hi Naveen,
    Until Documaker 11.5, there are no options to reduce the cell margin and no options to merge cells as well.
    Thanks.

  • Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Is there a recommended limit on the number of custom sections and the cells per table so that there are no performance issues with the UI?

    Thanks Kelly,
    The answers would be the following:
    1200 cells per custom section (NEW COUNT), and up to 30 custom sections per spec.
    Assuming all will be populated, and this would apply to all final material specs in the system which could be ~25% of all material specs.
    The cells will be numeric, free text, drop downs, and some calculated numeric.
    Are we reaching the limits for UI performance?
    Thanks

  • Question about Noise Margin and Line Attenuation a...

    1.       For several years I have had a BT telephone line.  From the utilities provided by http://www.kitz.co.uk/adsl I find  that I am connected to the Exchange at Merton Park (BT Code: LSMEPK)  Distance:-   Direct:    960 metres (appx)*  By Road:  1.29 km. Exchange Status ADSL enabled: March 30, 2000 DSL Max enabled:   March 30, 2006 SDSL enabled : Enabled  21CN due : (PSTN) N/A 21CN WBC (Broadband)   Enabled 15.02.09
    2.       I  previously had broadband from UKOnline  and used a Speedtouch 570 adsl modem. I was paying £9.99 for a speed of 1MBit/s – in practice 700K – which was fine for most purposes but BBC iplayer did struggle a bit. UkOnline has been taken over by SKY so I switched to BT Total Broadband Option 3 in mid December, and initially used the Speedtouch 570 as there were delivery delays on BT Home Hub 2.0 due to weather conditions.  Speed was initially very good but did not measure it.
    3.       After Xmas I set up the BT Home Hub and ran a  speed test  - the profile was 2.5MBit/s.  I was disappointed to get less than 3Mbit/s which is needed for BBC iplayer HD.
    ADSL line status
    Connection information
    Line state  Connected
    Connection time  0 days, 2:26:57 ------> 6th January 2011
    Downstream  2,268 Kbps
    Upstream  440 Kbps
    ADSL settings
    VPI/VCI  0/38
    Type  PPPoA
    Modulation  ITU-T G.992.5 ---à this apparently means ADSL2+
    Latency type  Interleaved
    Noise margin (Down/Up)  15.7 dB / 31.9 dB
    Line attenuation (Down/Up)  27.0 dB / 9.7 dB
    Output power (Down/Up)  0.0 dBm / 12.7 dBm
    Loss of Framing (Local)  22
    Loss of Signal (Local)  3
    Loss of Power (Local)  0
    FEC Errors (Down/Up)  6512 / 0
    CRC Errors (Down/Up)  0 / 2147480000
    HEC Errors (Down/Up)  nil / 0
    Error Seconds (Local)  2
    4.       As part of the “slow speed wizard” I looked into getting the accelerator plate for my NTE5 split face master socket available for postage only (£1.20) but the web form advised me that if I proceeded with this order the broadband contract would automatically be extended by 12 months. I checked my BT internet account and was surprised to find an email (23rd Dec 2010) advising me that as an Option *1* customer I was in danger of exceeding my usage allowance – which surprised me as I am definitely Option 3. I wondered if I had had the speed throttled. Therefore phoned BT accounts who said the email was a mistake - I am Option 3,  also said that accelerator plate was unlikely to make a difference.
    5.       I contacted the BT call centre who talked me through various options. Plugging the hub direct into the master socket made no difference.  They also ran a line test and said the line was fine.
    6.       I therefore browsed the community care forum and find that disappointing speeds are not uncommon. One of the threads mentioned disconnecting the bell wire on the extensions. I follow this advice and removed line 3 on all extensions and then checked the ADSL status on the hub.
    ADSL line status
    Connection information
    Line state  Connected
    Connection time  0 days, 6:33:45 10th January 2011
    Downstream  2,272 Kbps
    Upstream  888 Kbps
    ADSL settings
    VPI/VCI  0/38
    Type  PPPoA
    Modulation  ITU-T G.992.5
    Latency type  Interleaved
    Noise margin (Down/Up)  31.8 dB / 14.4 dB
    Line attenuation (Down/Up)  27.0 dB / 9.7 dB
    Output power (Down/Up)  0.0 dBm / 12.3 dBm
    Loss of Framing (Local)  0
    Loss of Signal (Local)  0
    Loss of Power (Local)  0
    FEC Errors (Down/Up)  0 / 0
    CRC Errors (Down/Up)  0 / 2147480000
    HEC Errors (Down/Up)  nil / 0
    Error Seconds (Local)  0
    7.       This had a dramatic improvement on Upstream speed –  and a big change to the noise margin Noise margin which had been (Down/Up) 15.7 dB / 31.9 dB  and is now Noise margin (Down/Up)  31.8 dB / 14.4 dB. It did not improve the download speed.
    8.       In the following days the BT hub has not been particularly stable with some intermittent loss of wireless connectivity every few hours. Examining the event log I was a bit disconcerted to see  alterations to firewall settings had happened (which I hadn’t made) and resets which I am pretty certain I hadn’t made – and a userid login with a name like TR69. Perhaps these are occasioned by the BT speedtester? To be fair I had reset and powered off the hub a number of times in attempt to sort out this problems.
    9.        I have switched to a Netgear DG83GT (V1.03.23)  for the time being until I have what I can regard as a reasonably fast stabile connection.  At the time of writing this has been stable for 20 hours DownStream Connection Speed 2268 kbps UpStream Connection Speed  888 kbps.As stated earlier I would like downstream to be faster.
    The perceived wisdom on the forum seems to be that several days of complete stability are required if there is to be any improvement on speed.
    10.   If a moderator or anyone with the relevant experience reads this I would be very grateful for answers to the follow questions:
    A.      Is the change in the Noise Margin parameter a good thing or a bad thing?
    B.      Are the line attenuation figures acceptable for a distance of under 1.5kilometres to the exchange?
    C.      Should I be able in theory to get a faster speed i.e. downstream 3Mbit/s?
    D.      From the forum it seems to take several days for speed adjustments to be effected or to take effect – is this a technical issue or a policy issue?
    Many thanks.
    Robert
    Solved!
    Go to Solution.

    Good Morning - it is now 6 days since this posting. During this time there have been 2 resets of the adsl line
    Fri, 2011-01-14 03:28:43 - LCP down.
    Fri, 2011-01-14 03:28:54 - Initialize LCP.
    Fri, 2011-01-14 03:28:54 - LCP is allowed to come up.
    Fri, 2011-01-14 03:28:54 - CHAP authentication success
    and
    Sun, 2011-01-16 16:37:26 - LCP down.
    Sun, 2011-01-16 16:37:36 - Initialize LCP.
    Sun, 2011-01-16 16:37:36 - LCP is allowed to come up.
    Sun, 2011-01-16 16:37:36 - CHAP authentication success
    These were not initiated by me - and since noise margins and sync speeds changed as a consequence can I assume that this is evidence of the adaptive process working?
    Secondly, as you can see, the noise ratio has vastly improved as have the upstream and downstream sync speeds
             System Up Time 157:54:52               
          ADSL Link          Downstream          Upstream              
          Connection Speed           11199 kbps           1091 kbps                
          Line Attenuation           27.0 db           9.9 db                
          Noise Margin           14.8 db           9.2 db               
    BUT from the BT speedtester, as shown below  I seem to be stuck in a banded IP profile of 1750/1091 which is very different from the  downstream sync speeds of 11199 Kbps(DOWN-STREAM)
    Can BT staff take action to alter this? If they can how do I contact them?
    Regards,
    Robert
    18th Jan 2010
     Download Speed    1288 Kbps
     0 Kbps   2000 Kbps
    Max Achievable Speed
     Download speedachieved during the test was - 1288 Kbps
     For your connection, the acceptable range of speedsis 800-2000 Kbps.
     Additional Information:
     Your DSL Connection Rate :11199 Kbps(DOWN-STREAM), 1091 Kbps(UP-STREAM)
     IP Profile for your line is - 1750 Kbps
    The throughput of Best Efforts (BE) classes achieved during the test is - 2.28:10.77:87.0 (SBE:NBEBE)
    These figures represent the ratio while sententiously passing Sub BE, Normal BE and Priority BE marked traffic.
    The results of this test will vary depending on the way your ISP has decided to use these traffic classes.
    2. Upstream Test: -provides background information.
      Upload Speed       896 Kbps
    0 Kbps   1091 Kbps
    Max Achievable Speed
    >Upload speed achieved during the test was - 896 Kbps
     Additional Information:
     Upstream Rate IP profile on your line is - 1091 Kbps

  • Read Only and HTML Table Cell Attributes

    Hi Guys,
    I believe i have come accross a bug - i'm been working on a form that can be filled out and printed - when going into print for sake of the output looking nice i set the form element to read-only.
    As soon as an element such as a drop down box, text feild, text area, etc which display as "[selected value]" in plain text in read only mode, are changed to the read only mode apex seem to ignore the html table cell attributes.
    For example i have a id number in the top left and then a version number in the top right. Both use a text feild; the top left uses 'width="100%"' for it's HTML Table Cell Attribute to push the right cell to the right. and the right cell has 'align="right"'. Now this works fine when read only is off... but as soon as read only is on, both the width and the alignment are totally ignored, and i can't find any sign of them in the code.
    Because this is for printing; using the "disable" on the form element instead of "read only" function, isn't appropriate as disabled will make the elements faded and hard to read when printed, and keeping the elements as is will allow the user to edit information on the print screen - which is not appropriate.
    Is this a bug? Will it be fixed soon? Is there any work around?
    Cheers,
    Alex

    Use the "Read Only Element Table Cell(s) Attributes" in the Read Only region of the Item edit form.
    Scott

  • Adding button to a custom table cell (and handling them)

    Hi
    I'm wondering if it's possible to add a button on each row of a table view using a custom table cell view. If it's possible, I'm really wondering how I can handle the click events on these buttons.
    Thanks

    No.
    Try creating a view and adding it to a cell. Let us know what problems you have, and we can try to help.

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

Maybe you are looking for

  • Preview.app crashes whenever I use a key command

    I've had this very annoying problem for quite a while now, and so far I haven't been able to find a solution for it. Whenever I use a key command in Preview.app it either freezes or crashes or both. I can use all the menu options, just not trigger th

  • Oracle 10g Client install on Reh Hat5

    Hey Guys, This could be one of those silly questions again, but here it goes... Attempting to install the oracle Client on my RHEL5, laptop. 10201_client_linux32.zip As far as im aware i have the oracle user setup correctly... However im getting this

  • Birthday in Address Book

    If I have only a day/month to insert under birthday in Address Book, I notice that appears the current year which I don't want, mainly people give a day not the year. How to go about it ? Can I use iCal for that or only Address Book and then is syncr

  • Generate IDL from Java Code, Classes, UML, etc?

    Hi, is is possible to generate IDL code from Java Code, Classes, UML, ... using JDeveloper? I know this is somewhat reverse engeneering, but it would speed up the migration of our existing Java project... Thanks, Johan

  • How to add my app as a new add on

    Hi I have a great new app for encrypted messaging and i want to make it available for free as an add on on firefox. Who do I talk to?