Problem with coloring rows

hi there,
how can i get a single row in my jtable colored? i tried out some solutions that were postet here, but they do not work for me. my problem is, that all rows get the new color although i defined it only for one row. i post some code for better understanding and maybe debugging. my jtable consists of 28 rows and 32 colums and i ONLY want row number 18 getting colored pink. any advice are welcome.
public Tabelle() {
          super("Stundenplan");
          datenmodell = new DatenModell();
          tabelle = new JTable(datenmodell);
          TableColumn column = new TableColumn();
          column = null;
          for (int i = 0; i < 32; i++) {
          column = tabelle.getColumnModel().getColumn(i);
          if (i == 0) {
          column.setPreferredWidth(100);
          column.setCellRenderer(new CenterRenderer());
          else {
          column.setPreferredWidth(50);
          column.setCellRenderer(new CenterRenderer());
          kopf.setBorder(BorderFactory.createEtchedBorder());
          tabellenBox.add(kopf);
          tabellenBox.add(tabelle.getTableHeader());
          tabellenBox.add(tabelle);
          tabellenPanel.add(tabellenBox);
          scrollpane = new JScrollPane(tabellenPanel);
          scrollpane.setPreferredSize(new Dimension(1100, 520));
          getContentPane().add(scrollpane);
that is the constructor of the jframe. the following code is my custom cell renderer:
class CenterRenderer extends DefaultTableCellRenderer {
     public Component getTableCellRendererComponent(JTable tab, Object val, boolean sel, boolean foc, int z4, int s4) {
          Component component = super.getTableCellRendererComponent(tab,val,sel,foc,z4,s4);
          ((JLabel)component).setHorizontalAlignment(SwingConstants.CENTER);
          if (z4 == 18) {
               setBackground(Color.pink);
          return component;
}

yeah, i tried it, but then there is some strange behavior. first all rows are white, but if you select row number 18 (the pink one) it becomes pink. then if you select a cell in another column, all becomes white again until you select row number 18 again.
thats not satisfying for me, so if you have a solution for that, please post it.
thanks in advance.

Similar Messages

  • I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I hav

    Hi
    I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I have followed adobes recommendations and have tried both letting the printer respektive photoshop manage the colors. But nothing works. I see that there are different opinions about which is best to do so I tried both. I have the latest printer driver installed. Can anyone help me with this?

    Do the following:
    Print a test page from the printer. Perhaps the print head needs cleaning via its maintenance facility.
    Let the printer manage colors, not PSE
    Calibrate the monitor

  • Problems with colors running CS4 and W7.

    Hey everyone.
    I'm having some MASSIVE problems with colors on my system.
    Windows 7 Prof 64bit
    Photoshop CS4 64bit
    6g Ram
    1T hard drive
    Nvidia GeForce 9800 GTX+
    Dell SE198WFP Monitor 
    The system itself is a Dell Inspiron 530 that I put into a Black Widow V9 gaming tower. 
    Here is an example of the issue I'm having: 
    http://findae.deviantart.com/art/Converge-101214480
    http://i38.tinypic.com/bjcymr.jpg 
    The top image is a (admittedly old and crappy, but it shows the problem) photo that I had previously edited and put in my portfolio. The tinypic below is the result of copying that photo from the portfolio, pasting it into photoshop, and then saving it into a jpg. As you can see, the transitions between colors and the contrast are a complete mess. 
    Thing is, my hard drive recently quit on me, and I had to install the operating system and such on a new drive. I remember having this problem with the system when I first had it, but it either went away on its own or I fixed it somehow before. Now I can't remember for the life of me how I got rid of the problem, and I certainly don't know what the problem is in the first place. I'm tempted to think it may not be photoshop itself, but the problem seems to be especially bad when I'm working with photos. 
    Anyone have any idea what the problem might be and how to solve it? 
    Edit: I also noticed it when viewing http://findae.deviantart.com/gallery/#/d1hni37 in firefox, whereas the other photo appeared to be ok before I copied and pasted it. It has extremely obvious lines of green and orange in the transition from light skin tone to dark skin tone. Annoyingly enough, this doesn't show up in the thumbnail within my gallery at all, only when I click on the thumbnail and see the fullsize image. Extremely frustrating.  
    Here's another good look at the problem while selecting a color in photoshop: http://i37.tinypic.com/2h6t7gh.jpg  All I did was screenshot it a few times, and it deteriorated to that point.

    Screen glitches like color blocks appearing where they shouldn't could indicate a problem with your video drivers.
    Go to the nVidia site and see if they've released any updated drivers; people often report that updated drivers are correcting current problems with Photoshop.
    http://www.nvidia.com/object/win7-winvista-64bit-258.96-whql-driver.html
    Note the recent (3 weeks ago) release.
    -Noel

  • Problem with colors showing in PE10

    Is there a known problem with color in Elements 10?
    I have a gif that when opened in paint shows the light blue color correctly but in PSE10 shows as a buff color.
    Red, yellow and blue seem about right.
    It doesnt matter if it is the gif or the psd file the color showns the same in PSE10.
    Is there a setting or could something be corrupted.

    Bump.
    I have uninstalled and reinstalled Elements and get the same result.
    Is there a way to adjust the colors represented in Elements 10?

  • Strange problem with color measure in Mac.

    Hello, I am having a strange problem with color measure in Mac. For example i create a gradient in Photoshop from color 200 200 200 to color 240 240 240. When i measure the color of the gradient with the color measure tool of Photoshop or with the built in OS X color measure tool the measured color is from 200 199 197 to 240 240 238. I have measured the same gradient with Photoshop for PC and the values are OK (the same values that i create).
    I dont know what is the problem, but i belive that the colors that i create would be the same that i measure after creating them, and also the same values between Mac and PC. I will appreciate it a lot any help or information that you could give me that helps me to understand what is happening here.
    Thank you for your time
    Marcelo.

    Yep you got it, proof as monitor basicaly strips out any profiling and just delivers it straight.
    is there any way to make the OS X color measure tool to measure the original color values
    You mean the document colors - No, like I said photoshop is filtering your image through document profile, proof setup and monitor profile. Why do you want to use Digital color meter anyway for this?
    i dont understand what is the point to measure color values that will change every time a calibrate my monitor.
    Because color values are 'bigger' than whats on your monitor. Your monitor (via photoshop) is only doing the best it can to display those values - which can be anything from LAB colors outside the gamut of your monitor - to CMYK colors. Calibrating it is the only way to allow your monitor to do this in any way accurately. (not ever really possible) Monitors have a certain gamut and are only dispays/representations of the REAL colors that a document, with a profile, holds. So there's only one good reason to measure monitor values, and that's to generate a monitor profile.

  • Java update causes problems with color printing in Mac 10.5

    Had a big problem with color printing for the last two weeks. Thought the printer was broken because it would freeze and refuse to be "seen", or would generate error messages. Bought new Samsung 315, and had the SAME problem. Bought new HP CP1518ni, and had the SAME problem. Not resolved after talking to tech support at both places.
    Looked for software updates around the time of the onset of printing problems. on May 15 installed "Java for Mac OS X 10.5 update" (1.0) (am running on 10.5.8). Removed the Java preferences files (com.apple.java......plist) and restarted.
    Problem solved! Clearly not the printer.

    Hmmm. This is about the time my printer stopped printing too. I've now had two printers in my house and had trouble with both of them. What a pain we should not have to delete updates for our stuff to work together.
    Renee

  • Problem with colors when print to pdf in FM9

    Hi,
    we have some problems with printing colors to pdf with FM9.
    The FM document contains (1) eps file with a green box and (2) a rectangle created with FM graphic tools, filled with the same green color values (91/0/60/44)
    In FrameMaker the two colors really looks different, but so what, in the PDF both colors (eps) and rectangle got the same correct green color.
    Ok, the were different in creation, so they were CMYK and RGB, but your print shop could manage that.
    Now in FM 9:
    (1) If I do a "save as PDF"  and switch OFF "convert CMYK to RGB" the resulting PDF is the same as from FM8 (correct)
    (2) If I print to PDF via distiller and define the job options to "convert all colors to CMYK" the resulting rectangle green is very  different from the eps green.
    I tried different job options, the best result was "convert all colors to CMYK", other options just very more ugly.
    Does someone of you know a solution for your problem? Help is very appreciated. I could send example files if necessary.
    Thanks in advance.
    PK

    PK-ulm wrote:
    But we want to use the print option, using the distiller.
    Pia,
    this last sentence needs some explanation, I think. Why do you want to use the print option?
    Using the print option, you still go the same route as FrameMaker Win always did, which is using the RGB-only Windows postscript driver. Now, with FM9, you have the option to get CMYK colors directly to PDF, as defined, without any color conversion. And it *does* work, as long as you restrict your documents to either CMYK colors or spot colors coming from the FM libraries.
    So, again: why do you want to use the print option?
    On a sidenote: I'm not sure if I interpret your username correctly, but if you are able to understand German, you'll find some in-depth color tests made with FM9 here: http://www.hilfdirselbst.ch/foren/FM_9_und_Farben_in_PDFs____getestet_P387800.html
    Bernd

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Two problems with Front Row

    Hello.
    I have all my music on my iMac and I am streaming it to my Mac Mini connected to my TV and stereo. What I have noticed is that the cover art on my music tracks don't show when I play any of the shared tracks or playlists, just the default picture with the two notes. Is there something I can do that will display it? I have tried to start iTunes and connect the shared library there before starting Front Row but that didn't help.
    I also have a problem with listing my pictures in Front Row. I have an external drive connected to my Mini that has all my pictures and movies. I have no trouble playing the movies (I created an alias in the Movies catalog to the Movies catalog on the external drive), but if I create an alias in the Pictures catalog to the Pictures catalog on the external drive the catalog isn't shown in Front Row. Do I have to import all the pictures into iPhoto? I don't use iPhoto at all because I always use the program that came with my Nikon camera that shows all the picture information, such as focal length, what lens I used, white balance setting, etc. (or Adobe Photoshop Elements it I want to make some changes). Is there something I can do to fix this too?
    Thanks,
    Erik Aleksander Moe

    Bernd, since your comp is still under warranty you may wish to give the online tech support a try -->HERE<--</a>. Click on the "Chat with a support agent" link.
    If you don't want to go that route, then I suggest that you call them over the phone. Hopefully, you have the AppleCare Protection Plan if your 90 day warranty ran out.
    Good Luck.
    G5 20' iMac w/iSight/Remote, 2.5GB RAM, 250GB HD Mac OS X (10.4) OS 10.4.3

  • Problems with color matching when printing...

         Hi, I work for a small family business in the P.O.P. industry.  We currently have myself and one other designer, we both take illustrator files that have come from the graphic design firm that we contract with and get them ready to print on our Vutek QS3200.  However ever since acquiring the printer we have begun to run into problems with the colors when printing.  When the files are exported off of my computer, I use either .tif or .pdf files, they print as they should, the colors seem to match the proof and everything goes smoothly.  However when the other designer exports a file, he tends to do mainly pdfs, the colors tend to be extremely different from where we want them.  Also we will get very strange results, such as yesterday he kept getting a faint yellow 1/2" border around his prints.  After I believe 3+ hours of him trying, I was given the original CD and instructed to try.  After 15-20 minutes of making the changes that we needed to make (adding a new price point) and ripping, mine printed perfectly. 
         We both use Macs, both have CS3 Design standard, only differences between the computers are mine is newer and a bit faster, and I'm running OS 10.5.6 and he has 10.4.  He has also at some point loaded various color profiles, whereas my CS package is just whatever the default is when I loaded it.  When we were being trained he grabbed the color profile off of the Colorburst RIP server and loaded onto his computer, plus I believe he has a couple for freelancing purposes on there as well.  My thought is that these profiles are somehow corrupting the files that are going through that computer, but I honestly am lost with it at the moment.  He believes the problem lies within the fact that he does not have the newer OS, I honestly cannot see that as having any effect on this at all.  I was wondering if anyone has run into any similar problems, or if anyone might have any advice on this issue?  I would really like to be able to solve this, as I was hired to do mainly structural design for the P.O.P. and I'm having to put in a lot of overtime to get my work done along with the additional work that I'm having to do.
    Thanks for your time

    I've got a few years experience calibrating large format printers.  First, the Yellow sounds like a file problem.  I used to work with two workstations, one PC ( RIP station ), and one Mac ( file prep station ).  I tend to agree with you in that the OS is probably not the problem.  But, any Colorburst profiles should remain in the RIP, not in the originator application.  My workflow consisted of creating EPS files that were based on established color settings in their given applications ( i.e., Illustrator, Photoshop ) which were interpreted by the RIP which had it's own calibrated profile ( perhaps more than one based on how many different substrates were being used ).  Your partner may be complicating things by incorporating a RIP profile prematurely.  If there are deviations big enough to be noticed, there has to be something in the application color settings that is causing some type of corruption.  This could lead back to the operating system, but I would think it lies somewhere in Bridge or the application color settings.  Start there.  You should seriously consider implementing a calibration system if you do not have one already.  Another slight possibility is the driver's ability to interpret files coming out of Leopard vs. files coming out of Tiger.  It may benefit you both to be in the same operating system dynamics, using the same driver versions and RIP profiles.  At the very least, match everything that is currently working successfully and put them on both machines.  If there is still a noticeable problem in color matching, then something is seriously wrong and you should call in a prepress profiling expert.  Hope this helps.

  • Problem with multi row delete

    Hi, I'm new in apex and I tried to build master detail report on some view. Everything is cool but "delete checked" doesn't work.
    "ORA-20001: Error in multi row delete operation: row= , ORA-06502: PL/SQL: numeric or value error: NULL index table key value,"
    the problem is that I don't know what is wrong :), I have a special trigger "instead of delete on MY_VIEW", but in this error problem is not explained.
    Anybody knows what can be wrong? It is probably a problem with trigger or multi row doesn't work with views? I couldn't find how MRD knows what kind of statement use to delete rows so I don't know if the statement that program used is correct. In debug it lokks that:
    0.32: ...Do not run process "ApplyMRU", process point=AFTER_SUBMIT, condition type=REQUEST_IN_CONDITION, when button pressed=
    0.32: ...Process "ApplyMRD": MULTI_ROW_DELETE (AFTER_SUBMIT) #OWNER#:MY_VIEW:ITEM1:ITEM2
    0.33: Show ERROR page...
    0.33: Performing rollback...
    thanks for any help
    //sorry for english mistakes
    edit: it doesn't matter if I use in trigger delete from ... where item1=:OLD.item1 ; or if I use item1=:P4_item1 (which actually saves correct values)
    Edited by: user5931224 on 2009-06-13 08:55

    I realised that this is not a problem with trigger, I changed trigger to "NULL;" and problem is the same. Maybe sb used master detail on view not only on tables and know what can be wrong in this situation?

  • 4400F scanner has problems with color slides

    About six years after buying the 4400F scanner, I finally opened it today in order to start scanning a lot of color slides going back more than 40 years.  It seems as if the software (or the scanner itself) doesn't know where one slide ends and the next one begins.  The slide holder accommodates up to four slides.  Using several methods of scanning permitted by the software, I obtain either three or five JPEG scans.  In the case of three, the images are properly centered--only the final one is missing.  In the case of five, the images are all off-center.  
    Has anyone had a similar problem with this unit and the software when scanning slides?
    EG 

    I've got a few years experience calibrating large format printers.  First, the Yellow sounds like a file problem.  I used to work with two workstations, one PC ( RIP station ), and one Mac ( file prep station ).  I tend to agree with you in that the OS is probably not the problem.  But, any Colorburst profiles should remain in the RIP, not in the originator application.  My workflow consisted of creating EPS files that were based on established color settings in their given applications ( i.e., Illustrator, Photoshop ) which were interpreted by the RIP which had it's own calibrated profile ( perhaps more than one based on how many different substrates were being used ).  Your partner may be complicating things by incorporating a RIP profile prematurely.  If there are deviations big enough to be noticed, there has to be something in the application color settings that is causing some type of corruption.  This could lead back to the operating system, but I would think it lies somewhere in Bridge or the application color settings.  Start there.  You should seriously consider implementing a calibration system if you do not have one already.  Another slight possibility is the driver's ability to interpret files coming out of Leopard vs. files coming out of Tiger.  It may benefit you both to be in the same operating system dynamics, using the same driver versions and RIP profiles.  At the very least, match everything that is currently working successfully and put them on both machines.  If there is still a noticeable problem in color matching, then something is seriously wrong and you should call in a prepress profiling expert.  Hope this helps.

  • Having problems with front row (and the opticle drive)

    I bought my macbook three days ago, and I'm already having problems. First off, I transfered music from my user profile on my old iMac G5 to the macbook via data DVD. My music collection had some purchaces from the itunes store, so I had to go through the authorization thing, and I can now play them just fine in the iTunes library, but the problem is, if I try to use the front row program to play my purchaced music, I get the message saying that I have to authorize it first. What the ****? Does anybody else have this problem? Also, like many other macbook users, I'm having problems with the opticle drive, such as getting cds to be recognized and other things of that nature.

    I noticed that this problem started after I tried to use a software to unlock my drive's region...
    I believe this is the problem. The VLC Media Player will usually play DVDs from other regions without changing the settings on your optical drive. You may need to reset your optical drive's firmware back to the original setting, make sure you have the region set for the one you'd prefer to use the most and then use VLC to play the other DVDs.
    -Doug
    P.S. After two years in the Front Row forum, I'm not sure I've ever heard of anyone playing HDDVD_TS folders with Front Row. I'm not saying it won't work, but I'm not sure it's really supported either. I do have DVD Studio Pro myself, but I'll have friends or family staying with me for nearly the next month, so my evenings and weekends will be a bit full to try making one up for testing...

  • Adobe Photoshop CC, problem with color noise/pixelation on the monitor display

    After downloading Adobe Photoshop CC, my images come in with color noise/pixelation on the monitor display. I've tried checking the color space preferences, but this doesn't help. I didn't have this problem before. Is there anything else I can check? There's no problem with LR, just Photoshop.

    My performance settings are: Available RAM 10905 MB/using 7633 MG (70 percent); cache levels 4, history 20, cache tile size 1024K. However, I noticed under Graphics processer settings, it is set on Advanced Drawing Mode - perhaps this should be changed to Normal or Basic Mode? Your help is very much appreciated.

  • Problem with Color conversion ADM_Color to  AI_Color

    Hello friends,
    I think this is going to be the first post in this "Illustrator SDK Forum".
    I am having problem with 'Setting Art Work Colors'.
    I am trying to get the color value from the user through a ADM dialogue window, using the function
    sADMBasic->ChooseColor();
    The function is returning color in
    ADMRGBColor structure, whose members (
    red, green, blue) are of the type
    'short'.
    Now, I want to print a rectangular box art filled with that 'user selected color'.
    But the color I have with me is in the
    ADMRGBColor(each member of type 'short') and to draw that on a illustrator file, I need the type
    'AIThreeColrStyle'(each member is of the type AIReal).
    I had no idea how to convert
    ADMRGBColor to
    AIThreeColorStyle, but after lots of 'trial and errors', I arrived at this 'crude' solution.
    ADMRGBColor value was in the range
    0-65535 and
    AIThreeColorStyle was in the range
    0-1
    aiPathStyle.fill.color.c.rgb.red = ((float)admColor.red)/65535;
    This conversion was working fine on Windows, but on Mac its giving weird results. Can some one tell me the proper solution for this conversion problem?
    Thanking you,
    Vijoy~
    And thank you Adobe for givig us this "Illustrator SDK Forum".
    Forums Operations "Why there is no SDK forum for Illustrator?" 12/13/04 4:21pm

    The code above seems to work for me. I get the proper values in the rgb fields of the AIPathStyle struct. Are you sure you are filling in the remaining values in the struct (like fillPaint, overprint, etc.) with appropriate values?
    Hope that helps,
    -Frank

Maybe you are looking for

  • Dynamic variable value based on a value from xml

    I have a invoice template and it is for 4 different companies in my organization. Based on the organization I need to have a different value for a variable that adds blank lines to the end of the invoice. Is there anyway to assign a value to variable

  • Where is the passwords and security tab?

    I need to change my security quesitons because i forgot the answers. People have said to go to appleid.com and click on the password and security tab. I can't find that. Help!

  • IX6550 install problem

    I am having trouble installing an IX6550 printer. The PC is running Windows XP. The installation proceeds as far as connecting the USB cable and turning on the printer. I get a message box saying 'Found new hardware Canon IX6550 series'. It then star

  • Bruits sur le MacBook Pro

    Bonjour, J'ai mon MBP depuis 5 jours, celui-ci fait un bruit de gresillement, je l'ai retourné à l'apple center de marseille qui a bien voulu me l'echanger contre un autre. Surprise !!! Celui-ci fait le même bruit. Je ne comprends pas. Je ne peu pas

  • HT5312 how do i reset my security question

    need to reset my security question dont remember my answers