Table Cell Contents Disappears Please HELP!!!!

PROBLEM: I have a different tables within different table cells in the Master table. One table per Master cell. Once I click on a table cell (0,0) and click on another table cell (1,1) the cell (0,0) blanks out. Likewise with other cells so that if I've click on all the cells in the Master Table and then clicked somewhere else all cell contents have disappeared.
QUESTION: Do I need to call some UI refresh procedure????? I have a cell renderer which returns the table for each Master's Cell.
I don't if this is clear but please help!
Thanks

Hi,
the problem is that the DefaultCellEditor can't handle tables.
So you have to write your CellEditor, which returns another table as Editor.
class YourTableCellRenderer implements  TableCellRenderer{
    private  JTable table = new JTable();
    public Component getTableCellRendererComponent(JTable table,
                                                   Object value,
                                                   boolean isSelected,
                                                   boolean hasFocus,
                                                   int row,
                                                   int column){
         // set Data and Layout
         return table;
}then set the Editor to your MasterTable (master) with.
master.setCellEditor(TableCellEditor anEditor) or
master.setDefaultEditor(Class columnClass,
                             TableCellEditor editor);Hope this Helps.
Michael

Similar Messages

  • Making a Table cell editable. Please Help

    Hello there,
    I have written an Inner class called CallHeaderRenderer
    which is used to select to highlight a row from a table.
    But i am unable to edit the column data I click on.
    Please can any one tell me how to edit the column value when you double click on it??
    Attached is my Inner class used to select the concerned row.
    I am unable to edit the concerned column.....
    Please help.!!!
    What is the statement to make the cell editable!!!
    class CallHeaderRenderer extends DefaultTableCellRenderer{
    public CallHeaderRenderer(){
    super();
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
    // Set the highlight for record chosen.
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    return this;
    }

    A renderer has nothing to do with editing the cell. I suggest you read this section from the Swing tutorial on "Using Tables" for an explanation of how tables work. The tutorial will give one method for making a cell editable:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    Here is an alternate way to make a cell editable:
    table = new JTable( ... )
        public boolean isCellEditable(int row, int column)
            //  All columns, except the first, are editable
            if (column == 0)
                return false;
            else
                return true;
    };

  • SAP Portal development-Table Controls having link to table cell content

    Hello all,
    I am creating the SAP portal in which i am using Table controls to display the data. I want the function should be called whenever user clicks the table cell content. i.e. i want to create the function link to table cell.
    Please reply soon.
    Regards,
    Prashant

    Hi Prashant,
    You haven't mentioned if you are using Webdynpro or HTMLB JSPDynPages.
    If its the webdynpro, you can declare then and there itself that the content to the table column is a row my changing the property.
    If it is a HTMLB component TableVIew that you are trying to use, you can include a TableCellRenderer Class which renders the cells of the table at the runtime as links or buttons or whatever you want to put.
    So let me know, what exactly you are trying to use, then finding a solution will be more clear.
    regards,
    Sujana

  • Wrapping table cell contents

    Hi
    I have a requirement where i need to wrap my table cell contents.I have chekced all the properties of table but none serves my purpose.Kindly help in this direction.
    NWDS version : 7.3
    Server version : 7.3 SP02
    Thanks
    Monika

    Hi Monika
    Wrapping property is not available at table level.
    The individual columns header and content in the text views only you can wrap.
    If the table column cell editor is a Text View , then you can see the Wrapping property and you can change it to true for wrapping.. For column headers also you can set the property.
    Regards
    Venkata KALYAN

  • As a new MacBook user I plug in my USB Flash Drive but don't know how to access its contents. Please help. Thanks.

    as a new MacBook user, when inserting my USB Flash Drive, I do not know how to access its contents. Please help. Thanks.

    Open a new Finder window, Finder > File > New Finder Window, and it should appear on the left under Devices.
    If you don't see it there, or to get it to show up on the Desktop: Finder > Preferences... General tab, check External disks to have it show on the Desktop,  Or Sidebar tab, check External disks under DEVICES.

  • Space in table cell content

    Hi,
    I want to add some space before and after the table cell content. I am using setIntercellSpacing() method to achieve that and I could get the required functionality. But its adding space in the Table Header also which looks odd. Is there any way to set the spacing only for the cell and not for the table header.
    Let me know if anyone has solution for this.
    Thanks and Regards,
    R.Vishnu Varadhan.

    I find this behaviour of setIntercellSpacing() very annoying, too. Why the hell did the Swing developers implement it that way?
    Nevertheless, you can create the desired effect by writing a custom cell renderer, but that is if course more work than that single method call.

  • My ipod reads "0 KB used" "0 KB free" in the 'About' tab in 'Settings' but my music is GONE!!, no content! PLEASE Help I have or had over 3000 songs on ipod Classic!!

    my ipod reads "0 KB used" "0 KB free" in the 'About' tab in 'Settings' but my music is GONE!!, no content! PLEASE Help I have or had over 3000 songs on ipod Classic!!

    If you have all of the songs and videos still in your library I would recommend doing the restore of the iPod.
    Restoring iPod to factory settings
    - Zenatrul

