How to create progress bar in web page!!!

Dear,
I do not know how to create progress bar in web page?
Please show me the way to solve it.
Best regards,
Huy

God your lucky/lazy
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
public class ProgressBar extends Applet
  private boolean isStandalone = false;
  private int width;
  private int height;
  private double percentComplete;
  private double fundsTarget;
  private double fundsRaised;
  private Properties values;
  private String propertiesFile;
  private JPanel jPanel1 = new JPanel();
  private JProgressBar PB_FUNDS_PROGRESS = new JProgressBar();
  private GridLayout gridLayout1 = new GridLayout();
  private BorderLayout borderLayout1 = new BorderLayout();
  private JPanel jPanel2 = new JPanel();
  private JLabel jLabel1 = new JLabel();
  private JLabel jLabel2 = new JLabel();
  private JLabel jLabel3 = new JLabel();
  private GridBagLayout gridBagLayout1 = new GridBagLayout();
  private JPanel jPanel3 = new JPanel();
  private JLabel jLabel4 = new JLabel();
  //Construct the applet
  public ProgressBar()
  //Initialize the applet
  public void init()
    try
      jbInit();
    catch(Exception e)
      e.printStackTrace();
  //Component initialization
  private void jbInit()
  throws Exception
    fundsTarget = new Double( 100 ).doubleValue();
    fundsRaised = new Double( 50 ).doubleValue();
    PB_FUNDS_PROGRESS.setBackground(Color.green);
    PB_FUNDS_PROGRESS.setForeground(Color.red);
    this.setLayout(gridLayout1);
    jPanel1.setLayout(borderLayout1);
    jPanel2.setLayout(gridBagLayout1);
    jPanel1.setBackground(Color.white);
    jPanel2.setBackground(Color.white);
    jPanel3.setBackground(Color.white);
    jLabel2.setBackground(Color.white);
    jLabel1.setBackground(Color.white);
    jLabel3.setBackground(Color.white);
    jLabel4.setText(" ");
    jLabel1.setText(" ");
    jLabel2.setText(" ");
    jLabel3.setText(" ");
    this.setBackground(Color.white);
    this.add(jPanel1, null);
    jPanel1.add(PB_FUNDS_PROGRESS,  BorderLayout.CENTER);
    jPanel1.add(jPanel2, BorderLayout.SOUTH);
    jPanel2.add(jLabel2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
     GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 0), 0, 0));
    jPanel2.add(jLabel1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
     GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 150, 5, 5), 0, 0));
    jPanel2.add(jLabel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
     GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 5, 4, 150), 0, 0));
    jPanel1.add(jPanel3, BorderLayout.NORTH);
    jPanel3.add(jLabel4, null);
    propertiesFile = this.getCodeBase().getFile().replaceAll("%20", " ")+"funds.properties";
    System.out.println("Properties file at " + propertiesFile);
    values = new Properties();
    try
      values.load(new FileInputStream(propertiesFile));
      fundsTarget = new Double( values.getProperty("TARGET", "100").toString() ).doubleValue();
      fundsRaised = new Double( values.getProperty("RAISED", "50").toString() ).doubleValue();
      System.out.println("target: " + fundsTarget + " raised: " + fundsRaised);
    catch (IOException ioe)
      System.err.println(ioe.getMessage());
    percentComplete = (fundsRaised/fundsTarget)*100;
    System.out.println(percentComplete);
  //Start the applet
  public void start()
    PB_FUNDS_PROGRESS.setMaximum(new Double(fundsTarget).intValue());
    PB_FUNDS_PROGRESS.setMinimum(0);
    repaint();
  //Stop the applet
  public void stop()
  public void paint(Graphics g)
    Graphics2D g2 = (Graphics2D)g;
    PB_FUNDS_PROGRESS.setValue(new Double(fundsRaised).intValue());
    String percent = Double.toString(percentComplete).substring(0, 4);
    jLabel4.setText("Currently At " + percent + "%");
    jLabel1.setText("100%");
    jLabel2.setText("50%");
    jLabel3.setText("0%");
  //Destroy the applet
  public void destroy()
  public String getAppletInfo()
    return "Funds progress applet by A really nice person";
}

