Compiling order/graphics won't display

I am writing a code which requires a real time print to screen of graphics. I use the validate() command after each graphic should be printed but the program doesn't print until it reaches the end and then prints all the graphics at once. It definitely isn't printing as the instructions say as there should be significant pauses between graphics.
I think it is because the compiler is reordering my commands. Is there any way to adjust this.
Thanks

pmuurray,
I have programmed using threads before in another
languge. But it was so painful and confusing that the
thought of doing so again is scary. Nothing tricky me dear, just procedures to follow - it is consisitent and logicalimport java.awt.event.*;
import java.awt.*;
public class WithThread extends Frame implements Runnable{
   int x=10,y=40;
   public WithThread() {
      new Thread(this).start();
   public void run(){
      while (x<140){
         try{
            Thread.sleep(1000);
               x += 10;
               y += 10;
               repaint();
         catch(Exception exc){}
   public void paint(Graphics g){
      g.drawString("I am a thread", x, y);
   public static void main(String[] args) {
      WithThread frame = new WithThread();     
      frame.setSize(240,180);
      frame.setVisible(true);
         frame.addWindowListener(new WindowAdapter(){
            public void windowClosing(WindowEvent e){
               System.exit(0);
}

Similar Messages

  • Incredible email graphics won't display

    Occasionally I get emails with graphics in the email, rather than attachments.  The graphics don't display, so I have to open the email on my home PC to see them.  On my Droid, I went into email/menu/more/settings/send & receive to find my 'Mail size limit' was set at 5kb, so I changed it to No limit.  I forwarded the email from my PC (same ISP), however only a few of the graphics appeared, most did not.  My wife has the Droid X and we share the same email account, so she also got the email.  She can see all the graphics.  What gives?  We both have the same OS.

    the graphics in my emails are always in the body of the email? i never receive them as attachments? i get many emails with graphics and they always appear in the same manner as when i pull those same emails from my pc. i just checked my settings, but can't find anywhere to change anything that may affect how your emails show up on the device? sorry.

  • Won't display playlists in numerical order

    Hello,
    My iPod won't display my playlists in numerical order. Playlist 1 is listed below number 2 and 3. I've tried dragging it with no success.
    Thanks.

    Hi,
    By Default iChat uses port 5190 on the TCP Protocol to Login to the AIM servers.
    It gets info back including some Text chats on port 5190 on the UDP protocol.
    SOme modems and routers do not seem to like this use of the same port twice.
    Go to iChat > Preferences > Accounts > Server Settings tab
    Whilst Logged out of AIM change the port to 443
    Log back into AIM
    Also consider deactivating "Animate Buddies" and/or stopping any AppleScript that "Scrolls" the Status Message.
    3:49 PM Tuesday; January 1, 2008

  • RH7 compiled topics won't display and throw an IE (syntax) script error

    Pundits,
    I am using RH 7 to create projects of about 600 topics. My OS is Windows XP Pro 2002, SP-3. My problem is that approximately 10% of the topics in my .chm file prompt an IE script error msg when I, or anyone else, tries to open them.
    Here's the error msg:
    When this window displays, user can click on either Yes or No and topic will display normally; the next time a user attempts to open this topic, same error displays, with same Yes/No click behavior.
    When I look at the html for any of the "bad" topics (i.e., topics that won't display), there is always this one extra line of code, referring to the ehlpdhtm.js file in my project folder:
    <script language="javascript" src="ehlpdhtm.js"></script>
    This line is never in the html of the "good" topics.
    Can anyone shed any light on what's causing this, and what I can do to remedy the situation?
    Thanks in advance.
    Dennis

    William,
    I have gone thru my project now and, as I stated in my May 1 mail to you, I have made duplicates of all of the "bad" topics and all of these new topics are now displaying correctly.
    Now I have a related, but different issue.
    Only one topic is causing that same error msg to display (refer to my original April 27 post: IE script error/syntax error; Line 13, character 1).
    The only topic that throws that error msg is the initial topic that displays when the .chm file is opened (i.e., the topic that is specified as the "Default Topic" in the HTML Help Options window when I click the Generate Layout button in the SSL pod.)
    Furthermore, the topic that throws the error message will only do so if it is the one specified as the Default Topic.
    As an example, if I have the topic Apple specified as the Default Topic, when the .chm file is opened the error msg window will display; when the user clicks either Yes or No to the "Do you want to continue running scripts?" query, the Apple topic will display normally. Each time that topic is selected it will throw the same error msg. window.
    If I go back to my project in RH and change the Default Topic to the Pear topic, re-compile the project, when the .chm file is opened the error msg will display; when you click Yes/No the Pear topic will display normally (until it's selected again). The Apple topic now displays fine at all times.
    This tells me that the problem seems not to be with the Apple topic, as I'd suspected, but with something that's going on with RH and how it displays the initial topic in a compiled project. I think.
    Any ideas on how I can remedy this issue?
    Thanks in advance.
    Dennis

  • Safari won't display graphics for some web sites

    There are some sites that Safari won't display all of the graphics. For instance, nissanusa.com opens to a blank page with a little "feedback" symbol in the lower right corner. Similarly, the infiniti.com page has some text but no graphics. Both pages open fine on Firefox. There are other pages, but I prefer not to have to switch back and forth between browsers. Am I missing a plug-in that I don't know about?
    Phil

    Sorry, Guys. Somehow I screwed up when I installed the new Safari with Leopard. I don't remember accessing the preferences for Safari and thought they remained the same as for Safari 2. However, upon checking, I discovered the "enable plug-ins" box unchecked. Checking it solved all of the web site problems.
    Peter, Thanks for your response. For informational purposes, on Safari 3, the "enable Flash" button is no longer hidden in the Mime settings tab. Now it's on right on the advanced page of the Quicktime preferences.
    Again, sorry for my screw up and thanks for your help!
    Phil

  • Layered text and graphic in Word won't display when converted to PDF

    I have several simple shapes with text layered in front in my Word document. After they are converted to PDF using Acrobat XI, only the shape will display. I can tell the text is still there, because I can use my cursor tool to select it, but it won't display visually. It looks like it isn't there but it really is. One bit of text is even an internal link, and the link still works but I can't see the text I'm clicking on.
    If anyone has any suggestions I'd appreciate it.
    Thank you,

    Hi Lori - this was perfect! It was an issue with the layers being misordered. I used the Edit Text & Images tool listed under Tools > Content Editing, found the layers, then by right-clicking I was able to bring the text to the front and it all looks great now.
    I would like to know why this happened, or if not why, how I could make sure it doesn't happen again. If there's a check box or other setting I could use to remove this problem that would be fantastic.
    Thank you so much for pointing me in the right direction!
    -Scott

  • TOC Won't Display in WinHelp

    I am updating a WinHelp project that was previously developed
    in X3 but which I am now trying to update and compile in RoboHelp 7
    for Word. The TOC won't display (i.e., the TOC navigation panel at
    the left doesn't display) when the help is launched. When viewing
    the TOC in the single panel window by clicking the Help Topics
    button, the links do work. There is a CNT file. I tried deleting
    the GID file (as suggested by Adobe), and using the old CNT file
    that worked in the previous version of the project. Anyone else
    experience this with RoboHelp 7?

    We're getting the same issue here. We compile - looks great. We copy the hlp and cnt files to another computer and the TOC disappears. We're using RoboHelp for Word and have been since v5. Can anyone help on this? All topics are there; links work, graphics great, but the Table of Contents has vanished.
    If I run the AutoGenerate TOC function, the TOC disappears completely from the system. Bear in mind, this is the same file we've been working from for the last 3 years and up until now has been working. We recently updated to v7 and upgraded again to v8 today.
    I really appreciate any guidance anyone can give.
    Kerry

  • HP Photosmart Plus B210a all-in-one won't display any networks in the list.

    Hi, I recently purchased a HP Photosmart Plus all in one printer and I've been having trouble with it from day one.
    First off, it won't connect wirelessly.
    It won't display any networks in the list when searched for, it won't take my network details when I manually input them and it won't take any static IP address I've tried from other suggestions.
    Secondly, the print quality is very bad. Streaks and fading are occuring and after using up 70% of my ink trying to sort it out through troubleshooting it's still bad.
    It's extremely important for me to be able to have web access using the printer as all members of my household use it and it'll get fustrating having to car laptops and computers around to print.
    Can anybody help at all?

    Top line says "The wireless radio is not functioning. Contact HP support"
    I take this as a very bad sign and needs replacing?
    The tests I done produce streaks, fading and lines. I printed off two photos, one from a memory card and one from a scan. The memory card produced heavy blocked lines of color and the scan was just dull.
    I'm using a Wanadoo Wireless Livebox and Windows 7 64 Bit
    One other question... is this like a brilliant printer for photos mainly? I'm a Graphics design student and although my final prints are made from home I would like accurate and decent printouts for my portfolios. Should I keep this or go for another one with similar features and better print quality?

  • DW8:  image won't display in Design View

    Folks:
    DW8 on MacOS 10.4.8 (fully updated) on Intel iMac.
    What would keep an image from displaying in DW Design View?
    What are the causes of the grey box with the superimposed "X"? Is
    there any diagnostic output that might help? Is the grey box and
    "X" substituted by DW8 for an invalid or un-drawable graphic, or is
    this done by the OS?
    The problem:
    I've got a 1912 x 1481 graphic, a geographic map, in AI that
    I'm trying to use as an ordinary web image, but DW won't display it
    in Design View. Instead all I see is a big grey box and "X". For
    test purposes, I'm starting from a new "Basic" HTML web page and
    all I'm doing is inserting this one image. I need to get this
    working so I can draw hotspots on this graphic to make it
    "clickable" .
    Here's what I've tried:
    o Triple-checking that the inserted image reference is
    correct. Yes, the image file is correctly linked. With the image
    selected, the inspector shows a tiny but recognizable miniature of
    the expected image. Further, when the page and the image are
    uploaded to the web server and I look at it via a browser, the
    expected image is _always correctly displayed.
    o Exporting the graphic "for the web" from AI as both a GIF
    and a medium-quality JPG. Neither of these are displayed in Design
    View; both are served up correctly after being uploaded
    o I found a larger JPG on a different site I'm managing. This
    always displays as expected in both DW Design View and when served
    up. I substituted the failing map JPG image. The result: A grey
    box.
    o Checking the map images: The JPG and GIF versions seem to
    be visible in all environments (image readers, browsers, etc.) I've
    checked _except_ DW8 Design View.
    o Checked on another system. I made the failing image
    available to a very helpful ACE, who performed a similar
    experiment. It worked fine for him. I used his exact HTML and
    directory structure -- and it failed for me. Grey box with "X".
    It seems to me that I've checked most of the obvious
    possibilities. Now it is time to check the less obvious ones.
    Suggestions are very welcome!
    Thanks,
    Henry

    Randy:
    Thanks for your response.
    This is a virtual memory system, so -- in theory-- it should
    accommodate anything that will fit on the hard drive, more or less,
    if I'm wiling to wait the hours (days?) it will take to swap on and
    off the disk. That assumes DW8 takes advantage of the capability.
    It may not.
    "Larger"? The JPG image I compared to is 1692 x 2160 pixels,
    but weighs slightly less, 289K bytes. I'm losing track of all my
    test images that fail, but a representative one is 1912 x 1481
    pixels and weighs 332Kb on the disk. "Roughly comparable" might be
    a better description. The point is still reasonable: DW8 does
    handle images of this size on my system.
    One issue that occurred to me recently is that I may have
    caused some grief by monkeying with the "Save for web" settings at
    the Illy export. Perhaps I asked for some configuration that's
    normal for Illy to export --or it would have warned me, I hope--
    but too strange for DW to grok. DW should complain more
    informatively than painting a gray box and "X" when that happens, I
    would think.
    Henry

  • IPhoto library won't display, "Loading Photos" endlessly

    Iphoto won't display the library, it shows the loading photos graphic endlessly. Tried deleting all relevant metadata (files in iphoto library folder and library>preferences) and repairing disk permissions, to no effect. Did not move or rename iphoto.app.
    Please suggest fikes for this issue and/or alternatives to iphoto.

    Welcome to the Apple Discussions.
    Tried deleting all relevant metadata (files in iphoto library folder and library>preferences)
    What files did you delete in the iPhoto Library Folder, exactly?
    Did not move or rename iphoto.app.
    Good to know, but the warning about moving/renaming does not refer to iPhoto.app but to the library:
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • Hp 110-a04 won't display video when my 5670 is plugged in.

    So here's the dealio. Bought a myself an hp 110-a04, threw in the sapphire 5670, doesn't display anything and I get a 6 long beeps beep code. Kill me.
    So, I take out the original PSU (it's only 180 watts), throw in a 400 watt power supply,  toss in the GPU aaaaannnnnnd... still won't display anything and the beep code is back (in the old PC it was in worked fine with the 250 watt psu).
    The computer works perfectly fine without the card, boots up, actaully displays stuff when plugged by VGA. Why it won't display anything is absolutely beyond me. Everything is hooked up to the new PSU, it's just that nothing works with that graphics card in.
    Halp me.

    Hello @HAIRSHAMENSTUFF,
    I understand that you are having issues getting the sapphire 5670 to work with your HP 110-a04 Desktop PC. I suspect that you will have to enable legacy devices in your BIOS. Unfortunately, I do not have access to the BIOS for your computer to provide you with step by step instructions, but if you tap F10 on startup and enter the BIOS you can browse through until you find a way of enabling legacy support or mode.
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Java 3D won't display anything

    Hi,
    I'm trying to get Java3D demos to run so I can begin developing a game. The problem is I get nothing but a blank white square the size of the intended 3D display. Everything I've tried (the list is long) has had no effect. When attempted through a DOS window I get an endless repeating list of : "wglCreateContext Failed: the pixel format is invalid".
    The updated drivers for the ATI radeon 9000 pro (all in wonder) shows openGL (classic) is active but nothing 3D is displayed, everything else in Java (2d, swing components, etc.) all displays normally. I've updated DirextX and tried reinstalling Java3D for that format but no change. I'm not familiar with any 3D graphics programming (yet) and it's difficult to understand what won't display. I have posted a bug report with Sun after searching for similar bugs, but all related bugs just show "closed: fixed". Has anyone had this problem or have any clue what I might try (other than waiting) to resolve this issue? Thanks,
    Jerromy

    There are known issues with ATI drivers and java 3D that cause behavior like this. I don`t use direct-X so I can`t sugget anything, except to search the forums at http://forums.java.net/jive/forum.jspa?forumID=70
    to see if your ATI card has a workaround
    regards

  • Photos won't display

    I recently bought a refurbished 80g iPod classic. Everything appeared to be in working order except that photos won't display when clicked on. When I click on a photo the screen just goes black like the photo won't load. I don't really want to return it and go through all the warranty ordeals so if anyone knows how to fix this problem please let me know.

    To create and populate a new library:
    *Note this will give you a working library with the same film rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.*
    Move the iPhoto Library Folder to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library Folder on your desktop and find the Originals folder. From the Originals folder drag the individual rolls to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library Folder on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • Webhelp topics won't display on servername with multiple hyphens

    Hi
    I have several webhelp topics generate with RoboHelp 8 whose html topics won't display when launched from servers whose hostnames contain more than one hyphen. We have multiple servers in the test environment. The servers with zero or one hyphens can launch the help project or individual topics with not problem. The servers with two or more hyphens can launch the project and display the nav pane, but the topics show a File Not Found error. The topics also show this error when launched independent of the frameset. Can anyone help?

    William,
    I have gone thru my project now and, as I stated in my May 1 mail to you, I have made duplicates of all of the "bad" topics and all of these new topics are now displaying correctly.
    Now I have a related, but different issue.
    Only one topic is causing that same error msg to display (refer to my original April 27 post: IE script error/syntax error; Line 13, character 1).
    The only topic that throws that error msg is the initial topic that displays when the .chm file is opened (i.e., the topic that is specified as the "Default Topic" in the HTML Help Options window when I click the Generate Layout button in the SSL pod.)
    Furthermore, the topic that throws the error message will only do so if it is the one specified as the Default Topic.
    As an example, if I have the topic Apple specified as the Default Topic, when the .chm file is opened the error msg window will display; when the user clicks either Yes or No to the "Do you want to continue running scripts?" query, the Apple topic will display normally. Each time that topic is selected it will throw the same error msg. window.
    If I go back to my project in RH and change the Default Topic to the Pear topic, re-compile the project, when the .chm file is opened the error msg will display; when you click Yes/No the Pear topic will display normally (until it's selected again). The Apple topic now displays fine at all times.
    This tells me that the problem seems not to be with the Apple topic, as I'd suspected, but with something that's going on with RH and how it displays the initial topic in a compiled project. I think.
    Any ideas on how I can remedy this issue?
    Thanks in advance.
    Dennis

  • Director mx 2004 won't display Flash 8 swf files & other Flash media

    I have created a Flash 8 Project which has audio, video (which are converted to swf files fom flvs), flashpaper.  This application is driven by XML.
    However  this application works fine outside director, but when I import the main swf file into director mx 2004 and RUN it, director won't display the videos (but I can hear the audio from the videos), Director wont show graphic images(eg menu icon movie buttons, and flash buttons). Also I can launch external files (eg text file) from flash, but again it won't work via director.
    ANY SUGGESTIONS PLEASE

    ANY SUGGESTIONS PLEASE
    I suggest there's no need to shout.
    Try linking the Director cast member to the external swf file instead of fully importing it. You also should have the 10.1.1 update in place - this is particularly important.

Maybe you are looking for

  • Layers of imported .psd files are cropped?

    Hi, when importing .psd files the images on layers are cropped...? In Photoshop an image on a layer is moved across the visible portion of the document as if it is animated, through the use of comp layers (each new comp layer the image is move a litt

  • Balances

    Hi all how to transfer balances from 4.7 to 6.0 version. is there any procedure? what r all the data required from old system and how to take those data. we are merging in to 6.0 version which is allready using by our another same business. now we r

  • Word docs open Acrobat Pro version 7

    Hello, I have a small problem I thought I could fix without bothering anyone here. I used the 'create PDF' in a Word doc and now everytime I double click to open a Word doc it launches Acrobat. I figured there was something in 'preferences' that woul

  • Dynamically resize inline poup size

    Hi All, I'm using the latest build of Jdev and I have a inline popup within my taskflow which has a page with inputListOfValues. In my calling page, on the command button I'm setting the window size of the called popup to windowHeight="180" windowWid

  • What is the best slider/slideshow extension to use in dreamweaver cs6?

    I'm currently searching for an extension or widget for a slideshow usage in dreamweaver cs6. I've seen the free ones like easy rotator but i was wondering if ones such as wow slider are better? any information on this would be great! thanks!