IllegalArgumentException on combo field selection in Jtable

I am developing a swing based application using j2sdk1.4. In one of the screens, there is a Table with one of its column having a combo box as its field. It works fine till some other tabpane selection is done. On retrying to change the combo selection, it throws following exception:
java.lang.IllegalArgumentException: focusCycleRoot is not a focus cyle root of aComponent
     at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(SortingFocusTraversalPolicy.java:195)
     at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(LayoutFocusTraversalPolicy.java:85)
     at javax.swing.LegacyGlueFocusTraversalPolicy.getComponentAfter(LegacyGlueFocusTraversalPolicy.java:63)
     at java.awt.Component.nextFocusHelper(Component.java:6156)
Afterwards the focus behaves errotically and above exception recurs.
Pls give solution/insight to above problem.

java.lang.IllegalArgumentException: focusCycleRoot is not a focus cyle root of aComponent
     at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(SortingFocusTraversalPolicy.java:195)
     at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(LayoutFocusTraversalPolicy.java:85)
     at javax.swing.LegacyGlueFocusTraversalPolicy.getComponentAfter(LegacyGlueFocusTraversalPolicy.java:63)
     at java.awt.Component.nextFocusHelper(Component.java:6278)
     at java.awt.Container.nextFocusHelper(Container.java:2433)
     at java.awt.Component.removeNotify(Component.java:5557)
     at java.awt.Container.removeNotify(Container.java:2069)
     at javax.swing.JComponent.removeNotify(JComponent.java:4299)
     at java.awt.Container.remove(Container.java:713)
     at java.awt.Container.remove(Container.java:766)
     at javax.swing.JTable.removeEditor(JTable.java:3773)
     at javax.swing.JTable.editingStopped(JTable.java:3130)
     at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:124)
     at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:328)
     at javax.swing.DefaultCellEditor$3.stopCellEditing(DefaultCellEditor.java:138)
     at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:213)
     at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:345)
     at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1196)
     at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)
     at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
     at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749)
     at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:228)
     at java.awt.Component.processMouseEvent(Component.java:5134)
     at javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452)
     at java.awt.Component.processEvent(Component.java:4931)
     at java.awt.Container.processEvent(Container.java:1566)
     at java.awt.Component.dispatchEventImpl(Component.java:3639)
     at java.awt.Container.dispatchEventImpl(Container.java:1623)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
     at java.awt.Container.dispatchEventImpl(Container.java:1609)
     at java.awt.Window.dispatchEventImpl(Window.java:1590)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Similar Messages

  • Editable Combo box in a JTable

    Hi,
    Is it possible to have an editable combo Box in a JTable with an item Listener attached to the combo Box?
    Based on whatever value the user enters in that column that is rendered as a combo Box(editable) i should be able to do some validation. Is this possible?
    Thanks in advance for your time and patience.
    Archana

    Here's a start:
    public class FileModel5 extends AbstractTableModel
    public boolean isEditable = false;
    protected static int NUM_COLUMNS = 3;
    // initialize number of rows to start out with ...
    protected static int START_NUM_ROWS = 0;
    protected int nextEmptyRow = 0;
    protected int numRows = 0;
    static final public String file = "File";
    static final public String mailName = "Mail Id";
    static final public String postName = "Post Office Id";
    static final public String columnNames[] = {"File", "Mail Id", "Post Office Id"};
    // List of data
    protected Vector data = null;
    public FileModel5()
    data = new Vector();
    public boolean isCellEditable(int rowIndex, int columnIndex)
    // The 2nd & 3rd column or Value field is editable
    if(isEditable)
    if(columnIndex > 0)
    return true;
    return false;
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();
    * Retrieves number of columns
    public synchronized int getColumnCount()
    return NUM_COLUMNS;
    * Get a column name
    public String getColumnName(int col)
    return columnNames[col];
    * Retrieves number of records
    public synchronized int getRowCount()
    if (numRows < START_NUM_ROWS)
    return START_NUM_ROWS;
    else
    return numRows;
    * Returns cell information of a record at location row,column
    public synchronized Object getValueAt(int row, int column)
    try
    FileRecord5 p = (FileRecord5)data.elementAt(row);
    switch (column)
    case 0:
    return (String)p.file;
    case 1:
    return (String)p.mailName;
    case 2:
    return (String)p.postName;
    catch (Exception e)
    return "";
    public void setValueAt(Object aValue, int row, int column)
    FileRecord5 arow = (FileRecord5)data.elementAt(row);
    arow.setElementAt((String)aValue, column);
    fireTableCellUpdated(row, column);
    * Returns information of an entire record at location row
    public synchronized FileRecord5 getRecordAt(int row) throws Exception
    try
    return (FileRecord5)data.elementAt(row);
    catch (Exception e)
    throw new Exception("Record not found");
    * Used to add or update a record
    * @param tableRecord
    public synchronized void updateRecord(FileRecord5 tableRecord)
    String file = tableRecord.file;
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    boolean addedRow = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    { //update
    data.setElementAt(tableRecord, index);
    else
    if (numRows <= nextEmptyRow)
    //add a row
    numRows++;
    addedRow = true;
    index = nextEmptyRow;
    data.addElement(tableRecord);
    //Notify listeners that the data changed.
    if (addedRow)
    nextEmptyRow++;
    fireTableRowsInserted(index, index);
    else
    fireTableRowsUpdated(index, index);
    * Used to delete a record
    public synchronized void deleteRecord(String file)
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    data.removeElementAt(i);
    nextEmptyRow--;
    numRows--;
    fireTableRowsDeleted(START_NUM_ROWS, numRows);
    * Clears all records
    public synchronized void clear()
    int oldNumRows = numRows;
    numRows = START_NUM_ROWS;
    data.removeAllElements();
    nextEmptyRow = 0;
    if (oldNumRows > START_NUM_ROWS)
    fireTableRowsDeleted(START_NUM_ROWS, oldNumRows - 1);
    fireTableRowsUpdated(0, START_NUM_ROWS - 1);
    * Loads the values into the combo box within the table for mail id
    public void setUpMailColumn(JTable mapTable, ArrayList mailList)
    TableColumn col = mapTable.getColumnModel().getColumn(1);
    javax.swing.JComboBox comboMail = new javax.swing.JComboBox();
    int s = mailList.size();
    for(int i=0; i<s; i++)
    comboMail.addItem(mailList.get(i));
    col.setCellEditor(new DefaultCellEditor(comboMail));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for mail Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Mail Id to see a list of choices");
    * Loads the values into the combo box within the table for post office id
    public void setUpPostColumn(JTable mapTable, ArrayList postList)
    TableColumn col = mapTable.getColumnModel().getColumn(2);
    javax.swing.JComboBox combo = new javax.swing.JComboBox();
    int s = postList.size();
    for(int i=0; i<s; i++)
    combo.addItem(postList.get(i));
    col.setCellEditor(new DefaultCellEditor(combo));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for post office Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Post Office Id to see a list of choices");
    }

  • Field Selection error for movement type and G/L account

    I am currently experiencing a field selection error between movement type 601 and G/L account 7140000.  The problem field is 'Segment'.  This field is set to required for the G/L account, but it is hidden for the movement type 601. This inconsistency causes an error when posting the goods movement. According to business requirement the field must be required for the G/L account, therefore we must make this field optional for the movement type.
    However, in configuration the field segment does not appear for the movement type 601. Therefore it can not be changed to optional.
    Does anyone know a workaround other than making this field optional for the G/L account because the business requirement is to have this field as required?????
    Many Thanks

    Hi,
    On the Error message detail, system will guide you to the Configuration details for Field settings for Movement type & Account, please get in touch with your FI consultant, to make the Field selection for the account similr to that of your movement type, this is a very common issue.
    Regards
    Chandra Shekhar

  • Signing: Empty list in "Field Selection" when picking fields to mark as read-only on signing

    I have a PDF form with some signature fields. I am attempting to mark some of the fields in the document as read-only when the document is signed. This is what I did:
    1. Modify the "Signed" properties of the signature field.
    2. Choose "Mark as read-only" and "Just these fields" in the drop down list beside this option.
    3. Click on the "Pick" button to select the fields to be marked read-only when the user signs this field.
    In the "Field Selection" dialog that comes up, nothing is shown in the list.
    Am I doing something wrong? Is there something I need to do to add fields to this list, or should it be populated automatically allowing me to choose what I want?
    I noticed this feature is only available for Acrobat 6.0 and later. The compatibility level for the document I created is 1.6 (Acrobat 7 and later). It is created in Acrobat X.
    Just figuring my way around these things. Did a google search for any solutions, but couldn't find anything on this.
    Any help would be greatly appreciated.
    Thanks,
    Ron

    Hi Ron,
    It certainly sounds like you are on the right track.What version of Acrobat are you using, is it Pro or Standard, Mac or Win? I see where you mentioned the file was created in Acrobat X, but I'm not sure that the app that create the PDF file is the same version as the one you are using for editing.
    Steve

  • Contract and release order for service: connection and field selection

    Hi Experts,
    I have some questions about contract and release order (PO against contarct) for services.
    A -I want ot know if there is any standar way to oblige the creation of a release order to a contract. I mean i had some users  that create a release order w/o reference to the contract and it works fine anyway. The document is a copy of the NB. I cant find the way to reference the 2 purchase document clearly.
    B - Using a release order, when copying the item from contract catalogue by clicking the service selection icon,  description and net price are correctly copied:  the description is not modifiable  but the net price can be change by the user. Can some body explain me where to modify this setting? where is the field selection and where in SPRO step by step please,
    thanks in advance
    Livio

    ... Nobody is so nice to suggest me any solution?  
    For the point A probably the only way is user-exit.... but for B i don't have any idea, please let me know
    thanks
    Livio

  • Field selection for mvt type 544/acct 423001differs

    Hi Guru's
    Scenario
    In Subcontracting
    while doing reverse of Goods receipt this error is occuring.
    Can anybody help me.
    Rgds
    Ana.
    Edited by: ana kamat on Dec 20, 2008 8:21 AM

    Hello
    In SE38 run  RM07CUFA
    System will shopw for whcih field there is incompetability.
    Then goto OBC4 for G/L field selection and OMJJ for movement type field selection.
    Both the field selectons should be compatable.(ie a field which is display for movemeent type shouldn't be requreid entry for G/L. likewise)
    Regards

  • How do I resolve: Field Selection dialog [Pick... button] in "Mark as read-only" section of Signed tab for Digital Signature field is not working

    I am using Acrobat Pro X on Windows 7 Enterprise x64 to create a form. When I have a simple form with a few fields, I am able to use the "Pick..." button to select the fields I want to select, but in a more complex form (20 fields with 3 Signature fields) The Field Selection dialog does not work. I can make the selections, but they are not saved. Removing fields does not resolve issue. IF I start with a blank form and add a few fields, the dialog will work, but after adding more, it quits working. Reader XI is also installed.

    And that is why many responders use only the custom JavaScript calculation option.
    The UI for the select fields and simplified field nations are only a way to pass field names to a JavaScript function that performs the actual calculation. Sometimes these functions call other functions and pass the parameters can lead to errors in the attempted code.
    I would start to learn code JavaScript for Acrobat.
    The pick field dialog is for performing calculations involving sums, products, averages, minimum, and maximum. I am not sure how that would work with a digital signature. Once a signature is applied the form fields could be locked.

  • Free PO indicator in field selection key/group

    Hi all,
    I would like to make Free PO indicator as mandatory field in PO thru specific document type field selection reference key. When I search for the field, it is not available for existing field selection key (Field selection group).
    How can I add the Free PO indicator into this field selection key/group or Does it represented in different name.
    Kindly clarify.
    With regards
    Suddy

    Hi,
    "Free Indicator" doesn't exist in field selection. If you wanto to have Free Indicator ON for a specific PO Document Type then you need to do ABAP Development for this.
    Use BAdi --> ME_PROCESS_PO_CUST
    Interface --> PROCESS_ITEM (Processing of Item Data)
    Below is the Sample Code for your reference;
    If w_bsart EQ 'ZPOD'.
        wa_item3-repos = ' '.
      ELSE.
      ENDIF.

  • Field selection for movement type 601 account 894025 differs for cutomer

    While posting goods after saving delivery merror message
    Field selection for movement type 601/aact 894025 differs for customer goods movement
    I tried OMJJ>Mvtmt Type>601>Field selection enjoy>601  KONTO  Optional field
    Now this is only happening in the cases where I have assigned free goods Inclusive 10MT. If the order is less than 10MT (that is if no free goods attached) posting is accepted & billing & account determination is processed successfully.
    I am unable to identify the reason though I have worked a lot on MM/Fico on the system.
    Please provide your valued inputs why this is happening?
    Thanks for your time.
    Rajiv

    Hi Raja,
    Thanks for prompt reply.
    I shall appreciate if you elaborate how to check
    check the Field selection goup in control tab for that GL 
    I tried OBC$--> (Is this correct?)
    I checked cost center field G004 -->Addl Act assignemtn -->Cost center which is Optional entry. Should I check any other items on the screen as I am unable to understand which field is applicable on a/c field.
    Profit center, cost object are  in G004 as supressed field.
    So should I make optional? So thing will work.
    Other Q should I also consider G025 Inventory adjustment account? As per error this a/c is not shown. So pl advise me steps or heading which I should consider.
    Thanks for yr time.
    Rajiv

  • FIELD SELECTION FOR MOVEMENT TYPE AND ACCOUNT

    Hi,
           I am trying to do the Post Goods Issue (PGI).
    But, the system is throwing an error as mentioned below.
    Field Selection for Movement Type 901 / Account 4070000001 differs for Customer Goods Movement (015)
    I made the Cost Center as Required Entry. But, there was no effect on the PGI.
    I could not make out the exact error.
    Please guide me properly in this regard and do the needful.
    Thanks in advance.
    Thanks & Regards,
    Srinivasa M.S
    +91-9910077829

    Hi,
    On the Error message detail, system will guide you to the Configuration details for Field settings for Movement type & Account, please get in touch with your FI consultant, to make the Field selection for the account similr to that of your movement type, this is a very common issue.
    Regards
    Chandra Shekhar

  • Field Selection for Open Item Clearing

    In Field Selection for open item clearing (t-code : O7F1),
    can I maintain non standard field such as "XREF3" (Reference KEY 3) ?
    I tried to insert "KIDNO" into O7F1 and system allowed it.
    But when I checked in F-51, the XREF3 (Reference KEY 3) was not in the field selection.
    Have anyone get the same issue?
    Thanks.

    Hi Sneha,
    Check the following config path for relevant settings-
    Financial Accounting (New) > Accounts Receivable and Accounts Payable  > Business Transactions  > Open Item Clearing > Make Settings for Processing Open Items > Choose Selection Fields
    Select customer , vendor etc as per requirement.
    Regards

  • Transfer Purchase Order - Error message "Field selection ZTR not defined"

    Hi all,
    I've customized a new transfer purchase order type : TRA.
    When I go to ME21N and choose TRA type, SAP displays this error message :
    "Field selection ZTR not defined
    Message no. ME028
    The field selection required by the system is not defined in table 162.
    Further processing is currently not possible."
    How can I fix that please ?
    Regards,
    Bahia.

    Hello,
    Check in IMG - MM - Purchasing - Purchase order -define screen layout - Check any field selction ZTR has been configured. And also check in Purchasing - purchase order - define document types - your PO doc type has reference to field selection group ZTR - if yes change it..
    Regards
    Mahesh Naik

  • How to give out a status message indicating the number of fields selected

    Hi experts,
    I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that could do this? I mean like giving the FM the t_output and it will show a status message with the number of fields selected?
    Thank you for your input.
    Nadin
    Message was edited by:
            nadin ram

    Hi Ram,
    Write this code,
    Message 'Select Only Ten Fields' type 'I'.
    It displays The Message in Message Box.
    Or if you want the Error Message means,
    Message 'Select Only Ten Fields' type 'E'.
    Thanks,
    reward If Helpful.

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE

    While executing BAPI_PO_CREATE1 by using Adaptive RFC Model in Webdynpro
    I was facing the following Error
    Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE
    But while trying to create BAPI_SALEORDER_CREATE is working properly with the same configuration.
    If anyone come accross this issue please help me out

    This is beacuase of some issues in the parameters that are passed and is rectified.
    krishna

Maybe you are looking for

  • Photoshop Elements 8 compatible with Mountain Lion?

    I'm wondering if PSE 8 is compatible with Mountain lion, and if so, is anyone else having trouble installing it? Thanks!

  • Problem in setting up jndi name in servlet

    hi, I am using netbeans6.8, glassfishv3 with mysql5.1. I set up a new jdbc Resource & connection pool by using the glassifsh admin console, and associated the connection pool with jdbc resource when i ping the status of the connection pool , it is su

  • Videos darker in iTunes than Quicktime Player

    I've bought a few movies from iTunes and imported a few from other sources. Whilst watching one purchased from iTunes (There will be blood) I felt the video was very dark. I did a little experimenting and have discovered that videos play considerably

  • On FF using google surch I have a white tab next to Gtabs that is yahoo! how can I get read of it?

    the Yahoo tab is a white box after the +tab... when the plus tab is selected it brings up a 'Yahoo!' search window not a new google window... I can not find anything for yahoo on ether google or FF... or in my computer software, even went thru regedi

  • Quicktime Pro - Can mp4 be converted to mpeg-2

    Subject says it all. Before I upgrade to QT Pro, I'd like to know if I could load up an .MP4 file and convert it to /save it as MPEG-2. I'm posting this in the Windows QT forum because curiously enough Apple doesn't have one for Mac users. Thanks for