Image Painting Question

In JavaScript I was able to achieve an odometer effect by simply changing the source reference of a displayed image. Being new to Java, what is a good method to achieve this same effect in Java? Each of my digit images are stored in an array from [0] to [9] with the array position equal to the digit value. Please, no Swing or Java2 recommendations, as the applet is being compiled with target 1.1 to reach a broader viewer range.
Below is a snipped portion of my JavaScript code as an example of what I wish to achieve in Java. In the JavaScript, a setTimeout keeps the images updated. In Java, a thread will keep the images updated. (This JavaScript version doesn't have the images stored in an array, but I don't think how the images are stored should affect the method used to paint them periodically to the screen.) Thanks!
now = new Date();
minute = now.getMinutes();
if(minute < 10) {
document.c3.src = l0.src;
document.c4.src = eval("l"+minute+".src");
else {
document.c3.src = eval("l"+minute.toString().substring(0,1)+".src");
document.c4.src = eval("l"+minute.toString().substring(1,2)+".src");
}

Is anybody going to reply...?

Similar Messages

  • Report Painter question (FGI1) How to limit output up to a specified period

    Hello
    I have a report painter question.
    I am trying to create a BS report using tcode FGI1 (FALGFLEXT), that lists out the BS values by month (Jan - Dec).
    But the problem I am coming across is, if I specify selection parameter 01 2008, the report also populates the same values into the unposted months ahead (Feb/Mar/April)
    Something is wrong with my parameters.
    Is there a way I can limit the report output up to the specified period/month?
    I thought I might be able to work around this by creating a formula/variable (like in GL-SL), but it doesnt seem to be the case.
    Any thoughts appreciated
    regards
    Ken

    Period shall be included in the column characteristics. Check the variables or Values in column definition for the characteristic period.
    You could either give the values of period 1 for col 1, 2  for col 2, etc
    or you may use variables for period. The variables can be a formula variable with conditions.
    You make the user to enter a value for the 'To period'  (ZTOPRD)
    The value for the variable for column 2 (Feb) shall be  = 2, if ZTOPRD > or equal to  2  else, give some 17 .
    This way when the user enters a value of 1in the to period, the system would default 17, for which there won't be any values.
    You may extrapolate the above formula for various remaining columns of period.

  • Image Printing Question

    Hello,
    Bottom line summary: How do I use the Media and Quality setting to get a good image?
    I have an image printing question for an HP 8600 Office. I am trying to get a decent quality image to print
    on regular paper. I gather that I will not get the quality of a photo printer. I gather I'm supposed to use
    HP glossy paper. Please read on ...
    Images come out grainy (rastery) when embedded from an MSPaint project, and if I use Word. However when I printed just an image from image viewer it came like a photo ... but I can't remember what I did. It definitely is capable of printing better. My cartridges all check out, etc. I did the Print Quality Report ... I sure wish I could get that quality when I print other things.
    I tried messing with different settings from the Print - Preference. The Quality (Best, Normal, Draft) doesn't effect the outcome. I tried going into Print - Preference - Media and it makes a difference. I can't figure out which is the best setting for plain paper ... but it's not plain paper. The image rendering algorithm appears to be different for different Media settings. I also tried setting the Advanced Resolution to Maximum DPI. I haven't been totally methodical about this as I was in a rush.
    I see that the printer is being "smart", perhaps a little too smart. 
    So my question is multipart:
    - Is there documenation on the what the Print - Preference - Media settings do?
    - How do I get it to not use grainy/rastery image method, but use the nicer photo method?
    - Should I print Maximum DPI?
    Thanks,
    - Dave -

    Hi @DaveGold , and welcome to the HP Forums!
    I hope you had a great holiday!
    I see you're looking into photo setup options. I'd like to help!
    First I'd recommend this document on Changing Print Settings in Windows 7.  This document should show all the settings you're looking into.
    Also, another thing to keep in mind, when you select 'best print quality' and 'photo paper'. It will only be as good as the source image.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    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" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark

    When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark , it's brand new I just receive it from Apple Store .

    Startup Manager to select Startup disk.
    http://support.apple.com/kb/HT1310
    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836

  • Add image to question

    Is there any way to add image to question? For example, a gui
    button or just a screen shot?

    Hi mruan
    While editing the question slide, click Insert > Image...
    Works for me... Rick

  • I Have a UITableView with 17 row. in last 17Th row i applyed cell.selectionStyle = UITableViewCellSelectionStyleNone;  and in this row i also put UIButton with Image -  my QUESTION IS that i want in 17Th row when user tapped Image on button is hide and wh

    I Have a UITableView with 17 row. in last 17Th row i applyed cell.selectionStyle = UITableViewCellSelectionStyleNone;
    and in this row i also put UIButton with Image …
    my QUESTION IS that i want in 17Th row when user tapped Image on button. then Image is hide and when user again tapped then image is shown …
    so PlZ…help me how can i put logic..
    Thanks FrNdZZzzzz…

    Sign in:
    https://developer.apple.com/devforums/
    If you're not a developer, you need to join first:
    https://developer.apple.com/programs/register/

  • Safari broken image link question mark in a blue box icon

    The url I get the safari broken image link question mark in a blue box icon most often is "apple.com/startpage/". There may be 10 or 12 of them. However, most apple.com pages have at least 1. In fact I am looking at 1 right now. I have emptied the cache. I do not wish to reset Safari because I do not want to reenter all of the passwords to various sites. Is there a simple answer?
    1.8 Ghz Power PC G5   Mac OS X (10.4.3)   Safari 2.0.2

    Hi Rex,
    Who is your ISP and what addresses do you have set in the DNS section of your System Preferences -> Network preferences?
    Have you tried logging into a different user account on your machine to see if that has the same problem? This will help us to know whether your problem is local to your account or system wide. If you don't have another account you can use System Preferences -> Accounts -> [+] to create a test one (and [-] to remove it if needed)
    Also, do you use any third party internet software (Norton, Intego, etc.)?

  • Pixels & Images (2 questions)

    Hello!
    I have two questions:
    1. How to I set the color of a pixel on a JFrame? For instance, if I had a JFrame with a size of 600 x 600 pixels, how could I change the color (and alpha) of pixel 30x30 ?
    2. How could I create a valid GIF, or any other image file, that other programs could use, using an array of pixels? Or better yet, is there a way to get an image file using a BufferedImage object?
    Thanks for any help I get, in case you haven't figured it out I am making a paint program and I am almost finished with it!

    1. How to I set the color of a pixel on a JFrame?
    For instance, if I had a JFrame with a size of 600 x
    600 pixels, how could I change the color (and alpha)
    of pixel 30x30 ?You will probably want to add a component to the frame and then paint an image on the component. You can then set the color of the image.
    2. How could I create a valid GIF, or any other image
    file, that other programs could use, using an array
    of pixels? Or better yet, is there a way to get an
    image file using a BufferedImage object?http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageIO.html
    Look at the various write methods. I don't know if it supports GIF (there used to be some patent issues), but it should support JPG and PNG.

  • Swing Image Painting

    I think this is a very basic question, but I'm not too familiar with the Java GUI APIs. I'm using JLabel objects to display playing cards on the screen (setting icon of label to the card graphic). In a simple test program, the cards appear correctly, but when I click on a button which changes the cards, I have to resize the window before the new cards appear.
    here's the code that implements the JPanel holding the cards:
    public class MyHandPanel extends JPanel implements Constants {
         private static final long serialVersionUID = 1L;
         /** Panel to hold first card */
         private CardPanel card1panel;
         /** Panel to hold second card */
         private CardPanel card2panel;
         public MyHandPanel(Hand hand) {
              this.setLayout(new FlowLayout(SwingConstants.CENTER, 10, 10));
              card1panel = new CardPanel(hand.getPrivateCards()[0]);
              card2panel = new CardPanel(hand.getPrivateCards()[1]);
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        add(card1panel);
                        add(card2panel);
         public void setHand(Hand hand) {
              card1panel = new CardPanel(hand.getPrivateCards()[0]);
              card2panel = new CardPanel(hand.getPrivateCards()[1]);
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        removeAll();
                        add(card1panel);
                        add(card2panel);
                        repaint();
    }The constructor works OK to set the initial display of the panel, but the sethand() method needs the window to be resized before painting the images.
    This is the CardPanel class that I used to display the actual cards:
    public class CardPanel extends JPanel implements Constants {
         private static final long serialVersionUID = 1L;
         private Image cardImage;
         public CardPanel(Card c) {
              //Load Card Image
              Toolkit toolkit=Toolkit.getDefaultToolkit();
              cardImage=toolkit.createImage(c.getGraphicURL());
              /*Create panel sized to card size*/
              final Dimension CARD_SIZE = new Dimension(71,96);
              this.setMinimumSize(CARD_SIZE);
              this.setMaximumSize(CARD_SIZE);
              this.setPreferredSize(CARD_SIZE);
              /*Create label with card size and image*/
              JLabel cardLabel=new JLabel(new ImageIcon(cardImage,""));
              cardLabel.setMaximumSize(CARD_SIZE);
              cardLabel.setMinimumSize(CARD_SIZE);
              cardLabel.setPreferredSize(CARD_SIZE);
              //Set layout of component to 1x1 and add image
              this.setLayout(new GridLayout(1,1));
              this.add(cardLabel);
              this.repaint();
    }Any help on this would be greatly appreciated.

    Sorry my reply should have said:
    Whenever you add or remove a component from a visible Container.
    When is frame is displayed the first time the pack() or setVisible() method will invoke the LayoutManagers, so you don't need to worry.

  • Multiple Image Uploading Question

    Please forgive my ignorance here but I saw the question on multiple image uploading and this is something i have been trying to do for a few days now without any success.
    I am using CS3 with ADDT and PHP
    I want to allow my users to be able to upload say 5 pictures at a time, each user has multiple photo albums the names of which are stored in mysql table, the image name is stored in a different table with a reference to the album id.
    So, I assume that i put an insert record on the page, I followed the usual process used to have a single image upload and thought it would give me or add the extra file field options on the form when telling the multi upload to allow 5 images to be uploaded, not the case. Do i have to create a form on the page first with 5 file fields or am i just missing the plot here.
    Sorry if this is just something that seems simple but i just don't seem to be able to get it to work at all. I have no working example to look over and have serach google to see if there are any tutorials for doing this but can't find any at all.
    Thank you in advance of any help and guidance given
    Regards
    Ray

    Hi Günter
    Thank you for your reply and also for the great tutorial site you run which has helped me quite a lot with several things.
    ok, so i am maybe a little confused here, so what is the multiple image uploader for if not for uploading multiple images, and how does it give you the option to select more than one file or is it that you can't use it when inserting the image file into a database?
    Please forgive my ignornace again, i can see when i have tried using the multiple image upload thatit puts a text link called upload, what is that for because it doesn't seem to do anything on the page i have tried it on?
    Kind Regards
    Ray

  • Yoga 2 13 system image backup question

    Hello:
    I just bought a Yoga 2 13" ultrabook with 128Gb solid state drive. I tried to make an initial system image backup according to the steps in the manual, but could not do it. The manual instructs me to use the Novo button to invoke a menu with "System Backup" as an option. There is no such option on the menu. I found a post on this forum that directed another person to use the Windows 8.1 control panel system backup option.
    I did make a Windows 8.1 system image backup, but now I have no idea of what I should do to perform a restore, should I need one.
    Is there a conventional process by which I create a USB bootable disk that can then be used to restore the Windows 8.1 image? Or does the OneKey restore have that as an option?
    Bottom line problem is:
    I need to make a system image backup that I can use to restore all of my partitions, should I need to do so. And I need the procedure for doing the restore.
    Thanks!

    Hi Rudy1212,
    Welcome to Lenovo Community!
    I understand your concern and the OS (Operating System) can only be backed up in a USB Flash Drive. Below is the link to perform the same:
    How to Create a USB Recovery Drive and Use it to Recover Windows 8/8.1?
    Do post us back for further queries
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Safari not showing images as Question Marks

    Hello Forum,
    we have a strange behaviour from a shop website in Safari for Mac and Windows Platform.
    It is a site with frames. When i click on the Categorie Nagivation it comes to situations when one of the frames reloads.
    After this frame reload the pictures only show as question marks. When i click one of the images it will reload the pressed picture and shows it. The other ones remain as question marks.
    The System Layout goes like this: Apache Server takes requests and redirects it to an application shop Server.
    Most of the Images are on Apache, the top navigation with the problem comes from the application server.
    Does anyone has a clue where to search for this problem?
    Firefoy and IE don't have this problem.
    Regards
    Jannis
    P.S. its the newest Version of Safari installed on Mac or on Windows.

    Hi Carolyn,
    thanks for your answer.
    The setting is still checked in Apperances.
    I tried to unckeck and check it again, but it woh't solve the problem.
    What i think is, that Safari has a problem with our system design or with http headers he interprets in another way than other browsers.
    What i found out too is, that there is Java Script. Are there differents how Safari interprets them?
    Regards
    Jannis

  • Image Gallery question

    I have been asked to help re-create a web site. The existing site is 100% flash. The site owner wants to redo the appearance and navigation and get away from flash.
    They want to have the various project galleries re-created without flash but want the behaviors to be the same as they are in the existing flash setup. check the link below.
    http://www.ecummingsarchitect.com/FLASH/main.html
    Specifically they want the thumbnails to auto scroll when the cursor rolls over the scroll arrow.  Also  want the roll over effect where -  roll over the thumbnail changes it to color and also changes the larger/primary image above.
    I have a couple of slideshow generators from Project 7 but they will not quite achieve these effects.
    Is this possible with html/css and/or can anyone recomend a third party product or tool I might use to create this sort of gallery?
    Additionally they want to re-create the opening animation on the home page of the site. They have made a little 1.7 meg movie in imovie or something that plays a series of stills but with an animated camera move acroos each still like a Ken Burns film. Slow zoom in or  zoom out or pan. Also has sound track.
    My question, is it "bad" practice to have a .mov or .wmv or some such movie auto play on the home page?
    Again, is this possible with html/css and/or can anyone recomend a third party product or tool I might use to create this sort of slideshow with zoom/pan effects and soundtrack?
    Thanks in advance for any advice or help with this.

    As Martin said, you can do some amazing things with jQuery transitions, animations and fadeIn effects.  And jQuery is  supported by nearly all web devices.
    http://jquery.malsup.com/cycle/ 
    You can also use Adobe Edge Preview to create animations in HTML5, CSS3 & JavaScript.   NOTE:  Edge animations are not supported by older browsers (pre-IE9).  Before you start, decide who your target audience is.
    http://labs.adobe.com/technologies/edge/
    Finally, for video & audio playback, have a look at Pickle player. 
    http://www.pickleplayer.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Image resoltion question

    I have a basic question about image resolution. I have taken
    some pics for a brochure with a digital camera. The pictures are
    2800 x 2100 pix. (6.1 MP), 72 DPI.
    My printer recommends sending TIFF format at 300 DPI. I can
    create a postcard at 300 DPI and add the image, without resampling
    the image.
    Will that print ok, or do I need to find a digital camera
    that will shoot at 300 DPI. I am obviously a novice and I could not
    find an answer to my question in the archives.
    Thanks.

    On Thu, 17 Aug 2006 22:56:42 +0400, bwr
    <[email protected]>
    wrote:
    > I have a basic question about image resolution. I have
    taken some pics
    > for a
    > brochure with a digital camera. The pictures are 2800 x
    2100 pix. (6.1
    > MP), 72
    > DPI.
    As a small addition to what Richard said, I think I'll
    explain in more
    detail while camera ppi (or dpi) is a fake.
    From practical point of view, neither camera nor your eye
    have resolution
    in "inches". Both your eye and your camera have *angular*
    resolution, not
    *linear*. It may be recalculated to linear only when you are
    referring to
    particular viewing distance - that is, from a long distance
    you only
    recongize objects of meter size, and from a hand distance -
    of millimeter
    size; and they may take the same amount of pixels in your
    camera photos.
    As a result, there is no such a thing like "best resolution
    for print" -
    you may print large billboard at much smaller resolution than
    fine art
    catalog, and both will look the same under appropriate
    circumstances - one
    from several meters distance, the other being viewed through
    a looking
    glass. Also, there is no such a thing as "camera resolution"
    (unless we
    put the real ruler in the scene <g>). There may be
    *formal* resolution
    setting the camera puts in the image file, or even more
    likely some formal
    resolution assumption your software makes when it reads the
    file without
    any resolution setting in it (you know, software don't like
    "divide by
    zero" things, so it often makes some non-zero assumptions
    when it can't
    get real figures).
    So forget about resolution of camera files. All you need is
    enough pixels
    to cover the number of inches that you wish, under the print
    resolution
    you want. As Joe said, you are likely to have more than you
    need.
    Ilya Razmanov
    http://photoshop.msk.ru -
    Photoshop plug-in filters

  • Aperture 3 image import question

    I'm trying out a trial version of Aperture 3, and have a (hopefully) quick question about importing images.
    I keep my images on a network storage drive.  When I imported them into Aperture, the program seemed to copy the files from the NAS to the Aperture library on the Mac's HD.  I don't want it to do that.  Lightroom, on my Windows box, has the option to just reference the file's location when importing.  It leaves the images where they are, and references the location in its database.  Is there a way to get Aperture to do the same thing?  I want my raw files to be accessible to any machine on the network, not stored locally.
    Thanks.

    No reason to guess .
    Most of the default Metadata Overlays show Badges.  Aperture uses different badges to indicate whether an image's Master is Managed or Referenced, and if Referenced, what the status of the Master is.  What badges are you shown?
    Also, right-click an image.  If "Show in Finder" is in the pop-up menu, the image's Master is Referenced.  If it is, select "Show in Finder" and see what happens.  You'll either get a message containing the Master's path, or you'll get a Finder window showing the Finder folder containing the Master.

Maybe you are looking for

  • Material transfer from SAP R/3 to SAP Business One is blocked

    Hello experts, Please I need your help for the following scenario: Our client has B1iSN and SAP R/3 in the headquarter company and B1if and SAP B1 in the subsidiary. The material transfer from SAP R/3 to SAP Business One failed and the following mess

  • Cannot get GarageBand off waiting process for ios 8.

    I've tried restarting my phone, deleting and re-downloading, and also connecting to iTunes using my laptop and downloading there. it downloaded to iTunes on the PC, but not on my phone. I need to get this on my phone ASAP. I have music that I've been

  • Set focus order manually in a form

    How can i do it?? thanks!!

  • Amount into Words in PE51

    Hi, Using PE51, net salary amount can display in words as, pe51--> form name-->Betrg(double click)--->select RT Table field : Betrg Identifier: /560 Output length: 30 Convertion: 23 Eg:17,714.44 (Net Salary) While i was doing like this i am getting t

  • Image darkening on export

    Since upgrading to Aperture 3.1.2 and Mac OS 10.6.7 I have noticed that when I export an image to my external editor (Pixelmator) or my plug-in (Silver Efex Pro 2) the image opens in the programme considerably darker than in Aperture. I correct this