Doh! Why I need an applet to load an image on the web page???

Hi everybody.
I'm new student in Java programming and I try since to 1 week to understand, why Java applet is used to load image or something else on web page?
Why not to use shockwave or flash to load an image or an animation?
What is the difference?
Best regards,
Dimnet2000
Canada

The answer could be "why not ?"
A better answer would be "it depends on what you want to do."
If you simply want to display an image you should neither use Java nor Shockwave, plain html will be the best.
If you want to do things like:
- accessing a database
- dynamically creating html
- make an application accessible within the intranet of a company
- make all at once
- make other dynamic things
Then Java is a good way to handle all these. Since it is a full programming language you can do more variable things than with shockwave which is fine for simple things that should look good.
Btw.: If you want to train how to use Java on a html page displaying an image with Java is no bad idea. It gives a feeling on what you have to do when using Java.
Hope this helps, Rommie.

Similar Messages

  • Why can I not see color or features. All the web pages look incomplete.

    ''# italic text''

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Windows Accessibility settings.
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • Why the speed of MacBook Air to download a web page is lower than iPad2? Even worse sometimes Ipad2 can but MBA can't load the web pages.

    Why the speed of MacBook Air to download a web page is lower than iPad2?
    Even worse ,Why sometimes iPad2 can but MBA can't load the web pages?

    Why the speed of MacBook Air to download a web page is lower than iPad2?
    Even worse ,Why sometimes iPad2 can but MBA can't load the web pages?

  • When I try to load an image from the scanner, or from a file, into a bank deposit script, I get a message - "Error Java heap space". Need help to diagnose and fix this problem.

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

  • How to display an image on the HTML page by using applet

    Dear friends,
    I am now writing an java applet, I want to display an image on the HTML page, and tried the following commands:
    {color:#ff00ff}{color:#000000}Image map; //put in the class definition
    map=getImage(getCodeBase(),"hhh.gif"); //put in the function of init()
    g.drawImage(map,0,300,this); //put in the function of paint(){color}
    {color}
    However, when I run it, the image wasn't displayed at all.
    I hope who guys ever come across this problem could help me to solve it. Thank you in advance!
    Hawaii

    Hi,
    I am no expert on Images
    but
    from personal exp.
    are you sure that map actually contains the image?
    try using
    ImageIcon ii = ImageIcon(String name);
    map = ii.getImage();I saw a tutorial on images i think on sun
    where they use ImageIcon to load the image

  • Loading an image in the background and displaying it as it is loaded

    Hi,
    I'm writing an "image viewer" swing component, which should load an image in the background, and display it as it is loaded (for example each time a line of the image is loaded, display it)
    Is there a way to do this using JAI or any other api ?
    I guess i would need a way to check the loading progress from the EDT, get the loaded part of the image and display it. Am I right ? Is that possible ?
    Thanks,
    Nicolas

    In the video inspector set the Spatial Conform to "none". This will give tou the actual size of the image in the viewer. You can then use the transform controls to adjust the image to what you want to see.

  • Loading an Image from the database and display it on browser

    I do not know if this is even possible.
    At the moment, to load an image inside an Html page you need to use the <img src=""> tag. and in the src you put the path of the image. Now I would like to save an image inside the database.
    An option to still display the image on the browser would be that my service object, would load the object from the database (saved as blob) then save it somewhere on the Server, and the still use the <img> tag to load the image from that location.
    However I was wondering wheather there is another way to do it without saving this image on the server. that is loading the bytes from the database (or a location on the server) and provided these bytes to the jsp page to display the image.
    Is this possible? or?
    regards,
    sim085

    hmm ... ok .. that sounds good .. but that means that
    a servlet must exsist at all time to display the
    required image.Servlets are usually instantiated by the servlet container upon an incoming request.

  • Is it possible to reduce the web page to fit the window? Therefore loosing the need for the side bar sliders

    Although I have two screens I still need to keep my windows quite small and I was wondering if it was possible to automatically reduce the size of the web page to match the size of the available space in the window instead of having side bars sliders so if I needed to read text then I could just increase the window size and the web page would expand accordingly.

    Enable audience for that webpart. Keep users who have access to that list\library :)
    http://office.microsoft.com/en-in/sharepoint-server-help/target-content-to-specific-audiences-HA010169053.aspx
    http://office.microsoft.com/en-in/sharepoint-server-help/introduction-to-targeting-content-on-a-sharepoint-site-to-specific-audiences-HA010243222.aspx
    If this helped you resolve your issue, please mark it Answered

  • I am constantly getting pop ups saying that The URL is not valid and cannot be loaded even though I am on the web page.

    I have version 3.6.13 Firefox. I have uninstalled and reinstalled, but still keep getting an error message saying that The URL is not valid and cannot be loaded. This happens even when I am on the web page, but the message continues to keep popping up.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Firefox loads a web page then the web page go's halfway across the screen

    Not a lot I can tell you I have never had this problem before with Firefox.When the web page loads it comes up as normal then it moves to about the centre of screen sorry but thats all I know.

    i have the exact problem but still waiting for some1 to have a solution, its a pain i can only view the whole page if i click to full screen but then i cant see my other programmes in the background, never had this problem before, just started today

  • Load picture control with png image from the web

    Hi guys,
    Is there an example anywhere for Labview 8.6 for loading a picture control with png image from the web?

    Hi lavalava,
    here you find a note on how to load pictures from the internet. After grabbing the data you could save them to a file, load the file with the picture file functions and then convert it into the image datatype to feed a picture indicator with the data...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Will the Web Page Composer meet the blogging need?

    Hi all (especially SAP-people)
    My question is rather simple:
    Will the Web Page Composer meet the blogging need?
    As I can understand blogging features should come with the Web Page Composer unrestricted shipment from Ultimo September/Primo October. Is that true? If it is true, how much customization will it take to enable the blogging feature?
    Kind regards,
    Martin

    Hi Martin,
    As for the confirmation I am not the right to help - as for the details on bloggin-like capabilities I believe that the following TechEd sessions touch on that (among other subjects):
    <a href="http://www.sapteched.com/usa/edu_sessions/session.htm?id=173">UP214  SAP NetWeaver Portal: Roadmap for the Next 12 Months</a>
    <a href="http://www.sapteched.com/usa/edu_sessions/session.htm?id=282">UP218  Workspaces for Organizations, Teams, and Individuals</a>
    In addition to this I assume it should be possible to create Web Forms based on WPC that could be used for blogging-requirements: http://help.sap.com/saphelp_nw70/helpdata/en/45/fef92d98f13830e10000000a11466f/frameset.htm - I suspect some kind of collaboration is needed in addtion to this.

  • PROBLEM: loading jaas.config in the web application

    Hi,
    my problem was load jaas.config in the web application, the way that I suppose was best it's to load a configuration file in the web.xml of my application, but I they are not a veteran of xml and I have a problem of implementation for this solution.
    I hope you know a solution of my problem because I was deprived of hope!
    HELP ME PLEASE!

    Hi,
    I hope that replay me on my new quesion.
    I have find a class "Configuration" that load a configuration file of jaas, but I don't understand how use it. Because I want pass it to LoginModule in the costructor.
    Can you help me with an example code?
    Thanks

Maybe you are looking for