When setcelleditor as jcombobox, change single combobox and affect the rest

hi,
i contruct a jtable which set a particular column into a jcombobox editor but when i modify a single jcombobox, the rest of the combobox in the same column change accordingly also. May i know why? i set the editor like this
JComboBox box = new JComboBox();
box.addItem("No 1");
box.addItem("No 2");
TableColumn col1 = table.getColumnModel().getColumn(0);
col1.setCellEditor(new DefaultCellEditor(box));
May i know what is the problem of this?

The problem is solved already but i still do not understand why it will affect just 4 comboboxes at a time...It will not affect all. When i initialized a bean object, lets say the Customer
public class Customer {
String name;
String gender;
public void setName(String name) {...}
public void setGender(String gender) {...}
public String getName(){...}
public String getGender(){...}
}i did not provide the default value for the gender combobox.I initialized it like this
new Customer();
But there is no null or blank field in my combobox. So, it think the system cannot find the default value and set to whatever i modified to the first combobox. But the question is, if i have 8 rows, each row consists of 1 gender combobox, it only affect untill the 4th combobox, the 5th row and the rest is maintained, didnt change at all. This is very strange....nvm, the issue solved, and i would be happy to share my email and probably get ur example code for reference....
And, do u have any idea on how to set the celleditor and cellrenderer in a more OO way.....that means it is reusable and comform to some kind of design pattern. Currently the way i am doing is so not comfortable and ugly...and not reusable.
Thansk!

Similar Messages

  • My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    Solved the problem. I had to allow cookies for safari and it run - as here: Re: itunes keeps asking for my apple id password. it's NOT entered incorrectly.

  • TS2755 Azerbaijan (+994) missed as location (??!!) for imessage and FaceTime? When you enter to "change location", no Azerbaijan amongs the region?!!

    IOS7...Azerbaijan (+994) missed as location (??!!) for imessage and FaceTime? When you enter to "change location", no Azerbaijan amongs the region?!!
    +994 phone number is disappeared !!!

    Why no one from Apple support team still didn't replied to this question? It is really problem for Apple Azerbaijan users which I'm pretty sure are more than above mentioned two countries.
    I hope Apple support team will investigate and find the solution for this problem and satisfy Apple users in Azerbaijan.

  • HT1212 i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?

    i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?.,

    Either way the result is the same... if you forgot (or don't know) your passcode, restore the device from backup on the last computer it was synced with when the passcode was turned on... this will remove the passcode. If you do not have access to the last computer it was synced with, you will have to force it into recovery mode & restore as a new device.

  • My keyboard doens't work correctly when I push numbers it appears symbols and all the letters are not good

    My keyboard doens't work correctly when I push numbers it appears symbols and all the letters are not good

    I suspect someone or something in your house may have changed a keyboard preference. Try System Preferences - Keyboard - Keyboard tab  - uncheck Use all F1......

  • I changed my password and used the new computer, next time I tried to log in it wouldn't accept the password. I tried the old one as well but that doesn't work either. Can anyone help?

    I changed my password and used the new computer, next time I tried to log in it wouldn't accept the password. I tried the old one as well but that doesn't work either. Can anyone help?

    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    When the menubar appears select Terminal from the Utilities menu. Enter resetpassword at the prompt and press RETURN. Follow instructions in the dialog window that will appear.
    Or see Reset a Mac OS X 10.7 Lion Password and OS X Lion- Apple ID can be used to reset your user account password.
    Be sure to open Keychain Access and repair the keychain:
    Assuming that you are using a recent build of OS X, go to /Applications/Utilities and launch the app called Keychain Access. Go to the Window pulldown menu and select "Keychain First Aid". Enter your password, set the radio button to "Repair", and click "Start".

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt

    I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt available anymore in the plugin list. Tried to reinstall everything for a few times, but nothing helps.

    When I search for updates the raw converter doesnt get update automaticly. Frustrating, is costing me the whole morning.

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

  • I just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?

    i just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?

    Support articles for things like this would be here:
    http://www.apple.com/support/bootcamp

  • Hello, i created 5 different books (photo album) and i would like to know if it's possible to make one single order (and pay the transportation fees only once...) i couldn't find how

    hello, i created 5 different books (photo album) and i would like to know if it's possible to make one single order (and pay the transportation fees only once...) i couldn't find how

    Soory, no, it is not possible. You can only combine multiple copies of the same book into one order.
    Regards
    Léonie

  • My macbook pro (2010 13inch) is really laggy when I'm using apps like iTunes and safari. the arrow on the screen seems to not respond and is laggy and when viewing videos it can be really laggy. I just want to know if it was a problem i could fix, thanks.

    My macbook pro (2010 13inch) is really laggy when I'm using apps like iTunes and safari. the arrow on the screen seems to not respond and is laggy and when viewing videos it can be really laggy. I just want to know if it was a problem i could fix, thanks.

    You might start with:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    If the above reveals nothing helpful, then create a new user account. Log out of your account and log into the new account. Do the problems cease?

  • I have deactivated my CS6 on my old computer and now when I have downloaded a trial version and enter the serial number it says not valid? I have only used my license on one computer before? Does anyone know the problem?

    I have deactivated my CS6 on my old computer and now when I have downloaded a trial version and enter the serial number it says not valid? I have only used my license on one computer before? Does anyone know the problem?

    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    OR
    Asked to sign in after paying may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    or
    http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    Membership and Payments http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html

  • HT4623 I just got a new iphone 5,and when I try to update my phone, and install the aps that I've already purchased onto it, it says I don't have permission to do so.

    I just got a new iphone 5,and when I try to update my phone, and install the aps that I've already purchased onto it, it says I don't have permission to do so.

    Contact your carrier & have them reset your Voicemail. Most carriers require such, so after they reset it, just set it up again.

Maybe you are looking for

  • PO with reference to contract

    We create contract with transaction code ME31K. With reference to this contract we create purchase order using transaction code ME21N. All conditions from contract gets copied into PO as it is but the field of gross price (KBETR u2013 KOMV) in PO is

  • Acrobat X Pro install problem

    I am trying to install Acrobat X Pro on a laptop that originally had Windows Vista and Acrobat 8 on it.  I deactivated and uninstalled Acrobat 8, and upgraded the OS to Windows 7 (32-bit) via an inplace upgrade (not a clean install of Windows). I am

  • Customize detail level navigation

    Hi, I want to create my own detail level navigation(dln) iview. I need to have the same functionality of the standard dln iview with minor changes. So my question is : Is there any par file provided by sap so that I can extend or simply reuse it. Nex

  • Problem with Advanced Table

    Hi All, I am trying to use Advanced Table in my custom page. When I try to run the page, i got an exception. I am new to OA Framework. I am looking forward for help. Thanks Amit Error Page Exception Details. oracle.apps.fnd.framework.OAException: App

  • FlashHelp

    Hi, can anybody help? I have created a project using Robohelp HTML, when I publish to flash help everything looks great. However, when I copy the published file to CD, including the auto run file, the project attempts to open but does not show the Fl