How? double click to edit a cell in a JTable (Custom Editor/TableModel)

I have a JTable with a custom table model that when you click anything in the first column a custom editor appears. I would like to know how to make the custom editor appear after a double click on any cell in the first column. It can probably be done with a MouseListener but is there any easier way to do this?
Thanks.

this works for me.
public class MyJcustomEditor extends DefaultCellEditor {
public MyJcustomEditor(JTextField tField) {
super(tField);
setClickCountToStart(2);
}

Similar Messages

  • How to make Double Click To Edit work instead of ClickToEdit for Af:Table

    Hi All,
    We use AF:Table in clickToEdit mode and most of the time the users use this table for selecting a master record then work on the detail records. To avoid the cost of rendering the selected row as editable we would like to change the behavior to Double Click To edit. This way the user can intentionally put the selected row in edit mode when needed. What would be the best approach to achieve this ?
    We use 11.1.1.6 and ADF BC.
    Thanks

    Not sure if you can get it to work in 11.1.1.6.0 as you don't have the ActiveRowKey property which can be used to make a table row editable. The property comes with 11gr2.
    What you can try is to set the tabel to clicktoedit, add a clientListener which you use to listen to the click event and then cancel the event. Add another clientListener whihc handles the doubleClick event, make the clicked row the current row (see http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf) and, well now comes the problem, make the current row editable. I don't know how to do this without the ActiveRowKey property.
    One other possible solution is a trick described here http://dstas.blogspot.com/2010/08/press-edit-button-to-make-table-row.html
    here a transient attribute is used to manipulate the isEditable() status of an attribute of the VO. This should do the trick, but is much more work.
    May be someone else knows a better solution.
    Timo

  • How to get "Double-click to edit" behavior in fields added to Master slides

    Hi! I edited a master slide to add a box of Placeholder Text. Now the word "Text" appears whenever I make a new slide (child of the master), which is fine. But if I don't change the text on a particular slide, the word "Text" shows up there when I run the slideshow. This is different from the behavior of the Apple-defined placeholder text, where the phrase "Double-click to edit" does NOT appear when you run the slideshow.
    I've searched the help files and tried various Inspector settings, but cannot seem to get this wonderful timesaving feature working for my own Master Slide fields. Is it possible?

