Flickering text print applet

my news applet scrolls text across the screen, the text however is flickering. my draw code is below.
          screen2D.clearRect(0,0,getSize().width,getSize().height);
screen2D.drawString(obj.news[obj.currentItem],obj.x,obj.y);
          repaint();
your help would be much appreciated
Arnold Oree

Double Buffering would seem to be the answer to your problems. I'm no expert but the following worked for me where I previous was drawing directly to the screen. Do all your drawing in the offscreen buffer area and then transfer it to the screen with the last statement in your paint method.
I've lifted some code for an applet I created a while back. Hopefully you can see what's going on.
Override the update method
as noted.
// buffer stuff
Graphics bufferGraphics;
Image offScreen;
Dimension dim;
public void paint (Graphics g)
bufferGraphics.clearRect(0,0,dim.width, dim.height);
bufferGraphics.setFont(new Font ("serif", Font.BOLD,18));
// set up board
for (int row = 0; row <=7; ++ row)
for (int column = 0; column <=7; ++ column)
// white squares
if ((row+column)%2 == 0)
bufferGraphics.setColor (new Color(0,0,0));
// black squares
if ((row+column)%2 == 1)
bufferGraphics.setColor (new Color (255,255,255));
// attacked squares
bufferGraphics.fillRect (40+(column*40), 75+(row*40), 40, 40);
if (board [row][column] !=0)
bufferGraphics.setColor (new Color(255,0,0));
bufferGraphics.drawString("X", 52 +(column*40), 101 +(row*40));
} // end row loop
} // end column loop
bufferGraphics.setColor (new Color (255,0,0));
bufferGraphics.drawLine (38,73,360,73); // top
bufferGraphics.drawLine (38,74,360,74); // top
bufferGraphics.drawLine (38,75,360,75); // top
bufferGraphics.drawLine (40,75,40,395); // left
bufferGraphics.drawLine (39,75,39,395); // left
bufferGraphics.drawLine (38,75,38,395); // left
bufferGraphics.drawLine (38,395,360,395); // bottom
bufferGraphics.drawLine (38,396,360,396); // bottom
bufferGraphics.drawLine (38,397,360,397); // bottom
bufferGraphics.drawLine (360,75,360,395); // right
bufferGraphics.drawLine (361,73,361,397); // right
bufferGraphics.drawLine (362,73,362,397); // right
bufferGraphics.setColor (new Color (255,0,0));
g.drawImage (offScreen, 0, 0, this);
} // end paint
public void update (Graphics g)
paint (g);
} // end update

