How can make  the cell in table keep unchanged?

In my program, I have set the cell in table as :jTable1.setCellSelectionEnabled(false); so I think it can't be edited, but it does't work, I can still edit it by double clicks on this cell, why ? what will I do ?
thanks!

// although this is swing related question.
public class UneditableTableModel extends
javax.swing.table.DefaultTableModel{
     public boolean isCellEditable(int row, int col){
          return false;
// then pass this class to constructor of JTable.
// i.e. new javax,swing.JTable(new
UneditableTableModel(record, columnNames))thanks ,it works very well !!!

Similar Messages

  • HT4759 How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    Welcome to the Apple community.
    Calendar and reminders are two different and separate apps, you cannot transfer information between the two of them.

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

  • How to make the fields of table clickable?

    Hi Experts,
    I have created one RFC based WD program. We are displaying data in a table. Now I have to make some of the fields of table clickable.
    When the user will click on some of the fields, another RFC should be called.
    How I can do so?
    Regards,
    Gary

    hi
    when you try to select the attributes of the table that has to be  populated
    you may have  to right click on the rootuicontainer and select apply template and select table
    and select the attributes from the node that has to be populated in the table and click next
      and you can find the attributes name and textview which is by default that would be shown inthe table
      instead you can  change the textview and select from the dropdown select the linktoaction and linktourl
      and or you can go other way as add a new column to the table and select buttons to the table .
      and for each each row and on click of the button you can call the RFC .
    Thanks

  • How can make the header repeat in every page?

    I followed the instructions in pages' help nad it does work for text heardes, however it does not work with images and graphics.
    Daoes anyone know how to make graphic and/or images headers repeat in each page?
    Thanks in advance.
    Ruben

    Make them Master Objects:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&highlight=letter head&mforum=iworktipsntrick
    Peter

  • How to make the Pager for table view as non editable?

    Hi,
    I am using an HTMLB pager for my table view .
    It appears as Page '1' of 2 for examle.
    But '1' is dispalyed in an input field.
    How do I make this input field as disabled.
    I just want to use the Vertical and horizontal indicators to traverse through the pages of the table view.
    I do not want the user to enter the page number ..
    Thanks,
    Sachin

    Look at SBSPEXT_XHTMLB sample, pages pager.bsp and pagerX.bsp.
    If you use the external pager, then you can specify a format where a text string will only be displayed without an inputfield for editing.

  • How to make the cell content stretchable as well as the whole grid?

    Hi,All:
    I want a cell(which is a child grid) in the parent grid to be stretchable when the parent grid is changing size? Right now, the parent grid is resizable without any problem, but the child grid in a cell is not stretchable even if i set up of the properties. Please take a look at this picture! https://twitter.com/#!/hebehaha/status/194847757327015938/photo/1
    Any ideas?
    grid_photo1.setMinWidth(545);
    grid_photo1.setMinHeight(115);
    grid_photo1.setPrefWidth(545);
    grid_photo1.setPrefHeight(115);
    grid_photo1.setMaxWidth(Double.MAX_VALUE);
    grid_photo1.setMaxHeight(Double.MAX_VALUE);
    Thanks,

    Can you post a short, complete, runnable example?
    Have you looked at the setHgrow/setVgrow constraints?
    http://docs.oracle.com/javafx/2.0/api/javafx/scene/layout/GridPane.html#setHgrow%28javafx.scene.Node,%20javafx.scene.layout.Priority%29
    There is also http://www.miglayout.com/ for JavaFX which you might want to look at if you have numerous complex grids to layout and are interested in alternatives to GridPane.

  • How can make the latest Adobe Presenter trial stop causing Powerpoint crash?

    I have downloaded the latest trial of Adobe Presenter, in the "About Presenter" feature it shows it to be Version 7.0.7
    I am using Powerpoint 2007 on a Windows XP laptop.
    The trial downloaded well, it records voice well, it syncs well with animation, and it appears ok on the PowerPoint Add in bar. I managed to create some 2-3 test recordings on a PowerPoint presentation I already have, that needs turning into a Presentation. That was all. Since then Powerpoint hasn't stopped crashing. Getting back to it functions well, the problem appears whenever I finish recording. Regardless of whether I press the stop or pause button. Earlier on it happened when then pressing ok, and only after "stop" button. Now it does it every single time, and of course, it's crashing before it can save any audio files.(I haven't even tried publishing, simply because I have nothing to publish because of these crashes!)
    I have browsed solutions online but they all seemed dated: like I said this is the latest version (what it seems 7.0.7) and even if I tried to download patches it doesn't accept them. Looking for updates from the add-in bar from Powerpoint only results in "no updates available for this version".
    Please help! This seems to be exactly what I was looking for but obviously not if it doesn't work!
    Thanks,
    Gabriel

    Hi Shubhi,
    I'm sorry I can't do that. I don't have 7.0.7 anymore, it would be stupid to keep a piece of software that it's not working. I can't have both versions at the same time and I need to do my work, so working fine with 7.0.6.
    Besides, I have already provided all the steps I followed, and the problem was indeed the same for new or old presentations, working from a Windows XP laptop and PowerPoint 2007 (with presentations saved in either 2003 or 2007 powerpoint versions).
    I hope I could help in any way, but I can't spend more of my work/own time in uninstalling/installing versions, or for free!
    Regards,
    Gabriel

  • How to make the diagonal line in the swing table cell?

    Hi all,
    How to make the diagonal line in the swing table cell just like the link below?
    http://61.132.17.188/webber/table.gif

    One improvement.. To get a line that is neat, use a bit of Graphics2D
        public void paintComponent(java.awt.Graphics g)
            int w = getSize().width;
            int h = getSize().height;
            // draw a line between (0,0) and (w,h)  
            g.setColor(getForeground());
            if (strTop == null)
                strTop = "  ";
            if (strBottom == null)
                strBottom = "  ";
                java.awt.Graphics2D g2 = (java.awt.Graphics2D)g;
              g2.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING,java.awt.RenderingHints.VALUE_ANTIALIAS_ON);
              //g2.setStroke(new java.awt.BasicStroke(14.0f));
            g.drawLine(0, 0, w, h);
            //the following lines will draw the two strings,
            //one above the top of the line and the above below it.     
            g2.drawString(strTop, (w/2)+2, (h/2)-2);
            g2.drawString(strBottom, 2, (h / 2) + 2);
            //the x,y for drawString are only based on assumption.   //do necessary changes to suit ur needs.
        }Then create a TableCellRenderer and set it to the Table Header for ur table's 1st row.....
    Cheers

  • How to make the text in cells bold?

    Hi,
    does anyone know how I can make the contents of my cells in my JTable BOLD?
    Also, when I display another table of fewer rows in the same frame (using BorderLayout.CENTER), the part of the previous JTable that were previously filled with rows still shows (i.e. the extra space from the old table with longer rows is then white and not gray,which is the background of the frame,). How can I make sure the table is redrawn/rebuilt from scratch. firetableDataChanged() doesn't remove the extra white space.
    e.g I display a table to 5 rows in the frame. Then on some action, I create a new table and display it (3 rows) on top of the old one. Although the data changes as should, the outline of the extra space for the 2 extra rows from the previous one still shows, though without gridlines. How can I stop this?

    If you use:
    DefaultTableModel model = new DefaultTableModel();instead of:
    TableModel model = new DefaultTableModel();the AbstractTableModel methods become available, so now you can:
    model.fireTableStructureChanged();
    // or other property changes... see JavaDoc for more info...
    model.fireTableCellUpdated();
    model.fireTableDataChanged();
    ...That should solve the problem...
    Virtua11y

  • How can I write into a table cell (row, column are given) in a databae?

    How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion? 
    Solved!
    Go to Solution.

    When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
    I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.

  • How to make the Page UP and down work on a table control screen?

    Dear all,
    Can some one suggest how to make the table control screen work with Page Up and Page down controls.
    when I press on Page down it works for the first time and after that i need to select the table to make it work the second time. it there a way I can make the index on the screen stay on the table control at all times.
    Regard,
    Vj

    Take this code as a referance:
    Sample code for vertical scrolling in PAI processing will look like this:
    MODULE user_command_XXXX INPUT. (XXXX is screen no.)
      CASE ok_code.
        WHEN 'P--'.
          CLEAR ok_code.
          PERFORM paging USING 'P--'.
        WHEN 'P-'.
          CLEAR ok_code.
          PERFORM paging USING 'P-'.
        WHEN 'P+'.
          CLEAR ok_code.
          PERFORM paging USING 'P+'.
        WHEN 'P++'.
          CLEAR ok_code.
          PERFORM paging USING 'P++'.
    *&      Form  PAGING
    *       Form to do scrolling for screen XXXX
    *      -->CODE   OKCODE value (P--, P-, P+, P++ )
    FORM paging USING code.
      DATA: i TYPE i,
            j TYPE i.
      CASE code.
        WHEN 'P--'. <table control name>-top_line = 1.
        WHEN 'P-'.
          <table control name>-top_line =
                  <table control name>-top_line - line_count.
          IF <table control name>-top_line LE 0.
            <table control name>-top_line = 1.
          ENDIF.
        WHEN 'P+'.
          i = <table control name>-top_line + line_count.
          j = <table control name>-lines - line_count + 1.
          IF j LE 0. j = 1. ENDIF.
          IF i LE j.
            <table control name>-top_line = i.
          ELSE.
            <table control name>-top_line = j.
          ENDIF.
        WHEN 'P++'.
          <table control name>-top_line =
                 <table control name>-lines - line_count + 1.
          IF <table control name>-top_line LE 0.
            <table control name>-top_line = 1.
          ENDIF.
      ENDCASE.
    ENDFORM.                               " PAGING
    Regards,
    Ravi

  • Please help : How to make the anomalistic table just like below?

    Hi all,
    How to make the anomalistic table just like below? Anyone can give the way detail or thoughtway ?
    http://61.132.17.188/webber/table.gif

    This is just a suggestion.
    If you put your "JTable" in a "JScrollPane", then you can add any "java.awt.Component" to the corner of the "JScrollPane" -- using the "setCorner()" method (of "JScrollPane").
    I would suggest making a custon "JPanel" and overriding its "paintComponent()" method to draw a diagonal line (and the required text) on it.
    You can find out more about how to do this from the links I provided in my first reply.
    Hope this helps.
    Good Luck,
    Avi.

  • HOW TO MAKE THE CONTENT OF THE TABLE PRINT IN A TABLE CONTROL SCREEN?

    Can any one tell me how to make the content of the table control print in a table control screen!!?
    Please help!!
    I have to make the contents of a table in the table control screen print ? any idea
    Regards,
    Vj

    Please refer to Demo Program,
    DEMO_DYNPRO_TABCONT_LOOP
    Its very clear.
    Shreekant

  • 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

  • P6 R8.1 Web Service installation issue on Linux

    We are trying to install P6R8.1 web services on weblogic in linux. We have the following setup: 1. Oracle 11g standard database in CentOS-5.4 64-bit 2. P6R8.1/ Weblogic 10.3.3.4 installed on CentOS 5.4 64-bit (separate server). We have installed as p

  • Getting audio from macbook to TV

    Hi- I am connecting my video from macbook to Olevial LCD via VGA, I get picture fine. I'm using a Mini RCA to connect the audio, from my macbook headphone jack to the tv's audio inputs (not composite, the ones right next to the VGA input on the tv).

  • Problem with usb recovery media

    Hello all, I own a Lenovo L412. A disc test complained that my HDD is about to die, so I decided to upgrade to an SSD. I bought an SSD, an 16gb USB flash stick and an external disk enclosure. The plan was to get the OS from my R&R to the USB flash st

  • After system restore bookmarks have gone no old profiles exist can they be retrieved

    Hi, my laptop did a system restore after crashing without me being able to backup anything ie bookmarks etc everything in the new firefox folder is dated 06/02/2014 so i cannot see or get my old bookmarks back any help appreciated. running vista and

  • Reading project... stops at 28%

    Just installed Leopard to a new volume, and hat all Application files transferred to it during the install. Final Cut Pro works with the exception of one (the most important one!) project. When trying to open it, it stalls at 'Reading project... 28%'