Multicolumn lsitbox select 1or More rows but user cannot edit

I would like to know if it is possible to create a multicolumn listbox that a user can select one or more rows BUT cannot edit any entries (ie. is indicator?).

The key thing to remember about a listbox is that although it looks like a table, it's really a numeric input. The strings you see in the "table" are set via the strings[] property node--which in the case of a multicolumn listbox is a 2D array of strings.
Use this property to set the contents of the control at runtime and you don't have to worry about a user changing it.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • CProject user cannot edit (confirm) their assigned tasks

    Dear Experts,
    we are facing an unexpected behaviour on cProjects: project user cannot edit (confirm) their assigned tasks, because the authorizations at the task level for user appear as Read (authorizations view on task), while on the project definition, for the same tasks the user is assigned Write permissions. Something must be happening in between that we are not getting right.
    More details on the configuration behind and the process:
    - In Project definition level, project roles (coming from a project template) are staffed to users (business partners)
    - Project roles coming from project template are assigned to a project role type with Default authorization set as Read. Because we want all project users to be able to access in read mode to the whole project and tasks; and then be able to edit (Confirm) only their assigned tasks. Except for the project manager role, who has a different project role type assigned wih Admin default authorization set
    - After making the staffing at project level, this seems to be working fine: all project users have read access assigned at project structure level and rest of tasks, except the project manager who has Admin authorization. And for each task, the user assigned to the task has write permissions.
    - But when a user open the task from the tasks dashboard, and go to the Authorizations tab, then the user has Read permission for the same task, which causes the consequence of not being able to Edit and Confirm.
    Can you guide us to understand why the Write authorization is being overriden to Read at user access? Should not the default authorization “read” at project role type be overwritten by the assignment of the user to the task?
    Maybe is there other configuration setting that is missing or needs to be checked?
    Many thanks in advance,
    Roberto

    Thanks Ravi, I answer your questions:
    1) How did you give write access? - Manually in ACL-Authorisations tab or through selection of responsible role/person in basic tab.
    we use the second option. We create projects from templates that have roles assigned to tasks. After we complete staffing in the project, we assign users (business partners) to each project role. After this, automatically, users are assigned as task Responsible and receive their tasks assigned in the task dashboard.
    Question here: since we do not use Resources, the field responsible resource is not used/filled- Is this required?
    2) Whether the task accessed by the user is in 'Released' status?
    yes, tasks are released, so that ther users receive the task in Tasks Dashboard, but due to the permissions issue, they cannot confirm task
    The only possible workaround we have found to solve the issue is to assign Write authorizations to all users, but at project level. So the consequence is that users can edit all the project tasks (not only their assigned tasks) and we want to avoid that. We want users to have read access to whole project and write access to their assigned tasks (by staffinf Users to roles)
    thanks again for help.
    best regards,
    Roberto

  • Users cannot edit a shared calendar of a shared mailbox that was deleted from the cloud and recreated on premise

    Description:
    The following example account [email protected] is an on premise AD account being used as a shared mailbox in the cloud. We have discovered that regardless of what we do, not a single user can edit the calendar entries.
    The following message is shown in Outlook Click to Run 2013 when an entry. "New appointment" button is also greyed out, including "Calendar Permissions" and some others.
    This problem started when the shared mailbox was created wrongly by creating it in the cloud first and we had to delete it and start over. The "in the cloud" user was deleted and the same user was created in AD on-premise with the same account name
    and then Dir Synced with the cloud. A license was assigned, a user mailbox on exchange online created and the type was converted to a shared mailbox and Editor rights were defined on the calendar folder for specific users.
    Actions performed:
    Action01: gave users Editor rights on calendar folder through powershell
    Result01: Rights correctly added and can be seen when get-mailboxfolderpermission is ran
    Action02: Opened calendar with Outlook and tried to edit entries
    Result02: Error message pops up saying "You don't have permission to create an entry in this folder. Right click the folder and check..."
    Action03: Opened calendar with OWA of users
    Result03: Users can edit the shared calendar on OWA
    Action04: Gave users Full Access permission on mailbox with automapping on
    Result04: Users can edit calendar in Outlook
    Action05: Gave users Full Access permission on mailbox with automapping off (mailbox no longer visible in outlook)
    Result05: Users cannot edit calendar in Outlook
    Action06: Removed Full Access permission on mailbox for users
    Result06: User cannot edit calendar in Outlook
    Action07: Removed [email protected] from on-premise AD, performed dirsync, removed account from ms online using remove-msoluser -removefromrecyclebin
    Result07: No trace of the account was anywhere to be found.
    Action08: Created new [email protected] account on on-premise AD, assigned o365 license to user including exchange online license
    Result08: New empty Exchange online mailbox was created
    Action09: gave users Editor rights on calendar folder through powershell
    Result09: Rights correctly added and can be seen when get-mailboxfolderpermission is ran
    (Note: whenever mailboxfolder permissions are modified for this mailbox it's as if they are ran THREE times in a row, the first time they are applied and the powershell gives immediately 3 exceptions behind this:
    An existing permission entry was found for user: [email protected]
        + CategoryInfo          : NotSpecified: (:) [Add-MailboxFolderPermission], UserAlreadyExis...nEntryException
        + FullyQualifiedErrorId : [Server=DBXPR05MB046,RequestId=3b3e080e-9aaf-4db9-9b90-b7171d59eba2,TimeStamp=7/11/2014
       8:15:39] [FailureCategory=Cmdlet-UserAlreadyExistsInPermissionEntryException] 57078FCD,Microsoft.Exchange.Manageme
      nt.StoreTasks.AddMailboxFolderPermission
        + PSComputerName        : outlook.office365.com
    Any other mailbox does not do this when setting mailboxfolder permissions)
    Action10: Opened calendar with Outlook and tried to edit entries
    Result10: Error message pops up saying "You don't have permission to create an entry in this folder. Right click the folder and check..."
    Action11: Tried on a fresh new pc with first time logon
    Result11: did not help
    Additional information:
    We have seen this problem with another user which was recreated, when he shares his calendar with others and people get the calendar invite email and click "Open Calendar" they receive a popup "The folder cannot be found".
    My first impression points to a corruption/bug in the GAL on exchange online, since we're using o365 for midsize bussinesses we cannot use the AdressList role to expose the adresslist cmdlts for deeper troubleshooting.
    PS:
    Issue tested on different computers and with different user accounts, not a single user can edit the calendar of [email protected] when editor rights are given.
    Noticed when editing rights for the shared mailbox in powershell after the first confirmation line
    Office 2013 is click to run was updated to latest version, version number: 15.0.4659.1001

    Greetings Gil,
    I haven't heard of that one.
    Questions:
    Does the calendar in question show up in the "Subscriptions" category of iCal?
    If you remove all accounts from iCal > Preferences > Accounts and quit and re-open iCal, does the calendar in question vanish? If so, does the calendar come back when you re-input the servers you need into  iCal > Preferences > Accounts?
    Can you provide a screen shot of your calendar sidebar.
    While you answer those questions, some troubleshooting to try:
    Try dragging one of your other calendars above this calendar that won't delete and then quit / re-open iCal and attempt to delete the calendar in question.
    Failing that:
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Go to iCal > Quit iCal
    3. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    4. Launch iCal and test.
    If the issue persists at this point:
    Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    ---NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Hope that helps!

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    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). 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?
    Regards
    TD

  • Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the

    Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the features on the left side.

    Hi Nealeh
    Thanks i think I got it working of a fashion.
    Except the replace colour, does not seem to end up with the colour I picked using the picker tool. Its as though it hads not replaced the colour but blended in the desired colour with the old incorrect colour!
    Buy trial and error picking not the right colour but close - which when mixed with the existing colour is close.
    Sorry I can't post the pictures as the Lingerie Mfg, has me under non disclosure.
    The scenario is:-  say a blonded mainly tanned model a high cut [at the hips] corsette style basque, with an ultra low bra line.
    Our dear model, has just come back from St Barts with a fabulous Tan, and equally striking bold Tan lines!.
    So we have great tanned legs, then the 'porcelain white band' where her swimsuit was.
    Likewise we have a tanned face, and arms, shoulders etc and a great tan on the top of the cleavage, then it stops, white band to the top of the ultralow cut bra line of the basque.
    She must have lived in like the most conservative bikini on the planet [50's style], for 2 weeks!
    Had she had a normal skimpy bikini on, no problem!
    If i don't solve it, she will get fired!
    Not a lack of interest in your post, but I was out, and tried to log in to this site; which I could do, on my iPad Air / 5 [whatever its the new one]. And tried to 'sign in' - but it just hung at the
    "Join Adobe Community" adobe sign in splash screen! with he little whell spinning around continuously!!!
    I have Safari on this iPad. Guess that is all it runs.
    So technology is not my friend today!

  • HT1386 I have just rceived an upgrade to an iPhone 3GS. Now, when I visit the Store all the prices are in US dollars, not a big problem but I cannot edit my card details or contact to a UK address. I cannot see how to change this.

    I have just rceived an upgrade to an iPhone 3GS. Now, when I visit the Store all the prices are in US dollars, not a big problem but I cannot edit my card details or contact to a UK address. I cannot see how to change this.

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • Sos i have a form I can edit but management cannot edit them

    I creat
    ed a review form for users to filled out and send them to management to review and complete them.
    users can complete thier forms but when they send them to management they cannot edit or filled thier review
    part. My form property preview is Interactive form.

    I found the solution, the associate was printing the form and scanning it to her supervisor. That is obvious.
    I am trying to add submit by email button and have the email address field blank so that associates can choose thier various
    supervisor email address. But sometimes I get email with xml file attached and sometimes I dont get anything.
    any help
    Thanks

  • MORE THAN 5 USERS CANNOT CONNECT TO MY ITUNES

    ive got itunes set up for everybody at my work, like 12 or more people... problem im having is that if theres already 5 people that have looked at my tunes, nobody else can check out my music... even our IT man here doesnt know anything about it... when i exit and reopen then the tally starts up again, but only 5 can access my music....
    if somebody tries after 5 it will say that you cannot connext to this users music becuase they only allow 5 users per day....
    IS there any way to increase that number? why cant i let unlimited people check my sshtufff out? help me paalessse

    Basically all of the record labels assume you are a thief by default. So they will only let Apple sell music on-line if Apple encrypts the music so you are locked out of it. They then control how you can play the music to try to prevent copying. And in your case just giving music away.
    By the way. Activating iTunes on computers you do not control is a bad idea. If you have signed in and activated a computer any one on the computer can buy music on your account.
    To actually get music in a format you can use you can do one of two things. Either burn the music to CD and then RIP it to MP3 files. Doing this will give you standard MP3s you can play how ever you want. But you get a lower quality music files than you paid for, you lose the cover art, and you lose on the meta data for the file.
    The other option is to download Hymn or Jhymn. These programs decrypt the files so you can use them however you want. You get the same sample quality, and keep the cover art. But Apple continues to try to prevent those programs from working with each iTunes upgrade.
    By the way using using either of the two options listed above violates your user agreement with Apple. If they find out they could cancel your account.

  • Share excel 2007 with more that one users and edit at the same time

    Dear community members,
    How can I best shere an excell workbook 2007 if I want multiple users to view and edit simultaneously?  The workbook contains macros, conditional formating, and dropdown lists which I want all to be functional!
    Thanks,

    Hi,
    You can create a shared workbook and place it on a network location where several people can edit the contents simultaneously
    Just go to the Review tab, in the Changes group, click
    Share Workbook.
    However, not all features and functionalities are supported in a shared workbook. Please review this article for more details:
    http://office.microsoft.com/en-us/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Saving form created in Acrobat XI so other users cannot edit contents

    I created a form in Acrobat XI and added information to the fields.  I created multiple files, each with different data.  I want users with Reader to be able to see the completed forms using Reader, but not be able to edit the fields.  Hopefully I don't have to go through the settings under File -> Preferences -> Security because they are dreadfully complex.  Hopefully there is a simple solution.

    Thank you Gilad, for the prompt response.  Can you briefly explain how to
    "flatten" the file?  There is no option with that word in any of the
    dropdowns.  Also, where would one find the "Action" option?  Again, I'm not
    seeing it.  As noted, I am using Acrobat XI.
    Regardless, I think that I found the solution: File -> Save as Other...->
    Archivable PDF (PDF/A).  When I did that, it saved the file, but gave an
    error message that I ignored.  Information in the fields was then visible,
    but not editable.  Also, I was able to link multiple files together using
    Create -> Combine Files into a Single PDF... such that each record was
    different.
    Thank you again.
    Kenneth M. Klemow, Ph.D.
    Professor of Biology and Environmental Science
    Associate Director, Institute for Energy and Environmental Research
    Wilkes University
    Wilkes-Barre, PA 18766
    570-408-4758 (office), 570-408-7862 (fax)
    [email protected]
    On Sun, Aug 3, 2014 at 4:12 AM, Gilad D (try67) <[email protected]>

  • Re- Installed software, connected but now cannot edit

    I had changed my ftp password and email and had some other
    issues, so I uninstalled Adobe Contribute and re-installed and
    re-started. I have a connection but when I try to edit, it says I
    cannot because it is currently being edited by another user (my id
    and old e-mail are shown as the "other user".)
    Should I have deactivated prior to uninstalling and then just
    started all over that way? I have tried to look under Admin to
    change my ID and e-mail but do not see an option for this. How do I
    log off the old and access to Edit? Thanks!

    Hi,
    Please add yourself as administrator, that is please go to
    edit -> Administer website -> <website>
    Now your new username will be added to the administrator
    role.
    Go the page that you want to edit. Now you will have a info
    bar that some one is currently editing the page please click here
    to make the page editable. Please go ahead and break the lock after
    which you will be able to edit the page.
    Only users in administrator role can break the locak and make
    page editable.
    Thanks,
    Radhika

  • I hit "convert" option but still cannot edit the form

    After I converted PDF form to Word I still cannot edit

    Under no circumstances (except in designing a form where the original was lost) convert a form to Word. The layout will inevitably change, leaving a bad form at best. For official forms, this can lead you into serious trouble. Work only in PDF.

  • Select-options in Selection Screen to show more rows for entering values

    Hi all,
    In my webdynpro abap  I have added the SELECT-OPTIONS componenet and working fine.
    User need  in the Selection Screen for select options  more rows to show entering values in single time.
    THe Default Rows show only 5 .
    user need to change to 10 or 15 Rows to show.
    Pl help .
    THanks in advance.
    Dev

    Hi,
    Here is the way which I just tested and found working.
    This is the main code which needs to be written.
    TYPES:
        ty_r_vbeln TYPE RANGE OF vbeln,
        ty_s_vbeln TYPE LINE OF ty_r_vbeln.
    data ls_vbeln type ty_s_vbeln.
    field-symbols <fs_range> TYPE INDEX TABLE.
    ASSIGN lt_range->* TO <fs_range>.
    do 10 times.
    APPEND ls_vbeln TO <fs_range>.
    enddo.
    For further refinement, you can create a input field in view for number of lines to be shown as enabled.
    The complete code is as below.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_select_options( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
    lo_interfacecontroller =   wd_this->wd_cpifc_select_options( ).
    DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen(  ).
    Creating range table
    DATA lt_range TYPE REF TO data.
    CALL METHOD lo_r_helper_class->create_range_table
        EXPORTING
          i_typename     = 'VBELN'
        RECEIVING
          rt_range_table = lt_range.
    Disabling the global options
    CALL METHOD lo_r_helper_class->set_global_options
      EXPORTING
          i_display_btn_cancel  = abap_false
          i_display_btn_check   = abap_false
          i_display_btn_reset   = abap_false
          i_display_btn_execute = abap_true.
           TYPES:
        ty_r_vbeln TYPE RANGE OF vbeln,
        ty_s_vbeln TYPE LINE OF ty_r_vbeln.
    data ls_vbeln type ty_s_vbeln.
    field-symbols <fs_range> TYPE INDEX TABLE.
    ASSIGN lt_range->* TO <fs_range>.
    do 10 times.
    APPEND ls_vbeln TO <fs_range>.
    enddo.
    Adding the selection field
    CALL METHOD lo_r_helper_class->add_selection_field
        EXPORTING
          i_id                         = 'VBELN'
          I_OBLIGATORY                 = ABAP_TRUE
          I_NO_EXTENSION               = abap_false
          i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
          it_result                    = lt_range.
    Edited by: Jayanthi Jayaraman on Dec 2, 2010 8:29 AM

  • Editable columns in table don't select the whole row

    I am new to the forums and posted this to the wrong one the first time and I am not sure how to move it so I am just reposting it here. Sorry.
    I have a table with 7 columns. 2 of them are non-editable and the rest are either radio buttons or check boxes. When I click on the 2 non-editable columns, the whole row gets highlighted. When I click on any of the editable columns, the button is selected, but the whole row is not highlighted. If I made the editable columns non-editable then the whole row gets highlighted when the column is clicked on. I want the button selected and the row highlighted when the editable columns are clicked on. Here is some relevant code:
    class PackageTable extends JPanel
        public PackageTable(String pathfile)
           fieldsok = true;
           errorfield = new JTextField(250);
           startfield = new JTextField(250);
           stopfield = new JTextField(250);
           tableModel = new MyTableModel();
           table = new JTable(tableModel)
             public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex)
               Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
               if (vColIndex == 0)
                 c.setBackground(new Color(238,238,238));
               else
                 c.setBackground(new Color(255,255,255));
               boolean selected = isRowSelected(rowIndex);
               if (selected)
                 c.setBackground(Color.yellow);
               return c;
           table.setPreferredScrollableViewportSize(new Dimension(300, 1000));
           table.setRowSelectionAllowed(true);
           table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
           TableColumn column = null;
           for (int col = 0; col < 7; col++)
              column = table.getColumnModel().getColumn(col);
              if (col == 0)
                column.setPreferredWidth(30);
              else if (col == 1)
                column.setPreferredWidth(300);
              else if (col == 2)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 3)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 4)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if ((col == 5) || (col == 6))
                column.setPreferredWidth(10);
      class RadioButtonRenderer implements TableCellRenderer
        public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column)
          if (isSelected)
            setForeground(table.getSelectionForeground());
            setBackground(table.getSelectionBackground());
          else
            setForeground(table.getForeground());
            setBackground(table.getBackground());
          if (value == null)
            return null;
          return (Component) value;
      class RadioButtonEditor extends DefaultCellEditor implements ItemListener
        private JRadioButton button;
        public RadioButtonEditor(JCheckBox checkBox)
          super(checkBox);
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          if (value == null)
            return null;
          button = (JRadioButton) value;
          button.addItemListener(this);
          return (Component) value;
        public void addCellEditorListener(CellEditorListener listener)
          listenerList.add(CellEditorListener.class, listener);
        public void removeCellEditorListener(CellEditorListener listener)
          listenerList.remove(CellEditorListener.class, listener);
        protected void fireEditingStopped()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingStopped(changeEvent);
        protected void fireEditingCanceled()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingCanceled(changeEvent);
        public void cancelCellEditing()
          fireEditingCanceled();
        public boolean stopCellEditing()
          fireEditingStopped();
          return true;
        public Object getCellEditorValue()
          return button;
        public boolean isCellEditable(EventObject event)
          return true;
        public boolean shouldSelectCell(EventObject event)
          return true;
        public void itemStateChanged(ItemEvent e)
          super.fireEditingStopped();
      class MyTableModel extends AbstractTableModel
        String[] columnNames = {"","Configuration Files","Sorts","Plots","Both","Print","Alerts"};
        public MyTableModel() { }
        public int getColumnCount()
          return columnNames.length;
        public int getRowCount()
          return totaldata.size();
        public String getColumnName(int col)
          return columnNames[col];
        public Object getValueAt(int row,int col)
          return(((Vector)totaldata.get(row)).get(col));
        public Class getColumnClass(int c)
          return getValueAt(0, c).getClass();
        public boolean isCellEditable(int row, int col)
          if ((col == 0) || (col == 1))
            return false;
          else
            return true;
        public void setValueAt(Object value, int row, int col)
          Vector v1 = new Vector();
          v1 = (Vector)totaldata.get(row);
          v1.set(col,value);
          if (col == 1)
             if (((String)value).indexOf("/") == -1)
               JOptionPane.showMessageDialog(pdsframe, "The CONFIG file that was entered on line " + (row+1) + " is not valid.");
               v1.set(col,(Object)"");
               return;
          fireTableCellUpdated(row, col);
          fireTableChanged(new TableModelEvent(this));
        public void addNewRow(Vector newRow)
          totaldata.add(newRow);
          fireTableRowsInserted(totaldata.size()-1, totaldata.size()-1);
        public void deleteRow(int Row)
          totaldata.remove(Row);
          fireTableRowsDeleted(totaldata.size()-1, totaldata.size()-1);
      }I have searched forever to try to find how to do this and I can't seem to get it right. If all the radiobuttons in one column are selected and I click on one of those rows in one of those columns, then the whole row is highlighted.
    Can anyone help me out?
    Thanks.
    esk3 {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Sorry. I didn't know that I had to provide something that could be executed. I am going to try to put enough in so that it can. This is part of a larger program and this frame is called from another frame. Here it is. I hope it works.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Dimension.*;
    import java.util.*;
    import java.text.*;
    // Java extension packages
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import javax.swing.JTable.*;
    import javax.swing.JScrollPane.*;
      private JFrame     pdsframe;
      private String printchecked;
      private String alertschecked;
      private JTextField cb;
      private JTextField pf;
      private JScrollPane scrollpane;
      private JTable table;
      private MyTableModel tableModel;
      private Vector totaldata;
      private JLabel startlabel;
      private JLabel stoplabel;
      private JTextField startfield;
      private JTextField stopfield;
      private JTextField errorfield;
      private boolean fieldsok;
      class MyTableModel extends DefaultTableModel
        String[] columnNames = {"","Configuration Files","Sorts","Plots","Both","Print","Alerts"};
        public MyTableModel() { }
        public int getColumnCount()
          return columnNames.length;
        public int getRowCount()
          return totaldata.size();
        public String getColumnName(int col)
          return columnNames[col];
        public Object getValueAt(int row,int col)
          return(((Vector)totaldata.get(row)).get(col));
        public Class getColumnClass(int c)
          return getValueAt(0, c).getClass();
        public boolean isCellEditable(int row, int col)
          if ((col == 0) || (col == 1))
            return false;
          else
            return true;
        public void setValueAt(Object value, int row, int col)
          Vector v1 = new Vector();
          v1 = (Vector)totaldata.get(row);
          v1.set(col,value);
          if (col == 1)
             if (((String)value).indexOf("/") == -1)
               JOptionPane.showMessageDialog(pdsframe, "The CONFIG file that was entered on line " + (row+1) + " is not valid.");
               v1.set(col,(Object)"");
               return;
          fireTableCellUpdated(row, col);
          fireTableChanged(new TableModelEvent(this));
        public void addNewRow(Vector newRow)
          totaldata.add(newRow);
          fireTableRowsInserted(totaldata.size()-1, totaldata.size()-1);
        public void deleteRow(int Row)
          totaldata.remove(Row);
          fireTableRowsDeleted(totaldata.size()-1, totaldata.size()-1);
      class RadioButtonRenderer implements TableCellRenderer
        public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column)
          if (isSelected)
            setForeground(table.getSelectionForeground());
            setBackground(table.getSelectionBackground());
          else
            setForeground(table.getForeground());
            setBackground(table.getBackground());
          if (value == null)
            return null;
          return (Component) value;
      class RadioButtonEditor extends DefaultCellEditor implements ItemListener
        private JRadioButton button;
        public RadioButtonEditor(JCheckBox checkBox)
          super(checkBox);
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          if (value == null)
            return null;
          button = (JRadioButton) value;
          button.addItemListener(this);
          return (Component) value;
        public void addCellEditorListener(CellEditorListener listener)
          listenerList.add(CellEditorListener.class, listener);
        public void removeCellEditorListener(CellEditorListener listener)
          listenerList.remove(CellEditorListener.class, listener);
        protected void fireEditingStopped()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingStopped(changeEvent);
        protected void fireEditingCanceled()
          CellEditorListener listener;
          Object[] listeners = listenerList.getListenerList();
          for (int i = 0; i < listeners.length; i++)
            if (listeners[i] == CellEditorListener.class)
              listener = (CellEditorListener)listeners[i+1];
              listener.editingCanceled(changeEvent);
          }      fireEditingStopped();
          return true;
        public Object getCellEditorValue()
          return button;
        public boolean isCellEditable(EventObject event)
          return true;
        public boolean shouldSelectCell(EventObject event)
          return true;
        public void itemStateChanged(ItemEvent e)
          super.fireEditingStopped();
      class PackageTable extends JPanel
        public PackageTable(String pathfile)
           fieldsok = true;
           errorfield = new JTextField(250);
           startfield = new JTextField(250);
           stopfield = new JTextField(250);
           tableModel = new MyTableModel();
           table = new JTable(tableModel)
             public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex)
               Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
               if (vColIndex == 0)
                 c.setBackground(new Color(238,238,238));
               else
                 c.setBackground(new Color(255,255,255));
               boolean selected = isRowSelected(rowIndex);
               if (selected)
                 c.setBackground(Color.yellow);
               return c;
           table.setPreferredScrollableViewportSize(new Dimension(300, 1000));
           table.setRowSelectionAllowed(true);
           table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
           TableColumn column = null;
           for (int col = 0; col < 7; col++)
              column = table.getColumnModel().getColumn(col);
              if (col == 0)
                column.setPreferredWidth(30);
              else if (col == 1)
                column.setPreferredWidth(300);
              else if (col == 2)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 3)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if (col == 4)
                column.setPreferredWidth(10);
                column.setCellRenderer(new RadioButtonRenderer());
                column.setCellEditor(new RadioButtonEditor(new JCheckBox()));
              else if ((col == 5) || (col == 6))
                column.setPreferredWidth(10);
          JScrollPane scrollPane = new JScrollPane(table);
          scrollPane.setBounds(20,180,1000,300);
          JLabel pflabel = new JLabel("Package File: ");
          pf = new JTextField(pathfile);
          cb = new JTextField(250);
          startlabel = new JLabel("START_TIME = ");
          stoplabel = new JLabel("STOP_TIME = ");
          JLabel typelabel = new JLabel("TYPE OF FORMAT TO OUTPUT");
          JButton savebutton = new JButton("Save and Run");
          JButton jbtAddRow = new JButton("Add New Row");
          JButton jbtUpdateRow = new JButton("Update Row");
          JButton jbtDeleteRow = new JButton("Delete Row");
          JButton cancelbutton = new JButton("Cancel");
          cb.setEditable(false);
          cb.setBounds(130,230,100,30);
          cb.setEnabled(false);
          cb.setVisible(false);
          pflabel.setBounds(20,20,100,30);
          pf.setEditable(false);
          pf.setBounds(130,20,300,30);
          startlabel.setBounds(20,90,100,30);
          startfield.setEditable(false);
          startfield.setBackground(new Color(255,255,255));
          startfield.setBounds(130,90,300,30);
          stoplabel.setBounds(20,120,100,30);
          stopfield.setEditable(false);
          stopfield.setBackground(new Color(255,255,255));
          stopfield.setBounds(130,120,300,30);
          typelabel.setBounds(525,150,400,30);
          savebutton.setBounds(130,500,130,30);
          jbtAddRow.setBounds(280,500,130,30);
          jbtUpdateRow.setBounds(430,500,130,30);
          jbtDeleteRow.setBounds(580,500,130,30);
          cancelbutton.setBounds(730,500,130,30);
          add(scrollPane);
          add(pflabel);
          add(pf);
          add(startlabel);
          add(stoplabel);
          add(startfield);
          add(stopfield);
          add(typelabel);
          add(jbtAddRow);
          add(jbtUpdateRow);
          add(jbtDeleteRow);
          add(savebutton);
          add(cancelbutton);
      public void createAndShowGUI() {
        //Create and set up the window.
        pdsframe = new JFrame("PDS Batch Parameters");
        pdsframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        totaldata = new Vector();
        //Create and set up the content pane.
        PackageTable newContentPane = new PackageTable(pathfile);
        newContentPane.setOpaque(true); //content panes must be opaque
        pdsframe.setContentPane(newContentPane);
        //Display the window.
        pdsframe.setLayout(null);
        pdsframe.setSize(1100,700);
        pdsframe.setLocationRelativeTo(null);
        pdsframe.setFocusableWindowState(true);
        pdsframe.setVisible(true);
        pdsframe.show();
        pdsframe.setAlwaysOnTop(true);
        pdsframe.requestFocus();
    public void main()
        Toolkit.getDefaultToolkit().beep();
        createAndShowGUI();
    }Does this help? I hope it works. These are the relevant parts. Thanks.
    esk3

  • I just got the iPhone 4.  I use Mobil Me to keep my calendar on my phone, computer and iPad.  But I cannot get my calendar on my phone to allow me to edit.  HELP! I have more problems but I will start here.

    I upgraded to the iPhone 4.  I use Mobile Me to keep my calendars updated on my computer, phone and iPad.  I sunk up the phone and my calendar is on the phone but I cannot edit anything.  There is NOT even an edit button!! I also color coded calendars for all my appointments and the are correct on the calendar but I do not have the option to use this on the phone becasue the color coded calendars are not an option.  PLEASE HELP!!  I have been dealing with this for several hours!!

    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download

Maybe you are looking for

  • How to Scan a Paper Doc & Convert It with OCR to a Word Processing Format

    In an effort to save others with a similar need some time, I am posting a simple method of using he iPhone to scan a document and convert it, using optical character resolution, to an editable word processing format, usable on computers or iPhones an

  • How to create a $CUSTOM_TOP in 11i

    Hi All, Where can i get the document that gives an idea how to create a $CUSTOM_TOP in 11i in Linux Many thanks in advance... Best Regards,

  • Change blink BG and FG colors

    Hi, I have four different controls on my front panel. each of them blinks at different stages of the program. I want them to blink in different colors. Which ever is related to emergency, should blink in bright colors, routine ones should blink in so

  • SMS screen doesn't scroll up!! And it shows multiple of The same message

    Basically it works fine other than I can't scroll up on The SMS screen even though I know there's an SMS up there. The scroller pad works fine it works everywhere else. The latest SMS I can see is from a few days ago. I also receive multiple texts fr

  • Rollout with respect to MM

    hey SAP experts, I want to know that, what are the steps required for rollout project (new plant/company) with respect to MM/CIN module?