Similar Messages

  • Text Prints as Black Instead of Assigned Swatch

    Hi, I have been having problems with text printing to a HP laser 5500dn printing as black in
    stead of the assigned swatch color.
    I am using CS3 on a Mac.
    It will print fine exported to PDF or printed on an inkjet.
    I have reset preferences.
    In the print dialogue box I have the following settings.
    I DO NOT have "Text as Black" selected.
    Color Management is: US Web Coated SWOP v2
    Color Handling is Let InDesign determine Colors
    Printer Profile is Document CMYK US Web Coated SWOP v2
    Output color is Composite CMYK (Unable to change in this configuration)
    Lastly, after printing and then closing the document,ID asks to save changes, When I cancel and review what edits were done, the last edit comes up as
    "Undo Change Ink"
    I don't know what that means.
    Suggestions?
    Thanks

    Thanks for your help.
    I haven't deleted the swatch or converted to another color.
    Not sure what you mean by aliasing the swatch.
    I did as suggested and looked in the printer setup in the print dialog and did not see anything to print text as black.
    So I ended up changing the text to several different colors and now it prints those colors fine.
    I think the color is so dark as to appear to be black when printing even though it is very apparent on the monitor that it is much different than black.
    I know that monitor colors and printer colors won't match, but this had me very baffled.
    Especially as the PDF printed much differently.
    So I guess I am going to print from the PDF to make sure the colors are as I want them to be.
    I work predominantly on a PC with CS3 that does not have Indesign; the Mac has CS3 with InDesign. The Mac routinely prints all documents much darker than the PC and what is displayed on the screen.
    Thanks, again.

  • Black text prints white

    I finally purchased a copy of iWork '08 and merrily created about 80 slides only when I went to print them out I discovered that the image of the text was in most places white. If the text was in a box it printed and some of the grey text printed along with all text I have set up to fade in or out as the presentation progresses. The details:
    The black text appears in preview but appears white due to the colored background.
    Changing fonts does not help.
    All other programs print fine. I am printing on a Canon MP830, the text does show up on my Laser.
    If I export it to a .pdf the problem follows, even though the text appears on the screen and in preview.
    If I change the color of my text from black to red, or blue it prints fine, shades of grey do not.
    If I export the file to power point and print it from an old version I have in a "Classic" partition running OS 10.4 it prints but when I installed iWork in this partition I get the same result.
    The printer, my software, and iWork has the latest updates installed.
    This is obviously (well maybe not so obviously since it could be a virus no one has caught up with yet) a huge bug in iWork and how it handles black text (I don't know about graphics because there are not black graphics in my slides). I spent several hours reading through the "Discussions" and there are quite a few instances where black text comes out white, blank sheets print out, conversions to .pdf come out with no text ect.
    Does any one know of a work around for this? My only option currently is to fix this or return iWork and go back to Micorsoft with my tail between my legs and purchase Office.

    Presets is set to "Standard" I never changed it. If I select the drop down window there is a choice for "last used settings" and a "Save As".
    I did manage to get my slides printed by saving the file as a Power Point, opening it in a old Office 2001 version of Power Point I have in a "Classic" partition. After a little reformatting they printed perfectly on the same printer. Its kind of sad to have a 8 year old Microsoft program out-perform the latest program from Apple. Of course I will say that using Keynote was enjoyable, but if you can't reliably Print and Export the program is useless no matter how many useful features it comes with.

  • Text prints as bold when it's not bold :(

    Hi,
    I'm using Windows 7 and InDesign CS6. When I print PDF documents from files that have been created in InDesign some lines of the text print out bold when they are not bold and they also look a little fuzzy. I am creating the PDf using the "[High Quality Print]" option. I have tried changing several settings on the printer but nothing makes a difference. The problem doesn't occur when I print in black and white nor does it occur on PDF's I create from word or other applications. Can someone please help? Thanks Mel

    Try updating the driver to a newer version for your printer.
    And if you can get a Postscript Driver for your printer.
    I had a similar issue last year and installing a postscript driver fixed the issue for me.
    What printer are you using?

  • Stop it from using photo black ink for black text printing and where has the color ink gone?

    My HP Photosmart Prem C310 series all in one is using the Black Photo ink cartridge for text printing instead of the XL Black that I put in it for text printing. How can I get it to use the right cartridge for printing? Also, even though I have NOT printed ANY photo's and very few pages of text the new set of color cartridges I put in it a few months ago are almost empty. Why? How could they be almost empty when I have NOT printed anything in color? This is getting ridiculous replacing ink cartridges every few months WHEN I HAVE NOT BEEN PRINTING ANYTHING!!!
    The set of ink cartridges that came with it lasted for several months. Since then I've gone through two sets in less than a year. That's 3 sets of ink cartridges when I have only printed 3 photo's when I first set it up. And have only used les than a 1/4 of one package of printing paper. I've only put paper in it twice. Each time it was about a 1/4 inch or 3/8 of an inch thick stack of paper in the tray. I've even tried shutting the printer down when its not being used for a long period of time but the ink is still disapearing. Where is it going? Why is it going there? How do I stop it? This is rediculous. I may as well junk the thing even though it still works because I cant aford to keep feeding it ink when its just sitting there doing nothing most of the time.
    Thank you
    This question was solved.
    View Solution.

    I just got another email from HP about this problem wanting to know what I found for a solution to this problem. From all of the suggestions from the HP tec support all of them pretty much kept saying the same thing. That it is my fault that it's using so much ink because I have it on the wrong settings. One tec did slip and say that it doesn't matter what settings you have it on it will always use the Photo Black cartridge for printing plain black text and it doesn't matter if you have a X-Large Black cartridge in it for text printing because it was made to always use the Photo Black for text and even use some of the colors to blend with the black to make it stand out. Why anybody would need this when just printing shipping labels and things like that I don't know.
    Any who, The only solution for this problem is,,,, junk the printer and get a different brand & model of printer. Research it before buying to find out how much ink it wants to waste and if it will still print black text if it only has a black cartridge in it. I was going to get rid of mine by giving it to a friend since they don't have a printer. But since I want to keep him as a friend I decided not to give it to him. Since it cant be traded in for a different one even though it still works, Its going to the target shooting range the next time I go out shooting. Maybe I'll take a few video's clips of it getting blasted to pieces with a Ruger 10-22 .22 cal. rifle with 25 shot clips, a Ruger Mini-14 Ranch Rifle shooting .223 cal with a 30 shot clip, a Chinese SKS 7.62 with a 30 shot clip. And maybe use my Ruger P89 9mm pistol and put a couple 15 round clips of 9mm in it. If there's anything left I'll finish it off with a few 3" magnum loads of #2 steel shot with my 20 gauge shotgun.  Then I think I'll do the same thing to my Westinghouse 46" flat screen HDTV that just died.
       Then maybe I'll come back and post the video's of my "solution to this printers problem". It may not fix the problem, but it will be an entertaining way of getting rid of the problem.

  • Laser Jet Printer/Color Text Prints Grey

    Hi everyone, I have a HP LaserJet 2430, black & white printer hooked up to my iMac. I'm running Snow Leopard 10.6.6. When I want to print, for example, an email where a color was used for the font, the colored font prints in grey. When I was able to use the printer driver of my choice, I believe I used a PS or post script driver and everything printed in solid black. Now that the operating system is choosing the drivers for us, I seem to have this grey text issue. I've tried going to HP and downloading older drivers but they wouldn't install on my system, something about the drivers being older versions or something. I'd sure like to be able to choose my own drivers. Can anyone lend any help on this?
    I am able to make the colored text print a little darker but I have to go through many dialog boxes to change different settings and I just want to print quickly but any application but be able to read the text a little easier.
    Thanks for any help!

    Hello Arifbutt72,
    To get your issue more exposure I would suggest posting it in the commercial forums since the Color LaserJet printer 3600 is a commercial product. You can do this at HP Enterprise Business Community.
    I hope this helps!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Is printing to generic text printer and hand-coding the report possible?

    We have created Oracle Reports that are formatted to print to Zebra printers. We code the report in Report Layout and the text printed is for generic text printers, what our Zebra printers requires. Can this be done with APEX reports?
    Example:
    ^xa
    ^ilr:val_set.grf2^fs
    ^fo88,132^a0,90,80^fb464,1,0,C,0^fd&<ACCESSION>^fs
    ^by2,3.0,32^fs
    ^ft64,402^BCb,32,n,n^fd&<FARMFIELD>^fs
    ^ft600,402^BCb,32,n,n^sn&<LOCLOW>,1,y^fs
    ^fo304,232^a0r,20,20^fd&<LOCTYPE>^fs
    ^fo334,232^a0,50,45^sn&<LOCLOW>,1,y^fs
    (skipping some code here for brevity)
    ^pq&<LOC_ROWS>^fs
    ^xz
    Asking whether APEX can print to generic text printers and can we code the report output
    ourselves.
    Thanks for any help.
    dave

    Here is a simple example of printing via pl/sql to a text file...
    create or replace procedure utl_file_io is
    l_fil utl_file.file_type;
    l_buf varchar2(200);
    begin
    l_fil := utl_file.fopen('TMP', 'amar_test.t', 'W');
    utl_file.put_line(l_fil, 'This is a sample text file.');
    utl_file.put_line(l_fil, 'Generated from Oracle utl_file package.');
    utl_file.put_line(l_fil, 'Below is the content of am1010 table.');
    for rec in (select col1, col2 from am1000) loop
    utl_file.put_line(l_fil, rpad(rec.col1, 15, ' ') || rec.col2);
    end loop;
    utl_file.put_line(l_fil, 'End of File');
    utl_file.fclose(l_fil);
    exception
    when no_data_found then
    utl_file.fclose(l_fil);
    end;
    This routine will generate a text file to the default directory on your server, you would need to build an Oracle directory and change the code to include the path to your file there. Getting it to the printer could be a simple shell script that copies the file out your your printer if it is on the network and can be seen..
    Thank you,
    Tony Miller
    Webster, TX

  • Error message 42110 upon opening itunes does not interfere with playing library or downloading.  Although printing jewel case lables the text prints over its self.  How do I fix this?

    I get an error 42110 upon opening itunes.  It has no effect on downloading to or playing my library.  However when I try to print a jewel case insert the text prints over its self.  How do I fix this.  It only started recently.

    Try the following user tip:
    iTunes for Windows 11.0.2.25 and 11.0.2.26: "Unknown error -42110" messages when launching iTunes

  • Format lost when printing to Generic Text Printer after recent upgrade

    We recently upgraded Crystal and now the texty file output from a generic text printer has losst its formatting.
    The text appears like this:
      S
      u
      m
      m
      a
      r
      y
    There si an OD character after each letter.
    Does anyone know what could be causing this?

    Hi Mike,
    That is odd.... What happens if you check on the No Default Printer, save the report and then check it off, or the other way depending on what your original setting is?
    If you create a new report do you see the same results?
    Also, XI is no longer patchable but you can upgrade to XI R2 for free. Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    To enable the full XI R2 features locate the Keycode link and get a new one for XI R2.
    Thank you
    Don

  • Arabic text printing using smartfroms

    Hi,
    I' m printing Purchase oder in Arabic language , we installed Arabic supoort drivers
    in SAP system, when I see arabic values in debugging I am able to see arabic text perfectly , but when I give print or Print Preview arabic text printing as with some JUNK arabic characters , it's not printing as word.
    Please help me on this
    Thanks
    Naveen

    I am facing exactly the same problem with printing arabic text in samrtforms. I guess you the Device type in the printer settings would be set to either ARSWIN. Try changing it to I6SWIN and it should work to some extent. The arabic words should come up correctly in the print ( not in print preview). However it would print # in the start and end of the form. This is not acceptable in my case and I am still looking for a better solution. See if it helps you in some way.

  • Flickering text in chatbox while typing after Skype upgrade to version 7.1.0.105

    'Would appreciate any help with this flickering text problem -- the whole message would flicker while I type in the chatbox. I did not have this issue with the previous Skype version. Updated to: version 7.1.0.105Video Card: nVidia GeForce GTX 550TiOS: Windows 7  

    ootomaskooo wrote:
    1.) always have my drivers up-to-date (347.52)
    2.) just tried, nothing changed...
    3.) no programs listed
    This happens on my desktop. On my notebook I have version 7.1.0.105, it says it's up-to-date (which is a bit weird) and the flicker doesn't happen there..You're right, it is strange. My desktop specs:VGA: nVidia GTX 550 TiDriver ver: 347.52 OS: Windows 7 SP1
    Could the flickering be hardware- or OS-specific? What are your laptop specs and desktop specs, by the way? ruwim asked me to save a dxdiag log file to help in diagnosing the issue -- would you mind doing the same?ruwim wrote:
    Please,  run the DirectX diagnostics tool. Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here. 

  • Plain text print speed thru lpr vs. BBEdit

    When I send a plain text file to the Unix lpr command, it prints slowly; when I print with, say, BBEdit, the same text comes out much faster.
    I'm using an iBook G3 600 MHz with USB 1.0, OS X 10.4.11, and
    an Epson Stylus CX6000--a recent, non-Postscript inkjet printer with recent driver from Epson.
    Example: a one-page, 897-byte file. Counting from the time the paper starts to move:
    lpr: 120 sec (7.5 characters per second, slower than a teletype)
    enscript: 90 sec
    BBEdit: 20 sec
    (To top it off lpr uses an awful 14-point narrow font...but I already can print slowly in a better font.)
    It doesn't seem to be simply a matter of communication speed. Printing through lpr, the print head is constantly moving, but the paper advances very slowly, as if by scan lines. Printing from BBEdit, the paper advances like an inch at a time.
    My guess is that BBEdit gives the text to the printer driver which basically sends it on as text to the printer, which has a fast way to print text, while lpr goes through a postscript/bitmap process. In fact lpr is slower than enscript, which explicitly converts to postscript (which has to be rendered in the computer) before printing. (The lpr/enscript speed difference may be because lpr uses a bigger default font.)
    So: how can I access that fast text printing ability from Unix? Is there some sample Unix-style C source code out there that calls the same API that BBEdit is calling, that would be easy to adapt to printing text from a file or stdin?
    Or, an option or utility already in Mac OS X? A third-party utility that's already out there?
    --Steve
    P.S. Camino printing the edit page for this post (multiple fonts, boxes, sidebar, etc.): 28 sec. Also, inch-at-a-time.

    YES!!
    The BBEdit command line tool was apparently introduced in version 6.5, which is the version I have. In the BBEdit folder (the folder BBEdit.app is in) there is a "BBEdit Extras" folder with a "BBEdit Unix Tools Installer.dmg".
    Once installed there's a Unix command "bbedit", and you can do "man bbedit".
    Besides -p for print there's -b for background, so you never even see anything happen on the screen.
    It prints with the defaults set in BBEdit's preferences. I like Courier 10.
    I do appreciate enscript. That's what I meant when I said I already knew how to print nice fonts slowly. Also, 2-up is nice, I have my own script for it!
    Thanks a lot, etresoft!
    --Steve

  • Black text prints with screen in non PS digital printer

    I'm trying to find a way to print a color CS3 document to our Panasonic DP-C264 so that the black text prints solid black with no screening. It works if I use the PS driver, but some of the finishing options we need aren't available in that driver. The only other way I've found to get solid black text is to output in grayscale, but obviously that's not acceptable for a color job! So far I've tried making sure the transparency flattening is set to high, set the text attributes to "overprint fill," set text to print black in the print dialog box... but no joy; I always get screened black text.
    Ultimately we want to offer a solution for customers who are creating documents in InDesign (CS through CS3) and creating PDFs for us to print for them. So if there is a way to get the text to go solid black in the PDF process, that would be great to know also.
    Ideas??

    I will check on that when I print from PDF -- I'm starting out by printing directly from InDesign first though. I figure it it doesn't work from the original application there's not much point in going to PDF...!! Thanks for the idea though; I wasn't aware of the Print As Image option.
    Cheers,
    Linda

  • Email html formatted (Text) printing quality issue on hp 6500a (710a)

    I experience some quality problems printing html formatted mails (not attachments, only standard text). The characters are printed with different free space between every char. There is no special sign or format. It happens from different note/netbooks/iphone.
    Pure email-Text-Printing is ok (same text), Attachment-Printing (word-doc arial text only) is ok (same text).
    The  printer has the actual firmware, alle computers and iphone are uptodate. Reset is no solution. Problems are reproducable on other hp 6500 series printers.
    See attached example

    kaaemm,
    Unfortunately, HTML formatted emails are not currently supported. They may go through and print, but results will vary. Only HTML attachments are supported at this time.
    ============================
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • PDF Text Print Offset by 1 Character

    Has Adobe ever resolved the issue of PDF documents that appear normal, but when printed, the text prints one EBCDIC character forward.  The printed text also appears to retain the spacing accorded to the original letters. 

    I remember we used to see more reports of this, and now it's very rarely bought up in forums.
    My instinct is that it's very old printer drivers, but that's just a first stab at it.
    I also have a vague recollection that this could happen if Reader/Acrobat is closed before the printing has completed, perhaps because printing relies on temporary fonts.