  • I am having an with the dictation feature in OSX Mountain Lion.  I got Dictation enabled but when I got to use the feature all I get is the circles that cycle the purple color, shakes the the box disappears please help.

    I am having an with the dictation feature in OSX Mountain Lion.  I got Dictation enabled but when I got to use the feature all I get is the circles that cycle the purple color, shakes the the box disappears please help.

    See the discussions under "More Like This" at right.

  • TS4036 How do I access content that has been backed up to iCloud?  I no longer have an iphone, but want to access the music/pictures I've stored to the cloud.  When I logged into iCloud, there was no tab or option to view store content.  Please help.

    How do I access content that has been backed up to iCloud?  I no longer have an iphone, but I want to access the music/pictures I've stored to the cloud.  When I logged in to iCloud, there was no tab or option to view content.  Please help.

    Without an iPhone or iPod Touch to restore the backup to, you cannot access the camera roll photos stored in the iCloud backup.  Signing into the account on your computer and enabling photo stream will only allow you to access photo stream photos from the last 30 days, and any shared stream you were subscribed to.
    You can redownload purchased music in iTunes on your computer as explained here: http://support.apple.com/kb/ht2519.

  • The URL address line box, google earch box have disappeared, please help!

    The URL address box and the Google search engine box normally at the top of the page have disappeared. Also the back/frorad buttons have disappeared - please help!