    I was just looking for a solution to this... how timely! The closest I found to being able to have an "apple-defined placeholder" is by following all your steps (editing master, making new text box), but then doing the following:
    1) select the text box
    2) go to the "Format">"Advanced" menu and select "Define as Text Placeholder."
    This isn't the same, since the text will always show up on the slides (as opposed to only showing up if YOU wrote something in the box... you can delete it if you want, but its not the same as apple's default), but it does have the functionality you want. I hope this helps you!
    EDITED TO ADD:
    ...aaaand the age-old trick of reading the manual works again. Go to page 188 of the linked document and you'll see that there's a different way to do it. In short:
    1) Make a text box in a master slide, keep it selected.
    2) In the Inspector, go to "slide inspector" (second from right), and select the "appearance" tab.
    3) Check the checkbox next to "Define as Text Placeholder." Assign it a tag.
    For me, I found that once I did this, I could delete the text inside the textbox and it wouldn't automatically be deleted. I assume that assigning it a tag has something to do with that. I still don't know how to get text to automatically show up in the textbox... that seems to be a special functionality reserved for the apple-defined boxes. Again, I hope this helps!
    Message was edited by: Eliezer Kanal

  • Can No Longer See Photos After Double Click to Edit

    Photos and videos only visible as thumbnails. When double click to edit, cannot see. However, can double click on books and see them in edit mode. All photos still located in iPhoto Library. Have run backup and gone through all four options for database repair. Have uninstalled and reinstalled version 9.5.1. Still cannot see photos. Running latest version of OS Mavericks and latest version of iPhoto.

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Can't edit in Design tab - "overflow: hidden (double-click to edit)" - cause, remedy?

    In the Design tab, the content of some web pages becomes uneditable (where it had previously been editable), even though it is in an editable region in the template. All of the uneditable text has a black background. When the cursor is floated over this text a popup gives the message "overflow: hidden (double-click to edit)". (Note: the text is still editable in the Code tab.) Double clicking in the Design tab often doesn't do anything but sometimes corrects the problem. The following also didn't help:
    1. Making revisions in the Code tab and then refreshing. (The revisions show up in the Design tab but the text there is still uneditable.)
    2. Closing and reloading the page.
    The content of other pages that use the same template remains editable.
    What causes this problem?
    What is the best method to prevent it and correct it?
    DW CS6
    Win7 x64
    Thanks,
    Don C.

    The problem is always a side-effect of the use of the overflow:hidden style. So why use it? It's tremendously valuable as a way of clearing floats inside a container, rather than adding a float clearing page element. And besides, if you can still edit the content in Code view, why worry? Anyhow, paste this into a new HTML page and try it.
    <div style="height:100px;overflow:hidden;">
    <p>This content will not be editable without double clicking on it. Furthermore, any floats contained within this div will be cleared before closing the div, allowing the div to completely wrap its contents.</p>
    <p>This content will not be editable without double clicking on it. Furthermore, any floats contained within this div will be cleared before closing the div, allowing the div to completely wrap its contents.</p>
    <p>This content will not be editable without double clicking on it. Furthermore, any floats contained within this div will be cleared before closing the div, allowing the div to completely wrap its contents.</p>
    <p>This content will not be editable without double clicking on it. Furthermore, any floats contained within this div will be cleared before closing the div, allowing the div to completely wrap its contents.</p>
    </div>
    In Design view, you will only see two paragraphs. When you click in either of those two paragraphs, you will not be able to edit anything. When you double click you will see the div expand to show all 4 paragraphs, and you will then be able to click and edit at will.

  • In ALV reports how double click event works?

    in ALV reports how double click event works? Explain in detail.....

    hi,
    last lines is used for clicking
    *& Report  Z_SWAS_FUNCTIONAL
    report  z_swas_functional.
    tables: qmel,viqmel,iloa,afko.
    -- global data declerations--
    data: ok_code like sy-ucomm,
          gt_itab type table of zfunctional,
          t_output type table of zfunctional,
          g_container type scrfname value 'CUSTOM_CONTROL',
          grid1  type ref to cl_gui_alv_grid,
          g_custom_container type ref to cl_gui_custom_container,
          e_row type lvc_s_row,
          e_column type lvc_s_col,
          es_row_no type lvc_s_roid.
    *CLASS DECLARATION
    class z_functional definition.
    public section.
    class-methods : handle_double_click
                    for event double_click of cl_gui_alv_grid
                         importing e_row  e_column.
    endclass.
    *CLASS IMPLEMENTATION
    class z_functional implementation.
    method handle_double_click.
           perform handle_double_click using e_row e_column es_row_no.
    endmethod.
    endclass.
    *CODE FOR SELECTION SCREEN
    selection-screen begin of block 84433  with frame title text-t01.
    parameters : n_number like viqmel-qmnum,
                    n_type like qmel-qmart,
                    f_loca like iloa-tplnr,
                    name like qmel-qmnam.
    selection-screen end of block 84433.
                        screen validation event                          *
    at selection-screen on n_number.
      select single *
        from viqmel
          where qmnum eq n_number.
    if sy-subrc ne 0.
      MESSAGE 'NOTIFICATION NUMBER DOESNOT EXIST' TYPE 'E'.
    endif.
    select qmart from qmel into qmel where qmart eq N_TYPE.
    endselect.
    if sy-subrc ne 0.
      MESSAGE 'NOTIFICATION TYPE DOES NOT EXIST' TYPE 'E'.
    endif.
    *START OF SELECTION EVENT
    start-of-selection.
        perform fetchdata.
    end-of-selection.
    *Call screen event
    call screen 100.
    *PERFORM DISPLAY.
    *&      Form  FETCHDATA
          text
    -->  p1        text
    <--  p2        text
    form fetchdata .
    *SELECT VIQMEL~QMNUM VIQMEL~QMTXT VIQMEL~QMDAT VIQMEL~LTRMN VIQMEL~PRIOK
          VIQMELBEZDT VIQMELAUFNR VIQMELTPLNR AFKOGLTRP into corresponding fields of table GT_ITAB
             FROM VIQMEL INNER JOIN AFKO ON VIQMELAUFNR = AFKOAUFNR
                   WHERE VIQMELQMNUM IN N_NUMBER and VIQMELQMART IN N_TYPE AND VIQMEL~QMNAM IN NAME.
    call function 'ZSWAS_TEST'
      exporting
        qmnum         = n_number
       qmart         = n_type
       tplnr         = f_loca
       qmnam         = name
      tables
        output        = gt_itab
    if sy-subrc ne 0.
       message e000(z84433_msg_class).
    endif.
    endform.                    " FETCHDATA
    *&      Module  STATUS_0100  OUTPUT
          text
    module status_0100 output.
      set pf-status 'MAIN'.
    SET TITLEBAR 'xxx'.
    *creating custom container and grid instance
    if g_custom_container is initial.
        create object g_custom_container
               exporting container_name = g_container.
        create object grid1
               exporting i_parent = g_custom_container.
        call method grid1->set_table_for_first_display
          exporting
            i_structure_name = 'ZFUNCTIONAL'
          changing
            it_outtab        = gt_itab.
    *set handler events
        set handler z_functional=>handle_double_click for grid1.
      endif.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module user_command_0100 input.
    case ok_code.
       when 'EXIT'.
        perform exit_program.
    endcase.
      clear ok_code.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Form  EXIT_PROGRAM
          text
    -->  p1        text
    <--  p2        text
    form exit_program .
    leave program.
    endform.                    " EXIT_PROGRAM
    *&      Form  handle_double_click
          text
         -->P_E_ROW  text
         -->P_E_COLUMN  text
         -->P_ES_ROW_NO  text
    form handle_double_click  using   e_row type lvc_s_row
                                      e_column type lvc_s_col
                                      es_row_no type lvc_s_roid.
    data: t_output type  zfunctional.
        read table gt_itab into t_output index e_row-index .
      if sy-subrc = 0 and e_column-fieldname eq 'QMNUM'.
        set parameter id 'K01' field t_output-qmnum.
        call transaction 'ZSMART' and skip first screen .
      endif.
    endform.                    " handle_double_click
    regards,
    swaroop.

  • Help with editing a cell in a JTable. DESPERATE

    Hi! Is there someone out there that could help with some source code for editing a cell in my JTable when I run it as an applet??
    It works fine when I run it as an application.
    I manage to select the row and write a number in it, but I can't get out of the cell (it seems that the program stops??). I want to enter an integer in a cell and when I click enter or with the mouse in an other cell the value that I enter should update some other cell( multiply the entered value with some fixed number and update a cell in a second coloumn)
    I am really desperate now..... I have thought about using a MouseListener....
    I am using a tablemodel that is from AbstractTableModel.

    Are you using some cell editors?
    While converting inside them, you might be getting some exceptions (like parseexception)which is stopping you from proceeding further.
    Are you using your own tablemodel with custom datatypes?
    Hope this helps,
    Ramkumar

  • Needs double click to edit cell in JTable

    I know this is bad design but there's no other way that I could possibly meet the requirement which is to have dynamic components. Anyhow, the requirement is to have any kind of components(e.g. TextFields, Combobox, Regular expression fields, a panel with a number of checkboxes) in a table cell in the same column. It would have been easier to do this by using the the DefaultCellEditor, with the 'panel containing a number of checkboxes' I cannot use it.
    I already have an implementation for this requirement. There was no problem with it when we used Java 1.5. But when we shifted to Java 1.6, I noticed that I need to double-click on a cell so that I can edit it. I did not notice this behavior at all with 1.5. What could have changed in 1.6?
    Below, are my (trimmed-down) codes:
    //TestComponent.java
    public class TestComponent extends JPanel{
    private int componentHeight=16;
    public TestComponent(int i){
    this.setPreferredSize(new Dimension(90, this.componentHeight));
    setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    switch (i){
    case 0: createTextField(); break;
    case 1: createCheckBox(); break;
    case 2: createCombo(); break;
    private void createTextField(){
    String text = null;
    int textFieldMaxLength = 5;
    JTextField oText = new JTextField(textFieldMaxLength);
    // add it to this Panel:
    this.add(oText);
    // set the data:
    text = "test";
    oText.setText(text);
    // set size for this TextField:
    Dimension fieldSize = new Dimension(
    textFieldMaxLength * 13, this.componentHeight);
              oText.setPreferredSize(fieldSize);
              oText.setMinimumSize(fieldSize);
              oText.setMaximumSize(fieldSize);     
    private void createCheckBox(){
    JCheckBox chkbox = new JCheckBox();
    this.add(chkbox);
    private void createCombo(){
    JComboBox combo = new JComboBox(new String[]{"apple", "orange", "plum", "grapefruit"});
    Dimension fieldSize = new Dimension(                    5 * 13, this.componentHeight);
              combo.setPreferredSize(fieldSize);
              combo.setMinimumSize(fieldSize);
              combo.setMaximumSize(fieldSize);
    this.add(combo);
    //ComponentCellEditor.java
    public class ComponentCellEditor extends AbstractCellEditor
         implements TableCellEditor, Serializable{
    protected JComponent editorComponent = null;     
    public Component getComponent() {
    return editorComponent;
    public Object getCellEditorValue() {
    return editorComponent;
    public boolean isCellEditable(EventObject anEvent) {
    return true;
    public boolean shouldSelectCell(EventObject anEvent) {
    return true;
    public boolean stopCellEditing() {
    fireEditingStopped();
    return true;
    // Implementing the TreeCellEditor Interface
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
    this.editorComponent = (TestComponent)value;
    return editorComponent;
    //ComponentCellRenderer.java
    public class ComponentCellRenderer implements TableCellRenderer
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    TestComponent oComp = (TestComponent) value;
    if (isSelected) {
    oComp.setForeground(table.getSelectionForeground());
    oComp.setBackground(table.getSelectionBackground());
    } else {
    oComp.setForeground(table.getForeground());
    oComp.setBackground(table.getBackground());     
    return oComp;
    //TestTable.java
    public class TestTable
    public static void main(String []args){
    String columns[] = {"Text", "Value"};          
    Class types[] = {String.class, TestComponent.class};
    boolean editable[] = {false, true};
    AsrTable table = new AsrTable(new Dimension(200, 150), columns, types, editable);
    table.addRow(new Object[]{"Field1", new TestComponent(0)});
    table.addRow(new Object[]{"Field2", new TestComponent(1)});
    table.addRow(new Object[]{"Field3", new TestComponent(2)});
    table.setDefaultEditor(TestComponent.class, new ComponentCellEditor());
    table.setDefaultRenderer(TestComponent.class, new ComponentCellRenderer());
    table.setShowGrid(false);
    table.setRowHeight(20);
    table.setRowSelectionAllowed(false);
    JFrame frame = new JFrame();
    frame.addWindowListener( new WindowAdapter() {
         public void windowClosing(WindowEvent e)
         Window win = e.getWindow();
         win.setVisible(false);
         win.dispose();
         System.exit(0);
    JScrollPane pane = new JScrollPane(table);
    frame.getContentPane().add(pane);
    frame.pack();
    frame.setVisible(true);
    }

    My last post doesn't have Code Formatting.
    // TestComponent.java
    public class TestComponent extends JPanel{
         private int componentHeight=16;
         public TestComponent(int i){
              this.setPreferredSize(new Dimension(90, this.componentHeight));
              setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
              switch (i){
                   case 0: createTextField(); break;
                   case 1: createCheckBox(); break;
              case 2: createCombo(); break;
         private void createTextField(){
              String text = null;
              int textFieldMaxLength = 5;
              JTextField oText = new JTextField(textFieldMaxLength);
              // add it to this Panel:
              this.add(oText);
              // set the data:
              text = "test";
              oText.setText(text);
              // set size for this TextField:
              Dimension fieldSize = new Dimension(
                        textFieldMaxLength * 13, this.componentHeight);
              oText.setPreferredSize(fieldSize);
              oText.setMinimumSize(fieldSize);
              oText.setMaximumSize(fieldSize);
         private void createCheckBox(){
              JCheckBox chkbox = new JCheckBox();
              this.add(chkbox);
         private void createCombo(){
              JComboBox combo = new JComboBox(new String[]{"apple", "orange", "plum", "grapefruit"});
              Dimension fieldSize = new Dimension( 5 * 13, this.componentHeight);
              combo.setPreferredSize(fieldSize);
              combo.setMinimumSize(fieldSize);
              combo.setMaximumSize(fieldSize);
              this.add(combo);
    // ComponentCellEditor.java
    public class ComponentCellEditor extends AbstractCellEditor 
         implements TableCellEditor, Serializable
         protected JComponent editorComponent = null;     
         public Component getComponent() {
              return editorComponent;
         public Object getCellEditorValue() {
              return editorComponent;     
         public boolean isCellEditable(EventObject anEvent) {
              return true;
         public boolean shouldSelectCell(EventObject anEvent) {
              return true;
         public boolean stopCellEditing() {
              fireEditingStopped();
              return true;
    //  Implementing the TreeCellEditor Interface
        public Component getTableCellEditorComponent(JTable table, Object value,
              boolean isSelected, int row, int column) {
              this.editorComponent = (TestComponent)value;
              return editorComponent;
    // ComponentCellRenderer.java
    public class ComponentCellRenderer implements TableCellRenderer
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row,
                   int column) {
              TestComponent oComp = (TestComponent) value;
              if (isSelected) {
                   oComp.setForeground(table.getSelectionForeground());
                   oComp.setBackground(table.getSelectionBackground());
              } else {
                   oComp.setForeground(table.getForeground());
                   oComp.setBackground(table.getBackground());
              return oComp;
    // TestTable.java
    public class TestTable
         public static void main(String []args){
              String columns[] = {"Text", "Value"};          
              Class types[] = {String.class, TestComponent.class};
              boolean editable[] = {false, true};
              AsrTable table = new AsrTable(new Dimension(200, 150), columns, types, editable);
              table.addRow(new Object[]{"Field1", new TestComponent(0)});
              table.addRow(new Object[]{"Field2", new TestComponent(1)});
              table.addRow(new Object[]{"Field3", new TestComponent(2)});
              table.setDefaultEditor(TestComponent.class, new ComponentCellEditor());
              table.setDefaultRenderer(TestComponent.class, new ComponentCellRenderer());
              table.setShowGrid(false);
              table.setRowHeight(20);
              table.setRowSelectionAllowed(false);
              JFrame frame = new JFrame();
              frame.addWindowListener( new WindowAdapter() {
                   public void windowClosing(WindowEvent e)
                        Window win = e.getWindow();
                        win.setVisible(false);
                        win.dispose();
                        System.exit(0);
              JScrollPane pane = new JScrollPane(table);
              frame.getContentPane().add(pane);
              frame.pack();
              frame.setVisible(true);
    }

  • Double click at a matrix cell

    hello:
       i wanna load a new form from a selected cell in a matrix using the cell double click... but i know how to do it.

    Case SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK
                        oForm = objMain.objApplication.Forms.Item(FormUID)
                        If pVal.BeforeAction = False Then
                            If pVal.ItemUID = "orad1" And pVal.ColUID = "rte" Then
                                Try
                                    oMatrix = oForm.Items.Item("orad1").Specific
                                    If pVal.Row > 0 Then
                                            Me.LoadForm(FormUID, pVal.Row)
                                        End If
                                    End If
                                Catch ex As Exception
                                    objMain.objApplication.MessageBox(ex.Message)
                                End Try
                            End If
                        End If

  • Double-click to edit?

    Anyone know of a hack er something to get a double-click in the card panel's background to flip between edit/view modes?
    --jason
    MacBookPro17,PowerMacG5   Mac OS X (10.4.10)   Avid Crack Smoker

    Ben:
    1 - No. We can't change those default features of iPhoto.
    2 - the highlight color is hard coded in the application and is not user changeable.
    It's just the nature of the beast.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Double clicking matrix or grid cell

    Hi there,
    I Wanted to know if there's some way for my addon to know that a matrix or grid cell has been double clicked.
    Thanks in advance

    Hi,
       There are two events 'et_DOUBLE_CLICK' and 'et_CLICK ' in Item event's pval.
    HTH
    B Ravi Shankar

  • Alt double click and edit in photoshop

    Hi,
    In inDesign CS6 When I alt+double click in an image in a frame, It openned in Photoshop Cs6 , I then put some modifications, close and save it but when I return in inDesign it's the same photo
    I get.
    What's wrong please ?
    Thank you.

    Glad I could.. errr.. almost help. Can take a look at my Thread and let me know if you get the same thing? Only takes a minute or two.
    http://forums.adobe.com/thread/1041580?tstart=0

  • HOw can I handle event at Cell level in  JTable

    I am having this problem. I want to handle the double click and selection change event at individual cell level or row level in JTable. The FoccusListener and MouseLIstener I am adding are working only at Table level.
    By onSelectionCHange I mean when a user momves from one cell to another cell.
    How can I get a handle to individual cell and handle evetns on it.
    Please help
    Thanks.

    javax.sing.table.AbstractTableModel.addTableModelListener(TableModelListener l)

  • Double click event for the I/O field in custom screen

    Hello all:
        I have development a dialog program now, and I want to show the MM03 screen when I double click the I/O field for material number ( such as the CO03 materil field ). I had set the screen display attribute to " Responds to double-cick",but I can't receipt any infor from the PAI Flow but a message "Please choose a valid function".
       some friends proposed me to set the Function Code for it , but the FctCode only support for "button" and "tab titles" and "Dropdown box" , how can I do.

    Hi,
    Check ur pf-status. in that did u give PICK to the functionkey F2 which will enable the db click facility.
    apart from setting the PF-status with PICK (F2) also set the property "respond to double click" for the tablecontrol column in screen painter.
    and u can get the values of the clicked field by GET CURSOR command.
    Also you can refer:-
    double click from table control?
    Doubleclick in Table control
    Hope this helps you.
    Regards,
    Tarun

  • How to insert textfield in a cell of a jtable ?

    Hi,
    i m not sure how to insert a textfield into a cell of a jtable which already contains some text in the cell .. Can anyone juz show mi a simple program to do this ??? thanks in advance =)

    Hi Michael,
    i get wad u r trying to say ermm actually i did that already. But wad i need to do is such that in a cell, there will b some text displayed (which i have done so) but i also need to add an additional box for user to enter the values n in this case i haf choosen to add the jtextfield box .. But i m not sure how to ... sorry for the misunderstanding ~~~ n thanks for ya reply =)

Maybe you are looking for

  • I can't change my Fios speeds to Quantum without chaning my TV plan!?

    So for the previous 2 nights, i've been trying to change my internet speed from 20/5 to 75/35. I've tried though the website, MULTIPLE times. The website works sporadically, sometimes i get furhter than others, but the end result is always the same,

  • Iphone activation online is not working

    So heres my issue. I got the iphone 4 yesterday. Did what it said online to activate it, it said it was pending, but my iphone 4 never gave any indication it was in the process of activating nor did i recieve an email saying the process was starting.

  • Photoshop CS6 extremely slow with Mac OSX 10.9.5

    Can someone please help me?  I had CS5 no issues.  But ever since I got CS6, Photoshop just doesn't work right.  Doing the simplest thing completely bogs it down.  I have been struggling with this for a year and am at my wits end.  Please help.

  • Apple has always been there for us! Don't blame them alone!

    I have had an Apple since 1979 and even owned a computer school using all Apples for 20 years. Apple was always there for us. Never had a problem with Apple products. I'd blame the hackers and competetion and the sick people who are out to destroy  i

  • IPhoto project disappeared on ipad

    I created a photo book in iPhoto and was preparing to purchase a printed copy when the app auto-updated to a new version and the project disappeared.   There is not even an apparent projects option now, only create and share online journals.   Did th