Maybe you are looking for

  • Why won't my Iphone 4 stay synced with my 2009 Ford Flex?, Why won't my Iphone 4 stay synced with my 2009 Ford Flex?

    I recently purchased an iphone 4 through Verizon and it will not stay synced with my 2009 Ford Flex.  I've tried rebooting the sync system with Ford, and have reinstalled the phone numerous times with no luck. I have to turn off the bluetooth setting

  • TableSorter

    I have a problem with TableSorter. I am pretty much using the version supplied on the Sun site. When I click the headers, the table reorganises itself fine on the screen. However when I double click on them using a method within the JTable the row wh

  • Error while carryforwording vendor/ customers balances to next fiscal year

    Hi Guru's, While carriforwording balances of vendors & Customers to next fiscal year the system didnt show the log in f.07. The balances were carried forword to next fiscal year but instead of showing those balances in Balance column it displays it i

  • CFM2 Activate the Integration Model

    Hi Gurus, I have created the integration model using CFM1 and when I try to activate the Integration Model in CFM2 I get an error "OUTBOUND QUEUE BLOCKED". SYSTEM: PAPCLNT400 FUNCTION: /SAPAPO/CIF_PROD_INBOUND TEXT: THE ABAP/4 OPEN SQL ARRAY INSERT R

  • Calculation in Discoverer Desktop

    I am new to this forum, and pretty new to Discoverer so please go easy on me, and I'm sorry if I ask what seems like easy/stupid questions! I am wanting to create a calculation to appear as a column against some data I have on my report. My report sh