    Hi,
    Please try going to '''View''' (or '''Alt''' + '''V''') > '''Toolbars''' and enable (tick) '''Navigation Toolbar'''. Alternatively right-click on the '''+''' on the right side of the last tab or the empty space after and choose '''Navigation Toolbar'''.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://addons.mozilla.org/en-US/firefox/addon/whats-that-preference/ What's That Preference? add-on] - Quickly decode about:config entries - After installation, go inside about:config, right-click any preference, enable (tick) MozillaZine Results to Panel and again right-click a pref and choose MozillaZine Reference to begin with.
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions/Add-ons]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]

  • Link to Table cell content...

    Hi,
    I am Prashant.i am developing SDAP Portal.In that,I am populating data to the .NET SAP NwtWieaver Table control dynamically.I am also adding LinkToAction control to the table cell.I want some action should be carried out on clicking on that link.For that i am using LeadSelect event.
    Actually it works fine when i am putting data at design time by editing rows.But it does not work when i gather data from at run time.When i gather data at run time and when i click on some link,all the table data disappears.
    I can not understand why this is happened?. What properties should i set for the same.If any one knows, Please help me.
    Regards,
    Prashant J.

    Soory it is not SDAP.It is SAP....

  • Autofit column width to table cell content in Pages

    Hello,
    Would anyone know how to autofit the column width of a table cell in Pages '09?
    I have searched Pages Help to no avail.
    Thank you very much in advance.

    There is a checkbox in the table inspector to auto-resize to fit content. Unfortunately, that only seems to work with rows, not columns.

  • Adobe PDF forms using tcode SFP - Nested tables... Please help

    Hi Friends,
    I have some strange issues when I am trying to create a nested dynamic table with SAP DATA in Adobe Designer.
    In the context, under the MAIN node
    I had dragged the header table. Under the header table I had dragged the item table and had created a WHERE condition to link the HEADER and ITEM table.
    Now my layout is pretty complicated..
    I want to result to be as below:
    header row.... with 0001 Customer name
    item row with 0001 0010 price qty
    0001 0020 price qty
    0001 0030 price qty
    header row... field4
    (field4 from the header table has to be displayed after the item table has generated all the items and this process should repeat for all header data)
    My design in layout is as below
    subform1 for headerdata
    ( set as positioned and has set to 'Repeat form for each data item')
    headerdata fields for subform1 (field1, field2, field3)
    subform2 for itemdata
    (set as folowed)
    subform3 for itemdata
    (set as positioned, 'Allow page breaks within content' and had set 'Repeat form for each data item')
    itemdata fields in subform3
    subform4 for headerrow field4
    but when I activated and execute the form, the result was wrong.
    The result should be like below...
    |->field1, field2, field3
    |--->field1 charge111
    |--->field1 charge211
    |-> field4
    |->field2
    |--->field2 charge122
    |--->field2 charge222
    |-> field4
    but it is printed like below and field4 is overlapped with the item rows if the item rows are more...
    DATA
    |->field1 field2 field3
    |--->field1 charge111 This inner table is overlapping the subform4 for each item
    |--->field1 charge211
    |
    |->field1 field2 field3
    |--->field1 charge121 This inner table is overlapping the subform4 for each item
    |--->field1 charge221
    2) If I have more item data, all the item rows are overlapped with the field4 (which I had explained in my layout) and the item rows are not moved to the next page, but still it is continued in the same page, meaning that if the page can fill 20 lines and my item row are more than 20 lines, 20 lines are printed and the remaining items are not moved to the next page... it is invisible...
    How can I solve this issue?
    Please help me
    Thanks in advance.
    Jaffer Ali.S

    Hi Prakash,
    Thanks for your reply.
    I tried it..... but nothing came out...
    Is there any alternative for this...
    My Hirearchy is like this...
    Main Table (SubformA - MainSubform) set as flowed, repeat for each data item     
        Maintable-field1 Maintable-field2 (Subform) set as positioned
    Inner table (table subform) set as flowed
      Innertable-field1 Innertable-field2 (subform) set as positioned
    I linked the Maintable and the Innertable in the context in the 'Where Conditions' tab
    Kindly review the above hirearchy and reply...
    Guys please help me.... I am in an urgent state and need to complete this ASAP.
    I will give full points for all of u guys...
    Please.... please... please....
    Thanks in advance.
    Jaffer Ali.S

  • Error when splitting a Table into two columns - Please help!

    Hi!
    I have created a table in which I have created a header which has been split into 3 parts conisting of 2 columns. These all work fine. However, when I try to split the row below the header row into 2 columns, it does so but, in a way, connects the line inbetween the two columns with the line inbetween the two columns above and will not allow me to move it left or right by manually changing specs or dragging the line. Please help! (I'm using CS5 by the way!) Thank you!

    I suggest you begin with a pre-built CSS Layout.  DW has several to help jump start your projects.  Go to File > New Blank Page > HTML.  Select a layout from the 3rd panel and hit CREATE.  See screenshot.
    Save this layout as test.html and begin building your prototype page saving and validating code often during your work sessions.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Good luck with your project!
    Nancy O.

  • Purchased a Movie, which has just disappeared - PLEASE HELP!!!

    I really need some help here please,
    A few hours ago, I purchased a Movie from the iTunes store which took 3 hours to download to my iPod touch which cost £6.99. A soon as it finished, I took then plugged it into my PC to transfer the purchase to my iTunes library, for a backup.
    Whilst I was doing this, iTunes (as per usual) froze on me when it was syncing and did not respond at all when I moved and clicked an area of the open window. Because of this, I was forced to quit iTunes and re-open it again, to try and get the film onto my PC.
    When I connected my iPod to iTunes again, the Movie disappeared from my iPod and there was no sign of it anywhere on my PC either. Where is it?!
    Because of this and un-aware I had to pay £7 again to download the movie on my iPod, I repeated the whole process and as before, the file just went missing on both my iPod and PC.
    You may ask "Why didn't you purchase it through iTunes on your PC?" and the reason why is because the iTunes Store doesn't work on the PC any more. I've tried hundreds of new and old solutions to fix this and none of them seem to work. I've disabled EVERY type of firewall that could potentially be blocking me using the store, disabled all spyware programs and it still won't work.
    I feel very angry and annoyed here, as I've spent £14 on 1 film I've tried to get twice and attempting to find a missing file that never appeared on my PC.
    So how do I resolve this constant freezing probelm with iTunes, how do I get the iTunes Store working again, and most importantly, is there any way of me getting my £14 back? Please help!
    Any answer will be greatly appreciated.
    Martin.

    girikavali wrote:
    I'm a begineer in labview. I want to evaluate an equation which has complex numbers through text code.. 
    Are you saying you don't want to use LabVIEW to evaluate this? In which case I suggest asking on a different forum.
    for(f=0;f<=2560;f=f+0.3125)
         R=((H12-e^(-i*k))/(e^(i*k)-H12))*e^(i*k);
    There is no 'f' in the loop, I don't understand what the loop would evaluate, unless k is a constant in which case the loop is redundant.
                k         function of frequency
                f          frequency 
    If k is a function of frequency you need to say what that function is. For example if you are evaluating 'k' for changing 'f' and applying it to the equation for R. I don't know what the best procedure would be but my first port of call would be nested loops: 'R' for each 'k' for each 'f' ?
    In the absence of a function for k this vi would evaluate you formula for k=f, I don't know if this wil help any.

Maybe you are looking for

  • Another CS6 build questions thread

    Hi guys, My first post here, I've been reading lots on here today thanks for all the info!, I'm building a new edit of, mainly for pp & ae cs6. I think I'm there with components but would love to hear your opinions and experiences before I click the

  • Some problems about database connection

    I am working on oracle9i. The problem is that I have to specify the "host string" in the login window of SQL*PLUS to connect to database (I can't use the command-line GUI). But I don't know how to specify "Host String" in JDBC connection string and S

  • Some Pro's Opinions on the Best iPod for exercise and while using the MBP.

    Is it true that because of the moving parts that the classic should not be used for any type of exercise? When they first came out, I never thought about this or never got this from anybody else so I used my Classic for year without any trouble. I do

  • Ask the Expert: Configuration and Troubleshooting the Cisco Application Control Engine (ACE) load balancer

    With Ajay Kumar and Telmo Pereira  Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about configuration and troubleshooting the Cisco Application Control Engine (ACE) load balancer

  • Browser Shows Wrong Artist

    Here's the situation: I am using the Sort Artist field to combine similar artists within the iTunes Browser view. My problem shows up nicely in the following situation: I have two albums with Artist set to "Tom Petty & The Heartbreakers". I have thre