Combobox glitch

I ran across a bug using the combobox change event listener
with an Alert.show call.
The movie runs into a recursive loop that is caught and stops
the movie.
1) add a combobox to the stage and name it 'combobox' - add
two labels using the parameters tab
2) drag an alert instance from the component panel to the
library
3) add the code below to your root timeline
4) compile
5) now change the value of the combobox
I think for some reason, the Alert popup conflicts with
Focus. This possibly triggers the change event listener, causing a
recursive loop with no sentinel.
Has anyone else run into this or does anyone know how to work
around it??

Hi MikeDoh,
you need to use one more listener for using alert. combobox
onEnterframe causing error when we select any data.
have a look attached code.

Similar Messages

  • Use ComboBox TableCellEditor  - values are not saved to the table model

    Hi,
    I got a combobox cell editor that uses to edit one of the columns.
    And i got an ok button that uses to collect the data from the table and save it to the db.
    In case i started editing of a cell and the editor is still displayed- if i will click on the button the data that will be colected from the table model will not contained the updated value in the cell editor.
    In this case the user think his changes were saved but the last updated field is not updated.
    Is this a bug i got in the cell editor or this is the normal behaviour?
    Can it be fixed? (So that if the cell is in the middle of editing the value that will be saved is the last value that was selected).
    public class PriorityCellEditor extends StandardComboBox implements TableCellEditor {
        private boolean isEditMode=false;
         * A list of eventlisteners to call when an event is fired
        private EventListenerList listenerList = new EventListenerList();
         * the table model
        public StbAreaClusterPriorityCellEditor(boolean isEditMode) {
            super(StbAreaMapper.clustersPriorities);
            setEditMode(isEditMode);
            setEditable(false);
            this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
            setAlignmentX(Component.LEFT_ALIGNMENT);
        public boolean isEditMode() {
            return isEditMode;
        public void setEditMode(boolean editMode) {
            isEditMode = editMode;
            setEnabled(editMode);
        public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelecte, int row, int column) {
            int selectedIndex;
            if (isSelecte) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            if(value instanceof String){
                selectedIndex=StbAreaMapper.mapGuiPriorityDescToGuiCode((String)value);
                setSelectedIndex(selectedIndex);
            return this;
        public void cancelCellEditing() {
            fireEditingCanceled();
        public Object getCellEditorValue() {
            return getSelectedItem();
        public boolean isCellEditable(EventObject anEvent) {
            return isEditMode;
        public boolean shouldSelectCell(EventObject anEvent) {
            return false;
        public boolean stopCellEditing() {
            fireEditingStopped();
            return true;
         * Adds a new cellEditorListener to this cellEditor
        public void addCellEditorListener(CellEditorListener l) {
            listenerList.add(CellEditorListener.class, l);
         * Removes a cellEditorListener from this cellEditor
        public void removeCellEditorListener(CellEditorListener l) {
            listenerList.remove(CellEditorListener.class, l);
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingStopped() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying
            // those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingStopped(
                            new ChangeEvent(this));
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingCanceled() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this));
    }

    Try this
    yourTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • Getting data in a combobox from database

    I have done database connectivity in flex using .net. Now I am getting data in flex in a data grid. Everuthing is working fine if I take data in a data grid.
    My problem is that if I try to take that data in any other control, other than data grid, it shows up no data, it only shows "object[object].
    for ex:
    if I am getting 3 rows from databse and I try to get those in a combo box, den I am getting 3 items in combo box like this:
    object[object]
    object[object]
    object[object]
    instead of actual data.
    I am stuck in this problem for last 3 days. I have tried lot of things but nuthing is working. Plz anyone help me out soon. Its really urgent.
    I am working on a live project and not able to proceed because of this problem.

    Hi Bhavika,
    You need to tell your combobox which value should be displayed in the ComboBox...for display...
    You are getting 3 rows from database which are objects since you haven't told your combobox which value to be displayed it is displaying as [Object,Object]...
    So you need to tell your ComboBox which values to be displayed ..and you can do this by assigning the labelField property of the ComboBox..
    Say in your object you have three properties say..data, value, name...etc;;
    Then if you want display name as your ComboBox display label then simply write ....labelField="name" in your ComboBox ...
    Thanks,
    Bhasker Chari

  • Problem setting Index value on ComboBox

    I am running into a problem with setting the index on a
    dropdown box. I will try to give as much detail as possible. From
    what I can tell, it should be working and does, but only for one
    item. If anyone can suggest a different group to post to, let me
    know. I can not find a solution anywhere.
    I have the following code to show a combobox. The data is
    derived from a XML config file. The combobox itself works fine and
    does in fact show all of the data from the XML config file.
    <mx:HBox>
    <mx:Label text="Status" width="55"/>
    <mx:ComboBox id="uxstatus" dataProvider="{_xmlVulnStatus}"
    labelField="status"/>
    </mx:HBox>
    The part of the XML config file that is used to populate the
    combobox.
    <mainconfig>
    <vulnstatus>
    <status>Open</status>
    <status>In Progress</status>
    <status>Closed</status>
    </vulnstatus>
    </mainconfig>
    Now, when a user selects an item from a separate datagrid, on
    change I have it run the following function. The function reads in
    the data, parses it and compares the "status" value from the
    datagrid info with the "status" options in the XML config file.
    When it matches, it sets the index number for the combobox so it
    shows the right data. My problem is below the function.
    public function parseMSVulnStatus(evt:Event):void {
    var xmlMSV:XML = XML(msdetailed.selectedItem); //the host
    dataProvider item
    //trace ("MS Vuln status = "+xmlMSV.status);
    for ( var MSVi:Number=0; MSVi<_xmlVulnStatus.length();
    MSVi++ ) { //loop over the items in the dataProvider
    var sDataValueCurMSV:String =
    _xmlVulnStatus[MSVi].valueOf(); //get the current item.data value
    if ( sDataValueCurMSV == xmlMSV.status ) { //compare desired
    value to current item.data value
    mx.controls.Alert.show("match found - MS Vuln status =
    "+xmlMSV.status +" and MSVi = " +MSVi);
    msstatus.selectedIndex = MSVi; //set the seletedIndex of the
    combo box
    else {msstatus.selectedIndex = -1}
    if (msdetailed.selectedItem.falsepos=='Y')
    {msfalsepos.selected=true;}
    The problem. If the value from the datagrid is "Closed", it
    shows the index as being "2" and sets the combobox index
    appropriately and displays "Closed". The alert box is displayed
    (for testing) to show the values.
    If the value from the datagrid is either "Open" or "In
    Progress", it does show the proper index as being either 0 or 1,
    respectively and shows the alert box. However, the combobox appears
    to be set to -1. I have verified the data is set properly in the
    database (which is what populates the datagrid).
    Any thoughts on this? Based on my alert box, it appears that
    the data is seen properly and that it knows how to set the index of
    the combobox.... it's just not happening (unless it's "Closed").
    Thanks in advance.
    Chris

    you could force a selected index using something like
    mydatagrid.selectedIndex=0 or 1 try this pos i made for someone
    beacause if you want to cange the value of field based on selection
    this could be simpler by using an xml file with all the value for
    each record in one object
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1273227&CF ID=48614795&CFTOKEN=89f80916a77a7788-F5418AD3-F360-8283-2DCCA603D0E18DCF&jsessionid=48307b ef3fdf5663544a

  • How can I get my Bluetooth to connect? I took it to the apple store in San Francisco and got horrible service and my phone still doesn't work in regards to Bluetooth and glitches ? Please help

    I am very disappointed, I can not connect my Bluetooth to any device (ie. beatpill) and I took it to the store they reset my phone and told me everythibg should work and it turns out that nothing works. Not only the Bluetooth but my phone glitches while in use (ie. It freezes, it'll reset randomly, and the apps freeze or won't close, whrn texting it will close out my messages) things of that nature. Please help because thus far no one else has and it has become a problem for me to use my phone.

    What does the beat pill manual say on how to pair to iphone?
    We have no issue connecting an iphone 4S/5/5S or 6 to it.

  • Hard drive glitches after battery replacement... normal?

    Hello, I have a 4Gen 20gig ipod with click wheel and I just replaced the battery myself last night.
    I then plugged it into my computer to sync and it was recognized by windows, but not by iTunes, the hard drive would whir, then click and then try again, then stop. I figured it was just that the battery wasn't charged enough yet, so I let it charge overnight.
    In the morning it synced fine. I was then playing it in the car, and some songs would appear, then the hard drive would whir, click a couple of times, then skip on to the next one. After a couple songs it started playing them normal. After skipping a few and the hard drive spun to load more music into the temporary memory, it would whir, click and then skip the song, then whir click and skip that one too... and it kept doing it. Then I reset it, and it kept showing the apple symbol, then the Exclamation and folder icon, then tried restarting again. After trying to reset itself 4 or 5 times, it finally succeeded.
    I read a few threads on here, gave the ipod a gentle nudge on the right hand corner a few times, and now its playing and I haven't had any symptoms yet for about an hour.
    Is this normal for a hard drive on an iPod to glitch after a battery replacement? I had no such problems when I had the other battery in it, so it's hard to believe that the hard drive is going bad exactly at the same time I changed batteries. It is the right battery for the right iPod, anyone else experience this or have any words of wisdom or comfort?

    rsherid wrote:
    Pretty fast and non-stop, even when I'm not working. Could it be dirty? Is there a way to clean it?
    Does the Apple store charge just to look at something?
    Even if the noise was a dirty hard drive you can't clean the innards of one. You cannot even open one. Well you can, once.

  • ATI X1900 exhibits random display glitches on a Mac Pro

    My ATI card has been displaying bizarre and random glitches on my Mac Pro. I am running a dual screen setup: a brand new Samsung SyncMaster 21" lcd and an ancient 15" Apple Studio Display.
    On the Samsung, the most common problem I get is what looks like video jitter (the entire image shakes to the right very quickly at random intervals) every couple of seconds. When the problem gets really bad, I start to notice thin horizontal red lines flickering at random places across the entire screen. Both happen while using the computer and during the boot/reboot process... on the old Apple screen, the problem is less noticeable, usually it's just a very quick flash on the screen that can happen every 15 minutes or so. Sometimes a restart clears up the problem but it doesn't always work. I have also tested my machine with a 17" Formac LCD and it displays the red lines as well.
    Unfortunately, there does not seem to be a consistent pattern of why this is happening... sometimes it starts only after several hours of use, other times it will start after waking from sleep. Zapping PRAM and resetting the PMU doesn't seem to have any effect.I have put the stock nVidia card in the machine and all the problems go away. This card was actually replaced by Apple last week and things were fine for a few hours but then the problems returned and has gotten worse since then.
    Does this sound like the video card is still defective, or could it possibly be the Mac Pro itself?
    Jay
    Mac Pro   Mac OS X (10.4.8)  

    I would get back into contact with AppleCare and see what they can do. It might well be a driver issue so if you have a drive available, try installing a clean copy of Max OS X onto it, update it to Mac OS X 10.4.8 and see it if makes a difference.

  • It's the first time I've bought a movie from iTunes on my PC and it gives me glitches the enire movie aswell as the voices don't match the picture?

    I got a new PC. I have an iTunes account on my iPod as well but I set it up properly on here as well this is a Pavilion HP G6 it has windows 8. I dowloaded iTunes onit, it works fine. I bought "We're the Millers" today on iTunes and it gets me upset I can't watch it. Every time I play it it glitches. After the first sevral glitches the voice loses the picture; the character on the screen isn't saying the right words at the right time. I waited till it was fully down loaded and I restarted my labtop twice to see if the was the cause. It was not and and I getting up set I paid $13 for a HD movie that isn't even a movie; someone please help!

    "Bought a movie from iTunes which as gone into my videos file and I am trying to watch it on my computer. "
    But you can't? Does it show up in iTunes?
    "have iTunes on my pc but even after transferring files and syncing the video still won't show on the pc"
    Transferring from/to where?
    How are you transferring?

  • All sorts of glitches with VW Palm Pixi Plus

    Hello,
    I am curious if there is something inherently wrong with my phone, or if these are glitches within WebOS itself.
    I have had all sorts of glitches happen over the past month or so and some are quite an issue, especially when I really need the phone.
    Some of the glitches I can remember are as follow:
    1. Music player cause the phone to freeze when I clicked on a song. Had to reset
    2. I attempted to open google maps many times last night, when it would say I don't have an internet connection, even though the 3G logo was in the upper right corner. I had to do a reset. This was a major issue since I really needed directions at the time.
    3. All the settings and SSID name info and passphrase in the Mobile Hotspot app disappeared last night and I had to reinput it all.
    4. Sometimes I notice the phone is automatically restarting. This happened manny times when I first received the phone, but VW gave me a new battery, which fixed it. This feels more like a software issue now because it does it when it is just sitting on my desk. 
    5. One day, I could make phone calls but I could not hear anything coming out of the speaker and later, the recipient informed me they could not hear me, even though the call connected. I tried, at the time to do a restart, which did not fix the issue. I then did a **bleep** down and removed the battery, which did not work. I did a battery swap (put the battery back in) a second time and finally the phone began working again.
    6. This has happened two times now, which is actually pretty creepy. One day the phone received a called and I heard this weird mid-pitch woo sound come out of the speaker. I did not know what was making the noise when I realized what it was, my phone was trying to ring. I picked up the call and was able to talk. This also happened yesterday in one of my classes where the phone was on vibrate (the vibrate switch was on), and I was connected to the Mobile Hotspot app. Out of nowhere, I began receiving a phone call and this same eery noise came out of it. I was under the impression when using the mobile hotspot, I would not be able to receive calls. The noise was piercing and odd, and I had to hit ignore, where the caller left a voicemail. Now, when in a situation where I cannot have my phone ring, this concerns me because the phone has a mind of its own. Additionally, I do not want to turn my phone off all the time to avoid ringtones, because it takes WebOS almost 3-4 minutes to boot up on the pixi, probably because it has a slow processor.
    7. There has been numerous issues with using my bluetooth headphones (A2DP). Sometimes when I connect the headphones and turn on the bluetooth on the phone, they connect fine, but I cannot hear any sound from the headphones nor the speaker on the phone. Sometimes after I have been on a call using the headphones as a bluetooth headset, when I go back to the music, I cannot play music at all on the headphones.
    Overall, I feel these glitches are worth it because I think WebOS is far superiour to Android, and I think it is a great product, but these issues are starting to become an inconviense and I am not sure how to proceed. I know the phone may be under warranty, so I may need to call Palm, but I figured I would reach out here first and get a concensus of the issues to see if it is something I can resolve on my side first.
    I am running the latest OS, which I think is 1.4.5, which I updated a few weeks ago. Some of the issues above happened before the update and some after.
    Thank you for all your help,
    Tim
    Post relates to: Pixi Plus p121vzw (Verizon)

    I appreciate the help.
    Another issue I forgot to mention was with the email client. With my gmail account, it only shows 5-10 emails but I can keep scrolling like there is more emails. Additionally, I can actually click on the empty spaces and emails will show up. It is like the title and email info are not being shown in the preview (inbox) window. The irony is I also have a school account, which is hosted by gmail with a different domain, but all the emails show up fine. I even deleted the gmail account and re-imported it and the contacts, and the problem persists.
    Regardless though, last night a new issue began. My vibrate ringer switch is malfunctioning. What is happening is when I turn on the ringer (put the switch in the off position), the switch does not fully close, where the ringer turns on for a second and then the vibrate goes back on. Even though the switch is in the up position, the switch is not closing all the way to close the circuit.
    I took the case off and you can clearly see it is not catching in the lock position, or the spring is not pushing it up far enough to hold it in.
    I admit, webOS is far superior than Android (I used a Droid for 6 months) but the build quality and glitches are quite a concern. I really hope they come out with some new hardware soon, because I am not sure how long I can go before I give up this pixi. I would not mind the pre, but I have read more horror stories regarding hardware. With HP now owning Palm, I am sure the hardware quality will increase and the palm universe will expand, minimizing software glitches because more users means more revenue, and more revenue means more staff programmers working on issues.
    I can sort of get by webOS's shortcoming, but the hardware has to be there for me. This sucks because I am left with little options at this point (I do not want to go back to Android and who knows if the iPhone will ever come to VW, also, I am not in the mood to take on another platform as windows is in the midst of working on).
    Thank you again!

  • Mid 2012 macbook pro glitching, freezing, overheating

    Starting a few weeks ago, I noticed a change in my mid 2012 macbook pro. My laptop was losing charge EXTREMELY quickly, I would charge the laptop to 100%, and just an hour later (after not using it, but the lid closed and it was sleeping) it would be up to 60% charge, then when not in sleep and on, it would lose energy extremely quickly. I always make sure that unecessary background apps are not running--so that was not the problem. This problem went away after a week, but it was the first signal that something was wrong with my laptop.
    Next, the laptop was having problems with waking up from sleep, I did an SMC reset and this problem was fixed.
    After that, the laptop started glitching (static and banded lines on the bottom of the screen) and making this clicking noise when I was streaming video fullscreen on Netflix. I thought at first, that this was a problem with Silverlight, and reinstalled the silverlight plugin (several times). Then I noticed that the computer would glitch when I was streaming full screen on Netflix and picked up the laptop (moved it from a flat surface). This signaled to me that the problem was perhaps not software, but a hardware issue. I verified the disk and did a permissions report and neither were curative.
    Further support that the problems are with hardware rather than hardware came to me when my computer presented itself with a fourth issue: the laptop, when being lifted or moved from a static surface, would sometimes freeze entirely and make the same clicking noise. This problem was not during fullscreen streaming, but had spread to when I was simply using more than one app at the same time (e.g. having Chrome and Word open together). When this happenend, the only solution would be to power down the computer and restart.
    Finally, while sleeping with the lid closed in my backpack, I hear a whirring noise--I pick up the laptop and it was hot to the touch, overheating with the fans running on high speed.
    I have no clue what is going on. I have taken the computer to my university's mac shop and they have suggested it is a logic board issue and I should give the computer in. I have scoured the forum for an answer of what is happening and am determined to find one. So I pose the problem to you--any help would be appreciated. Thank you.

    Hardware Information:
              MacBook Pro (13-inch, Mid 2012)
              MacBook Pro - model: MacBookPro9,2
              1 2.5 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 4000 - VRAM: 1024 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 1:2:24
    Disk Information:
              APPLE HDD HTS547550A9E384 disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 499.25 GB (278.23 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Dell USB Portable HDD 1 TB
                        Dell USB Portable HDD (disk1s1) /Volumes/Dell USB Portable HDD: 1 TB (947.04 GB free)
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.cloudpath.maccmd.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.oracle.java.Helper-Tool.plist 3rd-Party support link
              [System] com.tunabellysoftware.TGFanHelper.plist 3rd-Party support link
    Launch Agents:
              [System] com.oracle.java.Java-Updater.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
              [not loaded] com.facebook.videochat.[redacted].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
              [not loaded] com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
              None
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.1.0 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: Java 7 Update 40 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              RealPlayer Plugin: Version: (null) 3rd-Party support link
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              Java  3rd-Party support link
    Old Applications:
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              /Users/[redacted]/Downloads
                        Install Spotify:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        Install Spotify 2:          Version: 1.0 - SDK 10.5 3rd-Party support link
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                   3%          WindowServer
                   2%          hidd
                   2%          EtreCheck
                   0%          Google Chrome
                   0%          notifyd
    Top Processes by Memory:
              152 MB          Google Chrome
              123 MB          com.apple.IconServicesAgent
              106 MB          mds_stores
              86 MB          loginwindow
              61 MB          Finder
    Virtual Memory Information:
              908 MB          Free RAM
              1.64 GB          Active RAM
              881 MB          Inactive RAM
              626 MB          Wired RAM
              900 MB          Page-ins
              0 B          Page-outs

  • Trying to write a Listener on a CheckBox to change the Model of a ComboBox

    I am trying to change the list that appears in a ComboBox dynamically based on if a CheckBox is selected or not. I have multiple CheckBoxes and ComboBoxes being created in a loop based on a variable assigned at creation. Every tutorial i have seen writes out a listener that explicitly defines the checkbox instance but in my case i don't acctually know. My checkboxes are in an array of checkboxes as are the comboboxes as they are being created at runtime. Any help would be much apreciated this issue has been with me for two days now.

    here is a snippit of my code in how i was implementing this:
    int numButton = 17; //this is for testing only, this variable is set from another class normally
    // these variables are defined private elsewhere in the class
    JCheckBox PlayerByeCheck[] = new JCheckBox[numButton + 1];
    JCheckBox PlayerHomeCheck[] = new JCheckBox[numButton + 1];
    boolean PlayerOnBye[] = new boolean[numButton + 1];
    for (int i = 1; i <= numButton; i++) {
             PlayerByeCheck[i] = new JCheckBox();
         PlayerHomeCheck[i] = new JCheckBox();
         PlayerOnBye[i] = false;
    // more code here for building the gui it is not important for this problem
    // code to build the list starts here
    for (int i = 1; i <= numButton; i++) {
         ((TableLayout)PlayerRosterPanel.getLayout()).insertRow(1, TableLayout.PREFERRED);
             PlayerByeCheck.setOpaque(false);
         PlayerByeCheck[i].addItemListener(this);
         PlayerByeCheck[i].setName("PlayerByeCheck" + i);
         PlayerRosterPanel.add(PlayerByeCheck[i], new TableLayoutConstraints(2, 1, 2, 1, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL));
    //the comboox that i want to change
    //---- PlayerTeamSelect1 ----
         if (PlayerOnBye[i] = true) {
              PlayerTeamSelect[i].setModel(new DefaultComboBoxModel(new String[] {
                   "ARI",
                   "ATL",
                   "BAL",
              "BUF",
         "BYE"
              PlayerTeamSelect[i].setSelectedItem("BYE");
         } else {
              PlayerTeamSelect[i].setModel(new DefaultComboBoxModel(new String[] {
                   "ARI",
                   "ATL",
                   "BAL",
                   "BUF",
                   "CAR",
              "BYE"
         PlayerTeamSelect[i].setOpaque(false);
         PlayerRosterPanel.add(PlayerTeamSelect[i], new TableLayoutConstraints(4, 1, 4, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));
    //more gui code here method gets closed
    //Item Action Listener starts here this is where i am having the problem                         
    public void itemStateChanged(ItemEvent e) {
         Object source = e.getItem();
         if (source == PlayerByeCheck[1])
         int select = e.getStateChange();
              if (select == ItemEvent.SELECTED)
              PlayerOnBye[1] = true;
    PlayerRosterPanel.repaint();
    //repaint the window i think can't get the listener to work to see if this is the right way to do this
    //i doubt it is
    I have tried several different ways to write the listener, the example in the code above is following the java swing tutorial by explicitly defining the checkbox. I have tried to write the listener as i am creating the checkbox, which doesn't seem to work or i am wrting it wrong, which is entirely possible. Once the listener sets the value i think it should repaint the screen but i am sure that that is wrong right now as well. As my hunch is the repaint will reset the checkbox to DESELCTED the default value. I will come to that issue once i figure out how to get the listener working. Ideally i want to be able to set the listener for the checkboxes regardless as to how many there are. As stated above i am generating a list of checkboxes, comboboxes and other fields based on a variable that is defined in one of my objects. If the user selects checkbox 3 than combobox 3 should be changed, and the others should not. if the user selects all the checkboxes than all the comboboxes change.
    thanks for any help. Still plugging along on it trying to figure this one out.

  • Freezing Macbook Pro. Graphical glitches and occasional 3 tones on start up. Hardware test shows no errors. Is it RAM or a graphics card on the way out, or software?

    Recently my MacBook Pro has been freezing and showing bad graphical glitches. Multiple restarts eventually fix it and a couple of times the three tones break, three tones break warning has occurred on start up. From what I can find this is usually a RAM error but after doing a hardware check I get the response all is OK. This still happens after the check and I am unsure what the problem could be. Can anyone help? Could it be a memory issue, a hard drive issue, Graphics card issue (drivers are up to date) or is something up with the software. I also have a Bootcamp partition running Windows 7 too and this is a problem that presents itself there too.

    Most likely to be RAM:
    Beeps on startup:
    1 beep = no RAM installed
    2 beeps = incompatible RAM types
    3 beeps = no good banks
    4 beeps = no good boot images.
    5 beeps = processor is not usable
    http://support.apple.com/kb/HT2538
    I would suggest you take it to an Apple Store for a free diagnostic.

  • Glitch?  track creating a new track...

    ok, so lets say I have 3 tracks... and in my window, you can see both "tracks"' and "mixer"(with volume/pan/level)
    when I push the big "+" to add a new track, it "collapses my tracks" ( as if I am pushcin the little arrow at the top right by "tracks") - now the mixer is no longer visible for each track...
    so then, I push the arrow again, and each of the tracks fall down into their place, as they should, but only like part of the gray box for each track (like where it says new track) is visible... I have to roll my mouse over the box for the rest of it to show up.. does that make sense.. it seems like some sort of graphic glitch- it is the latest version of GB.. I don't get it... on top of all this, my mixers have dissapeared again too, so I have to push the arrow again..
    in short, every time I create a new track, I have to click the arrow, then roll my mouse over the gray boxes for me to able to see them, then click the arrow again so the mixer pops back out.. its strange..
    I am new to GB, but want to know if this has happened to others, or if anyone knows how to fix it.. its annoying!
    thanks
    in short, after I

    I really appreciate that. I went through every setting I could think of and didn't "check" or uncheck the obvious.  Lifesaver.

  • Macbook pro early 2011 - overheat and crash with blue screen and glitches

    Hi
    since last wednesday my MBP has started to freeze and then crash with bluescreen, glitches and so on...
    Most of the time doesnt not restart with any command as is overheating as well.
    I did a clean installation on friday night and i am now running mavericks and then again on sunday it start with all the above issue. At the moment i am able to restart only if i reset NVRAM each time, which i do not think is really safe to do it everytime.
    i also tried
    Macs Fan Control
    gfxCardStatus
    to fix but they doesn't help.
    I read many customers are now experiencing similar problems with this mac as the GPU Amd is faulty.
    APPLE SHOULD RECALL AND REPLACE IT or will lose many custumers
    I am now waiting to be seen at Genius bar on sunday, however i read about etrecheck in this related post
    http:/https://discussions.apple.com/thread/5081857?start=0&tstart=0
    and meanwhile i want to hear your opinion...
    Looking forward
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              8 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 0:13:20
    Disk Information:
              Hitachi HTS545050B9A302 disk0 : (500,11 GB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        Macintosh HD (disk0s2) /: 499,25 GB (455,18 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Microsoft Microsoft Notebook Receiver v2.0
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.genieoinnovation.macextension.client.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.torch.update.agent.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.genieoinnovation.macextension.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Macs Fan Control
              gfxCardStatus
              BetterSnapTool
    Internet Plug-ins:
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              None
    Bad Fonts:
              None
    Old Applications:
              None
    Time Machine:
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 464.96 GB Disk used: 41.04 GB
              Destinations:
                        Backup di Time Machine [Local] (Last used)
                        Total size: 297.77 GB
                        Total number of backups: 3
                        Oldest backup: 2014-02-04 20:47:26 +0000
                        Last backup: 2014-02-08 20:21:58 +0000
                        Size of backup disk: Adequate
                                  Backup size 297.77 GB > (Disk used 41.04 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  16%          mds
                   3%          WindowServer
                   1%          EtreCheck
                   0%          MacsFanControl
                   0%          SystemUIServer
    Top Processes by Memory:
              508 MB          firefox
              106 MB          com.apple.IconServicesAgent
              66 MB          mds_stores
              57 MB          Finder
              57 MB          WindowServer
    Virtual Memory Information:
              5.25 GB          Free RAM
              1.25 GB          Active RAM
              395 MB          Inactive RAM
              1.11 GB          Wired RAM
              257 MB          Page-ins
              0 B          Page-outs

    Hi, sorry but my mac is early 2011 not 2010...
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              8 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM
    i don't have the disable graphic switching options in the energy saving preferences...
    i am using mavericks now.
    about this VST how can i check or who can check it?
    And this last kernel:
    Anonymous UUID:  
    3068FDF2-8835-F87B-3AC0-A00C76A699D9
    Sun Feb  9 14:53:24 2014
    panic(cpu 2 caller 0xffffff80280dc19e): Kernel trap at 0xffffff7fa9efefc1, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0xffffff8148564428, CR3: 0x000000002ac24000, CR4: 0x00000000000606e0
    RAX: 0x0000000080000000, RBX: 0x000000000000150a, RCX: 0xffffff815c72bcc0, RDX: 0x000000000000150a
    RSP: 0xffffff815c72bc10, RBP: 0xffffff815c72bc30, RSI: 0xffffff814855f000, RDI: 0xffffff803c4b5c00
    R8:  0xffffff815c72bcc0, R9:  0xffffff810aa84ce8, R10: 0xffffff815c72b900, R11: 0x0000000000000000
    R12: 0x000000000000000f, R13: 0xffffff803b447e00, R14: 0xffffff814855f000, R15: 0xffffff803c4b5c00
    RFL: 0x0000000000010206, RIP: 0xffffff7fa9efefc1, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0xffffff8148564428, Error code: 0x0000000000000002, Fault CPU: 0x2
    Backtrace (CPU 2), Frame : Return Address
    0xffffff815c72b8a0 : 0xffffff8028022f69
    0xffffff815c72b920 : 0xffffff80280dc19e
    0xffffff815c72baf0 : 0xffffff80280f3606
    0xffffff815c72bb10 : 0xffffff7fa9efefc1
    0xffffff815c72bc30 : 0xffffff7fa9ef835e
    0xffffff815c72bc90 : 0xffffff7fa9f0bab6
    0xffffff815c72bcb0 : 0xffffff7fa9ebc148
    0xffffff815c72bd10 : 0xffffff7fa9ebc189
    0xffffff815c72bd30 : 0xffffff7fa9e5b4b1
    0xffffff815c72bd60 : 0xffffff7fa9e62a57
    0xffffff815c72bd80 : 0xffffff7fa9e6730d
    0xffffff815c72bdf0 : 0xffffff7fa9e5f094
    0xffffff815c72be10 : 0xffffff7fa9e5d62c
    0xffffff815c72be50 : 0xffffff7fa9e5d4b4
    0xffffff815c72be90 : 0xffffff7fa9e5c67c
    0xffffff815c72beb0 : 0xffffff7fa9e7af5a
    0xffffff815c72bef0 : 0xffffff80284ada80
    0xffffff815c72bf30 : 0xffffff80284ac522
    0xffffff815c72bf80 : 0xffffff80284ac5f7
    0xffffff815c72bfb0 : 0xffffff80280d6aa7
    Kernel Extensions in backtrace:
    com.apple.iokit.IOAcceleratorFamily(98.7.1)[024BF8EC-2925-3C4B-ADBB-CFE36F7D41C5 ]@0xffffff7fa9e53000->0xffffff7fa9eabfff
    dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7fa86ba000
    dependency: com.apple.iokit.IOGraphicsFamily(2.3.6)[38E388A5-92D6-3388-B799-F2498E582287]@0 xffffff7fa8ed7000
    com.apple.AMDRadeonX3000(1.1.4)[4333F950-8969-31AB-93E2-DF7D2DE76A9F]@0xffffff7f a9eb8000->0xffffff7faa258fff
    dependency: com.apple.iokit.IOAcceleratorFamily(98.7.1)[024BF8EC-2925-3C4B-ADBB-CFE36F7D41C 5]@0xffffff7fa9e53000
    dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff 7fa86ba000
    dependency: com.apple.iokit.IOGraphicsFamily(2.3.6)[38E388A5-92D6-3388-B799-F2498E582287]@0 xffffff7fa8ed7000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    13B42
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:
    0x0000000027e00000
    Kernel text base: 0xffffff8028000000
    System model name: MacBookPro8,2 (Mac-94245A3940C91C80)
    System uptime in nanoseconds: 19122777411521
    last loaded kext at 7525516373620: com.apple.filesystems.smbfs
    2.0.0 (addr 0xffffff7faa5db000, size 335872)
    last unloaded kext at 4160298711302: com.apple.driver.AppleUSBCDC
    4.2.1b2 (addr 0xffffff7faa5c9000, size 16384)
    loaded kexts:
    com.apple.filesystems.smbfs
    2.0.0
    com.apple.filesystems.msdosfs
    1.9
    com.apple.driver.AppleHWSensor
    1.9.5d0
    com.apple.driver.AudioAUUC
    1.60
    com.apple.driver.AGPM
    100.14.11
    com.apple.filesystems.autofs
    3.0
    com.apple.driver.AppleMikeyHIDDriver
    124
    com.apple.driver.AppleHDA
    2.5.3fc1
    com.apple.iokit.IOBluetoothSerialManager
    4.2.0f6
    com.apple.driver.AppleUpstreamUserClient
    3.5.13
    com.apple.iokit.IOUserEthernet
    1.0.0d1
    com.apple.driver.AppleIntelHD3000Graphics
    8.1.8
    com.apple.driver.AppleMikeyDriver
    2.5.3fc1
    com.apple.kext.AMDFramebuffer
    1.1.4
    com.apple.driver.AppleSMCLMU
    2.0.4d1
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
    4.2.0f6
    com.apple.driver.AppleSMCPDRC
    1.0.0
    com.apple.Dont_Steal_Mac_OS_X
    7.0.0
    com.apple.driver.AppleHWAccess
    1
    com.apple.driver.SMCMotionSensor
    3.0.4d1
    com.apple.driver.AppleIntelSNBGraphicsFB
    8.1.8
    com.apple.driver.AppleMuxControl
    3.4.12
    com.apple.driver.ACPI_SMC_PlatformPlugin
    1.0.0
    com.apple.driver.AppleMCCSControl
    1.1.12
    com.apple.driver.AppleLPC
    1.7.0
    com.apple.AMDRadeonX3000
    1.1.4
    com.apple.kext.AMD6000Controller
    1.1.4
    com.apple.driver.AppleThunderboltIP
    1.0.10
    com.apple.driver.AppleUSBTCButtons
    240.2
    com.apple.driver.AppleUSBTCKeyboard
    240.2
    com.apple.driver.AppleIRController
    325.7
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless
    1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib
    1.0.0d1
    com.apple.BootCache
    35
    com.apple.iokit.SCSITaskUserClient
    3.6.0
    com.apple.driver.XsanFilter
    404
    com.apple.iokit.IOAHCIBlockStorage
    2.4.0
    com.apple.driver.AppleUSBHub
    650.4.4
    com.apple.driver.AppleSDXC
    1.4.0
    com.apple.iokit.AppleBCM5701Ethernet
    3.6.9b9
    com.apple.driver.AirPort.Brcm4331
    700.20.22
    com.apple.driver.AppleFWOHCI
    4.9.9
    com.apple.driver.AppleAHCIPort
    2.9.5
    com.apple.driver.AppleUSBEHCI
    650.4.1
    com.apple.driver.AppleSmartBatteryManager
    161.0.0
    com.apple.driver.AppleACPIButtons
    2.0
    com.apple.driver.AppleRTC
    2.0
    com.apple.driver.AppleHPET
    1.8
    com.apple.driver.AppleSMBIOS
    2.0
    com.apple.driver.AppleACPIEC
    2.0
    com.apple.driver.AppleAPIC
    1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient
    216.0.0
    com.apple.nke.applicationfirewall
    153
    com.apple.security.quarantine
    3
    com.apple.driver.AppleIntelCPUPowerManagement
    216.0.0
    com.apple.iokit.IOSCSIBlockCommandsDevice
    3.6.0
    com.apple.iokit.IOUSBMassStorageClass
    3.6.0
    com.apple.kext.triggers
    1.0
    com.apple.driver.DspFuncLib
    2.5.3fc1
    com.apple.vecLib.kext
    1.0.0
    com.apple.iokit.IOAudioFamily
    1.9.4fc11
    com.apple.kext.OSvKernDSPLib
    1.14
    com.apple.iokit.IOSerialFamily
    10.0.7
    com.apple.iokit.IOSurface
    91
    com.apple.iokit.IOBluetoothFamily
    4.2.0f6
    com.apple.iokit.IOBluetoothHostControllerUSBTransport
    4.2.0f6
    com.apple.driver.AppleHDAController
    2.5.3fc1
    com.apple.iokit.IOHDAFamily
    2.5.3fc1
    com.apple.driver.AppleBacklightExpert
    1.0.4
    com.apple.iokit.IONDRVSupport
    2.3.6
    com.apple.driver.AppleGraphicsControl
    3.4.12
    com.apple.driver.IOPlatformPluginLegacy
    1.0.0
    com.apple.driver.AppleSMBusController
    1.0.11d1
    com.apple.iokit.IOFireWireIP
    2.2.5
    com.apple.driver.AppleSMBusPCI
    1.0.12d1
    com.apple.driver.IOPlatformPluginFamily
    5.5.1d27
    com.apple.driver.AppleSMC
    3.1.6d1
    com.apple.iokit.IOAcceleratorFamily
    98.7.1
    com.apple.kext.AMDSupport
    1.1.4
    com.apple.AppleGraphicsDeviceControl
    3.4.12
    com.apple.iokit.IOGraphicsFamily
    2.3.6
    com.apple.driver.AppleThunderboltDPInAdapter
    2.5.0
    com.apple.driver.AppleThunderboltDPAdapterFamily
    2.5.0
    com.apple.driver.AppleThunderboltPCIDownAdapter
    1.4.0
    com.apple.driver.AppleUSBMultitouch
    240.6
    com.apple.iokit.IOUSBHIDDriver
    650.4.4
    com.apple.driver.AppleUSBMergeNub
    650.4.0
    com.apple.driver.AppleUSBComposite
    650.4.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice
    3.6.0
    com.apple.iokit.IOBDStorageFamily
    1.7
    com.apple.iokit.IODVDStorageFamily
    1.7.1
    com.apple.iokit.IOCDStorageFamily
    1.7.1
    com.apple.iokit.IOAHCISerialATAPI
    2.6.0
    com.apple.iokit.IOSCSIArchitectureModelFamily
    3.6.0
    com.apple.driver.AppleThunderboltNHI
    1.9.2
    com.apple.iokit.IOThunderboltFamily
    2.8.5
    com.apple.iokit.IOUSBUserClient
    650.4.4
    com.apple.iokit.IOEthernetAVBController
    1.0.3b3
    com.apple.driver.mDNSOffloadUserClient
    1.0.1b4
    com.apple.iokit.IO80211Family
    600.34
    com.apple.iokit.IONetworkingFamily
    3.2
    com.apple.iokit.IOFireWireFamily
    4.5.5
    com.apple.iokit.IOAHCIFamily
    2.6.0
    com.apple.iokit.IOUSBFamily
    650.4.4
    com.apple.driver.AppleEFINVRAM
    2.0
    com.apple.driver.AppleEFIRuntime
    2.0
    com.apple.iokit.IOHIDFamily
    2.0.0
    com.apple.iokit.IOSMBusFamily
    1.1
    com.apple.security.sandbox
    278.10
    com.apple.kext.AppleMatch
    1.0.0d1
    com.apple.security.TMSafetyNet
    7
    com.apple.driver.AppleKeyStore
    2
    com.apple.driver.DiskImages
    371.1
    com.apple.iokit.IOStorageFamily
    1.9
    com.apple.iokit.IOReportFamily
    21
    com.apple.driver.AppleFDEKeyStore
    28.30
    com.apple.driver.AppleACPIPlatform
    2.0
    com.apple.iokit.IOPCIFamily
    2.8
    com.apple.iokit.IOACPIFamily
    1.4
    com.apple.kec.corecrypto
    1.0
    com.apple.kec.pthread
    1
    System Profile:
    Model: MacBookPro8,2, BootROM MBP81.0047.B27, 4 processors, Intel Core i7, 2 GHz, 8 GB, SMC 1.69f4
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
    Graphics: AMD Radeon HD 6490M, AMD Radeon HD 6490M, PCIe, 256 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E4130314C4620
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E4130314C4620
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.0f6 12982, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: Hitachi HTS545050B9A302, 500,11 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898
    USB Device: FaceTime HD Camera (Built-in)
    USB Device: Hub
    USB Device: Microsoft Notebook Receiver v2.0
    USB Device: BRCM2070 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: Apple Internal Keyboard / Trackpad
    USB Device: Hub
    USB Device: Cruzer Blade
    USB Device: IR Receiver
    Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1

  • Getting selected item from combobox itemrenderer and storing in object

    Hi Guys,
    Can anyone help me in this regard. Its very urgent.
    I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
    I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox  and corressponding values of all other columns of the rows into an Object ?.
    Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
    Kindly help me in this regard.
    Thanks,
    Anand.

    Hi!
    Are you using a collection of VO or DTO as the dataprovider of the combobox component?
    If so, have you created some attribute there to control the user's selection in the combobox?
    For instance:
    private var selected:Boolean = false;
    If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
    For instance:
    private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
        var newCollection:ArrayCollection = new ArrayCollection();
        for each (var item:Object in datagridDataProvider)
            if (item.selected)
                newCollection.addItem(item)
        return newCollection;
    Afterwards, you may serialize this new collection with your back-end.
    Hope it helps you!
    Cheers,
    @Pablo_Souza

Maybe you are looking for

  • Can't update the data of my credit card

    My credit card information was changed. Now I can't update this data on my account since days. Any idea, why?  the error message is 'Card is invalid, please check card details'. thanks

  • Please, help me, What is the difference between SCWCD and SCBCD ?

    {color:#000000}*HI, Everyone* I want to know major difference between Sun Certified Business Component Developer and Sun Certified Web Component Developer. Who should go for business component developer and who should go for web component developer?

  • DATE and TIME Stamps

    I'm a relative newbie still having issues with getting date and time stamps on my printed documents. I use Preview, Pages, Numbers and also tend to print to PDF a lot, which I am opening in Preview. I have found an "Insert" ability in Pages but for s

  • [SOLVED] Configure keyboard layout in X using Gnome

    Hi. This is my first post since I just installed Arch two days ago. My concern is about the console KEYMAP. I succesfully configured /etc/vconsole.conf so that KEYMAP=la-latin1 and it works almost perfectly. The only issue I have is that since my lap

  • My iCal keeps crashing immediately upon opening it.

    I'm using iCal 4.0.4 and have a MacBook Pro running 10.6.7. This just started to happen yesterday. I havn't had problems with it before now. I'm using MobileMe to sync.