Similar Messages

  • How to create progress bar?

    pls,can anyone tell me? how to create progress bar?
    thanks,
    screen410099

    it is well documented how to create progressbars on page 173 in Solutions.pdf
    also you can find sample code in InDesign SDK\sources\sdksamples
    Regards
    Bartek

  • How to create a link to web page (URL) to a billing document

    Hi,
    I have an urgent requirement of creating a link to web page (URL) to a billing document.
    I call the function module "GOS_EXECUTE_SERVICE" with :
    ip_service = 'URL_CREA'
    is_object-objkey = no billing document
    is_object-objtype = 'VBRK'
    is_object-logsys = 'BO'
    ip_rwmode = 'E'
    Then, I enter the title and the address.
    And, I have the message : "The attachment was successfully created".
    But when there's nothing in the attachment list of the billing document.
    (Tha table SOOD contains the record )
    If any one has some idea about his , how to achieve this functionality, can you please help me.
    Thanks
    Virginie
    geoge bush
    Posts: 6
    Questions: 0
    Points: 6
    Registered: 7/9/04
    Re: Attaching a file to a purchase Order from EP6 to R/3 4.6C
    Posted: Jul 13, 2004 2:46 AM      Reply      E-mail this post 
    Hi Somaraju,
    I am also looking for A CODE EXAMPLE TO ATTACH A DOCUMENT TO A AN sap OBJECT E.G. BUS222 AND ISUACCOUNT.
    IF YOU'VE AN Example code that you can email me . it would be great.
    thanks for the help.
    geoge.

    Hey,
    If you are using Portal (not Framework), the below tag will do the trick
    <wcdc:userProfile id="profileUserLink" immediate="false" text="#{security.userDisplayName}" shortDesc="#{security.userDisplayName}"  xmlns:wcdc="http://xmlns.oracle.com/webcenter/spaces/taglib"/>
    -K

  • How to Create Progress Bar in SAP

    Hi!
            I need to know how to create a progress bar in Sap Business One with VB.Net to Show  a Scheduling Status.

    Hi Parag,
    The code you need to create a progress bar is:
    Dim Progress as Integer
    Dim oProgressBar As SAPbouiCOM.ProgressBar
    oProgressBar = oApplication.StatusBar.CreateProgressBar("YOUR_TEXT", oRecordset.RecordCount, True)
    oProgressBar.Text = "YOUR_TEXT"
    and for each record:
    Progress += 1
    oProgressBar.Value = Progress
    When all is finished
    oProgressBar.Stop()
    Regards,
    vanesa

  • How to create Chart within a web page NOT as seperate page?

    Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page. Is it not possible to surround the JPEG chart with other HTML so that I can keep my web page logo and menu etc on the same page as the chart?
    I can't find any examples which show how to surround your images with HTML as JCharts creates a JPG file and returns that in the Http Response e.g. "ServletEncoderHelper.encodeJPEG13(axisChart, 1.0f, response);".
    My environment is Java 1.4.2, Struts and Tomcat 4.1.30.
    Is there a way of drawing charts directly into a web page rather than displaying them on a seperate page as an image file?
    many thanks in advance,
    James.

    Hi Hatton,
    in html, there exists an img-tag. this tag contains a parameter called src. And if you want to embedd an image in your html-page, you will put the source of the image you want to display to the src-parameter. The same with servlets or java server pages. For the browser it doesn't matter where the html comes from. it doesn't matter if it has to be generated by an servlet-container like tomcat. So you write a servlet, which will create an image and make it accessible to your servlet container and then insert an tag like
    <html>
    <body>
    <img src="http://yourdomain/servlet?param=value" width=aNumber height=aNumber>
    </body>
    </html>This can be done because servlets can be configured to response with images which can be created by java2d or something else...
    I hope, this will help you...

  • How To Create Style Guides for Web Pages

    I need to create style guides for websites. I will be provided with the assets (images and required measurements). It will be my job to create style guides using In Design.
    I have never used In Design, but I am a member of Lynda and Total Training online. Neither seem to address simple style guides for websites. Both seem to address designing from scratch for print and newsletter creation.
    Any links to tutorials? This seems straight-forward, but because I have never done it, I would appreciate direction.
    Thanks!

    I received a sample of what I'll be working on. Attached is one screenshot (blurred areas to conceal confidential info).
    Overall, I will be given web page images (as seen below and as an original sized attachment) like screenshots.
    I will be given measurements.
    I will create a web style guide with text and the placement of images, and pinpoint where the objects are placed on the pages in pixels.  e.g. Hero section - 80 pixels, padding - 40 pixels, etc. You can see this below in the (tiny, or see the larger attachment) text on the sides of the web page image.
    The original designer also added some type of padding. You can see it below in blue at the bottom of the page. Is this the norm? How is that done?
    Big Question: There are no pixels in InDesign. Are points equivalent, or should I set this (pixel notations) part up in Photoshop?
    I hope this provides more details for you to help me, and I know this is a lot to ask. Thanks in advance!

  • How to create menu bar in jsp page using struts-tles

    I have started working with struts-tiles. I want to create menu bar using struts-tiles. please guide me.

    I've done this very recently. In fact, tiles has very little to do with the menu itself.
    In your layout, define where you want the menu to go.
    <tiles:insert attribute="menu" />Now, in the actual file, create your menu structure. This part is up to you. I've used http://www.brainjar.com/ as a starting point for the client side actions.
    On my menu page, I call a method on a custom object that returns the menu bar object. Currently, I'm working on putting this menu into some sort of cached object so it doesn't have to rebuild it on every page request.
    Perhaps I've misread your post and you're looking to use tiles, in and of itself, to simulate menus? Otherwise, I hope my post helps.

  • How To Create An Excel like Web Page?

    Hi All,
    Apex 4.1
    I have created n interactive report which was converted from a spreadsheet. This is a very long report of 100 columns display. So the user got tired in scrolling it left to right and vice versa.
    How can I make it behave like excell spreadsheet in which the selected first 3 primary-key columns will be displayed fixed on the left most region and the succeeding columns will be displayed by batch of 10 columns.
    which will just fit on 1 page and no need to scroll too long to the right most part. Maybe there is a button "next>" or "<previous" to scroll from left to right and vice versa?
    Can you give me links to sample demo apps that demonstrate this kind of usage?
    Thanks a lot,

    KinsaKaUy? wrote:
    Yes, thats exactly what I wanted....but why not free :(If you want it free, then create a Classic Report instead and use this solution by Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:59900346164562
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:303800346302715
    I got an Idea... Say I will divide the 100-column report into 10-column report and each has the 3 primary key columns on the right attached. so I will have 10 individual pages but sharing same Tab?
    How do I create a button "Next>" and "<Previous" so that the page will be displayed sequentially?You need to maintain the current page in session state and on "Next>" and "<Previous" action increment and decrement the value

  • Progress Bar for Web -- cr version 13.0.7.1136

    Hello All..
    The report is taking few seconds to display output.,So, i want to show progress bar while loading!!
    I've found couple of threads answering this question here but those seems to be old and i could not understand where those are being pointed.The below thread result redirects to welcome page where i could not find anything!!
    how to show progress bar while loading report ? 
    please suggest!!

    I did Don... found this !! but could not see any downloadable sdk guide there!!
    SAML Response from SAP ID Service     
    anyways., I've downloaded sap crystal reports .NET sdk developer guide.. there i saw 'Report Processing Indicator'.followed that and added 'ProcessingInidcatorText' and 'ProcessingIndicatorDelay' to web.config. but report is not showing with progress bar.
    My Need: User selects some selection criteria(like username or role) from dropdown and clicks 'Show Report' button. Then it is taking nearly 15 to 20 seconds of time to display filtered data. there i need to show user that 'please wait.., data is being processed'. i could see crystal default progress bar saying 'please wait while the document is being processed' when i refresh the report or navigating from page to page but not on button click after selection criteria.
    any help would be appreciable!!

  • How can I delete an old web page ??

    How can I delete an old web page ?? I have created a web page some time ago and now I want to delete it but i do not know how to do it: can anyone help me ?

    Delete the web page where it is published.
    If it is published to MobileMe, then you need to log into MobileMe and go to your iDisk or mount it on your desktop and then delete it from your Web/sites folder.
    If you have published to a server, then you'll need to download Cyberduck, Filezilla or Transmit - all dedicated ftp programmes to connect with your host/server and then delete your old files from the server.
    It really is not hard.

  • After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it.

    The page load progress bar that was on the lower right of the window is no longer there. After updating to the latest version of Firefox on my Mac there is no progress bar for the page load. I really miss this feature and can't seem to find a way to obtain it. The tab has a circular progress wheel but this is useless for determining a stuck or slow loading page.
    PLEASE NOTE: I am typing this in from a Windows based work computer but am asking about my Apple MacBook Pro that i use at home.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • How to show progress bar in miniplayer?

    How to show progress bar in miniplayer? I play a lot of music podcasts and it would be very helpful if anyone could help me bring that feature back.

    i answered here:
    http://forum.java.sun.com/thread.jspa?messageID=9739423&#9739423

  • How to create a new tag in page properties in the sidekick of geometrrix page

    how to create a new tag in page properties in the sidekick of geometrrix pagesame as basic, advanced, blue print??

    Hi prachi,
        Is it tag OR Tab ? Seems like you are looking for Tab. Look at [1] & overlay to custamize per your need. Or define at your page component.
        [1]   /libs/foundation/components/page/dialog/items/tabs/items
    Thanks,
    Sham

  • Adobe premiere elements 12 - how to create menu bar action for my inserted image button

    adobe premiere elements 12 - how to create menu bar action for my inserted image button without using their movie menu theme

    forbemag
    I do not think that I am completely focused into this completely, so let us see if the following is going to help.
    You are going to need a base for your button. When you mention "image" button, I am assuming that you are using that term to differentiate between a text button and a thumbnail type button.
    The menus (main and scene) take their origin in .psd files on the hard drive and strict nomenclature and structure for Layers Palatte. And, the buttons on the menus trace back to the menu markers on the Timeline, main menu marker and order of placement of scene markers. The scene thumbnail will only appear when there is a scene marker on the Timeline to which it.
    In view of all that
    Where have you already inserted this "image (button)"...into the Layers Palette of a Photoshop document or other? Is this "image (button)" in a structured Layer Group in the Layers Palette with sublayer groups, text layers, graphic/background layer"?
    Let me give you an example
    If you have a button (with thumbnail) on the main menu and you want that to open to a specific scene in your movie, then you use a main menu marker on the Timeline at the spot that you want that button to target.
    If I am getting closer to what you seek, then please further clarify the DVD navigational envisioned scheme.
    Thanks.
    ATR
    Add On...I did not see the exchanges between us and SG until after I had posted mine. I thought that your discussions were concluded. Please excuse the interruption.

Maybe you are looking for

  • How can I control my fan speed?

    How can I control my fan speed on my macbook pro? I use SMC for gaming and streaming video from the internet when using my Mac OS, but I partitioned my drive and installed Windows 8 in order to play a different game (not a huge game) and the computer

  • Reports Builder Error - REP 1070 Error while opening or saving document

    Hi, I tried opening an rdf file in Reports Builder 10g and 6i. I get the REP 1070 error. Kindly suggest a solution for this. Thanks, Anand

  • Capturing to DVD Recorder, etc...

    I was wondering if this is a viable option for capturing my videos to my project. I have so much problem with dropped frames when capturing via FCP and so I would like to capture the footages straight to my DVD recorder (at the highest rec quality, o

  • Why can't I print pictures sent through yahoo email.

    I have received pictures of family members through yahoo email but can't print them out. When I try, It it shows as symbles that are un recognizable. I would love to know how to get my pictures to print. When I locate my picture on the computer, It s

  • How to set a sheet as Ad Hoc via VBA ...

    We keep trying to convert our existing workbooks for Smart View. As you can imagine this is a nightmare process but we keep trying ... There is some progress and we learnt a lot on the way but we still face some major issues - we find SV with VBA to